Denis Arh
8d43907bd6
Basic (rest) structure for page & record/module attachments
2019-03-01 00:30:46 +01:00
Denis Arh
79229ef1f1
Append suffix to receiver name to avoid naming colision
...
Names starting with letter r colided with r for *http.Request
2019-02-28 23:51:36 +01:00
Mitja Zivkovic
8cc4551efc
upd(system): add Permissions API
2019-02-21 20:48:06 +01:00
Tit Petric
e16f24518d
upd(messaging): extend permissions codegen
2019-02-08 21:24:06 +01:00
Tit Petric
ba5413b583
upd(messaging): update codegen, add spec to codegen
2019-02-05 15:11:52 +01:00
Tit Petric
06f75376bc
upd(sam): rename to messaging
2019-02-05 15:09:52 +01:00
Tit Petric
13a11ab3b4
upd(codegen): typeset updates with Resources()
2019-02-05 14:41:57 +01:00
Mitja Zivkovic
4d57db5897
upd(internal): rbac.Operations to rules.Operations
2019-01-28 10:53:19 +01:00
Tit Petric
eb9869bcdf
upd(codegen): special handling of *Set types
2018-12-04 16:36:52 +01:00
Tit Petric
43554592e4
upd(codegen): enable imports with requests
2018-12-04 15:26:51 +01:00
Tit Petric
71fb80945a
fix(codegen): rbac.Operations is a type
2018-12-04 14:38:31 +01:00
Tit Petric
f2dfffbab2
update:
...
- codegen includes rbac since it's used everywhere,
- update permissions structure naming for title/subtitle
2018-12-04 14:38:31 +01:00
Tit Petric
8019940dd6
fix(codegen): fix syntax error, gofmt
2018-11-29 21:06:34 +01:00
Tit Petric
6c2d11c050
upd(codegen): keep readme indentation
2018-11-25 13:04:48 +01:00
Tit Petric
6a3fd9bc3b
upd(codegen): follow golang standard pkg layout
2018-11-25 11:41:46 +01:00
Tit Petric
52359771e9
add(codegen): source formatting for permissions
2018-11-25 11:16:25 +01:00
Tit Petric
b9cd623221
upd(codegen): build generators once, rename
2018-11-21 16:04:28 +01:00
Tit Petric
f8bdda0313
upd(v2 codegen): add perm generator, rename
2018-11-21 14:58:55 +01:00
Denis Arh
e5ff3ae7b3
Improve type-set generator, apply to system, sam
2018-11-21 07:02:57 +01:00
Denis Arh
297533e03c
Add <T>Set ([]*<T>) type generator
2018-11-21 05:49:30 +01:00
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