Tit Petric
d1fba3b3b1
add(codegen): docs codegen for all
2018-11-05 13:37:18 +01:00
Tit Petric
fdf24b3e2c
Refactor for new system service
...
- upd(all): indent spec.json files on all apps
- upd(auth): rename auth app to cmd
- upd(sam): move orgs, teams to system
- upd(system): extend spec.json for check
- upd(codegen): include system/
- upd(codegen): always generate spec files
- upd(sam): references from auth to system
2018-11-05 12:04:04 +01:00
Tit Petric
e36621f016
upd(all): parse uint64 from post arrays
2018-10-25 12:10:35 +02:00
Tit Petric
31c38f683c
upd(all): json []uint64 should also be encoded as str
2018-10-25 10:52:13 +02:00
Denis Arh
6ea52301f4
Fix multipart codegen
2018-10-22 13:24:04 +02:00
Tit Petric
803b72d979
fix(sam): codegen for multipart, gofmt service
2018-10-22 11:12:32 +02:00
Tit Petric
e259a949b8
upd(all): codegen uint64 types with string encoding
2018-10-16 18:12:04 +02:00
Tit Petric
dae76ef7bc
upd(codegen): added simple int type
2018-10-16 13:01:11 +02:00
Tit Petric
264ec19a9b
upd(all): disable codegen for crm/types, gofmt
2018-10-08 21:18:20 +00:00
Denis Arh
17a3f9461e
Data structure naming clenaup
2018-09-26 16:49:51 +02:00
Denis Arh
0400451823
Add upload/attachment capabilities
2018-09-08 22:04:36 +02:00
Tit Petric
30d12b4041
upd(codegen): update some basic templates
2018-09-04 15:38:05 +02:00
Tit Petric
bdb0844a48
add(auth): separate webservice for auth
2018-09-04 15:37:43 +02:00
Tit Petric
ffa5f9995d
upd(all): return error on parsing json body
2018-09-04 10:13:37 +02:00
Tit Petric
ec2213bf61
fix(crm,sam): vars come through path, get, post
2018-09-04 09:45:19 +02:00
Denis Arh
4f6bf888bb
Parse JSON from request payload only when is set to
2018-09-03 07:14:53 +02:00
Tit Petric
0a8a33f1db
add(codegen): parseJSONText parser
2018-09-02 22:35:39 +02:00
Tit Petric
bb02b827de
upd(codegen): close request body, parse body as json
2018-09-02 21:34:41 +02:00
Tit Petric
ca47286a60
upd(codegen): refactor for handlers/requests separation
2018-08-29 17:20:46 +02:00
Tit Petric
1b2a9d8f37
upd(codegen): add json to spec gen, omitempty
2018-08-23 11:05:44 +00:00
Tit Petric
d2f0ab908b
upd(codegen): re-add minimal type generation
2018-08-15 18:08:39 +02:00
Tit Petric
60264dfcab
upd(codegen): delete sam symlink
2018-08-15 18:08:39 +02:00
Tit Petric
92484d6ba4
upd(codegen): xargs fix, debug codegen to stderr
2018-08-15 18:08:39 +02:00
Denis Arh
3009d20fcc
Codegen/spec cleanup (remove struct)
2018-08-05 23:31:03 +02:00
Denis Arh
5a347dddb5
Types structs reduced & simplified
2018-07-29 16:37:41 +02:00
Denis Arh
d886a98740
Implements JWT authorization along with some refactoring
...
- introduces auth package, for common (sam, crm) auth handlers
- routes are now generated inside server package, each handler got its own MountRoutes(r chi.Router, middlewares ...func(http.Handler) http.Handler)
- there MountRoute methods are now called from non-generated code so we can inject services to (rest) controllers
2018-07-26 20:12:14 +02:00
Tit Petric
44be095b3f
fix(codegen): merge parameters from api parent and call
2018-07-20 11:05:58 +02:00
Denis Arh
c11a1a74d1
Prevent codegen from doing empty type() when no struct is defined
2018-07-19 22:32:54 +02:00
Tit Petric
0954e5c53d
upd(codegen): spec update for nested message apis
2018-07-19 21:00:25 +02:00
Tit Petric
efecfd31b8
Merge branch 'master' of https://github.com/crusttech/crust
2018-07-19 20:24:50 +02:00
Tit Petric
8ae57475e0
del(codegen): remove route debug
2018-07-19 20:21:53 +02:00
Denis Arh
ff79246202
Fix codegen template for rest controllers, remove obsolete code
2018-07-19 19:09:07 +02:00
Denis Arh
922cd6af35
Fix govet warning 'composite literal uses unkeyed fields'
2018-07-19 18:50:53 +02:00
Tit Petric
2222c53158
upd(generator): add docs from spec files
2018-07-19 16:39:09 +02:00
Tit Petric
235574bf42
upd(all): pass context from http request to service bridge
2018-07-17 12:23:57 +02:00
Tit Petric
5aae6e9001
upd(all): move rest implementation into subpkg
2018-07-16 00:35:01 +02:00
Tit Petric
b68337c111
upd(codegen): generate subpackages
2018-07-16 00:13:45 +02:00
Tit Petric
657ef15cf5
fix: codegen template path update
2018-07-13 20:28:28 +02:00
Tit Petric
837c10e448
update(all): moved codegen to root /codegen
2018-07-13 17:47:05 +02:00