3
0
Commit Graph

46 Commits

Author SHA1 Message Date
Denis Arh
02eebb5cfc Add /page/tree, generated set types 2018-11-21 05:50:07 +01:00
Denis Arh
1116148b81 Switch back to []string (no support for unmarshaling to []uint64) 2018-11-20 12:05:29 +01:00
Tit Petric
a2347e5ba3 add(crm): charts api definition on modules 2018-11-09 18:58:25 +01:00
Tit Petric
a39d2866ed upd(crm): api call to query module contents 2018-11-09 17:47:40 +01:00
Tit Petric
f9fd9428fc fix(crm): update url links to match params 2018-11-06 13:37:04 +01:00
Tit Petric
e8537a0dd2 upd(crm): renamed generic 'id' fields to 'objID' 2018-11-06 13:19:04 +01:00
Tit Petric
e36621f016 upd(all): parse uint64 from post arrays 2018-10-25 12:10:35 +02:00
Tit Petric
068af15e40 add(crm): implement page reorder api, list pages by selfID 2018-10-25 11:52:11 +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
c6bc3ae53e fix(crm): fix url path for content apis 2018-10-20 22:56:22 +02:00
Tit Petric
e259a949b8 upd(all): codegen uint64 types with string encoding 2018-10-16 18:12:04 +02:00
Tit Petric
2a29c50085 add(crm): module and pagination parameters for content list 2018-10-16 13:01:44 +02:00
Tit Petric
ad6cf16e4b add(crm): import implementation for pages 2018-10-15 14:46:35 +00:00
Denis Arh
9b0c425390 Check access to attachments 2018-09-27 18:24:33 +02:00
Tit Petric
639891c5ed fix(sam): undeclared parameter for channel join 2018-09-13 14:50:55 +02:00
Tit Petric
7bf78fb4e0 upd(all): refactor
- moved rbac store and config to internal pkg,
- split auth authenticators to internal pkg,
- add rbac config object to internal/config,
- update package imports and references for auth,
- clean up main with pkg aliases
2018-09-13 12:05:06 +02:00
Denis Arh
0400451823 Add upload/attachment capabilities 2018-09-08 22:04:36 +02:00
Tit Petric
6fafd2e740 upd(crm,sam): update auth pkg usage 2018-09-04 15:38:48 +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
33887f5859 upd(all): error handling reading json request body 2018-09-02 22:39:15 +02:00
Tit Petric
29c9a8621b add(crm,sam): parseJSONText util func 2018-09-02 22:38:38 +02:00
Tit Petric
7b271da835 del(crm): remove manual jsontext handling 2018-09-02 22:36:44 +02:00
Tit Petric
6e3ae267be upd(all): json parsers of request body 2018-09-02 21:35:20 +02:00
Tit Petric
4e4670ff40 upd(all): close request bodies 2018-09-02 21:33:39 +02:00
Tit Petric
c0866c7d94 add(crm): fields parameter when creating module 2018-09-02 21:19:33 +02:00
Tit Petric
0c43a6a9ea ws(all): moving some code around 2018-08-29 18:07:45 +02:00
Tit Petric
1a6a200010 upd(crm): inject service dependencies like sam 2018-08-29 17:54:39 +02:00
Tit Petric
fe2e97105f upd(all): new handlers/requests structure 2018-08-29 17:22:31 +02:00
Tit Petric
5e76b12901 add(crm): load fields from database 2018-08-23 11:32:47 +00:00
Tit Petric
1a8b9dc6ba add(crm): implement content service/repository 2018-08-15 18:08:39 +02:00
Tit Petric
3ba1eb9a22 upd(crm): refactor crm service layer 2018-08-15 16:29:06 +02:00
Denis Arh
5a347dddb5 Types structs reduced & simplified 2018-07-29 16:37:41 +02:00
Denis Arh
52dbc4c0c3 Fix naming (Id -> ID), add names to interface arguments 2018-07-26 20:29:09 +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
efecfd31b8 Merge branch 'master' of https://github.com/crusttech/crust 2018-07-19 20:24:50 +02:00
Tit Petric
b6481141dd del(all): remove codegen route debug code 2018-07-19 20:22:11 +02:00
Denis Arh
922cd6af35 Fix govet warning 'composite literal uses unkeyed fields' 2018-07-19 18:50:53 +02:00
Tit Petric
b393bdbfdf upd(crm): update api spec, implement apis 2018-07-17 18:14:15 +02:00
Tit Petric
501ba88efc gofmt 2018-07-17 13:09:31 +02:00
Tit Petric
235574bf42 upd(all): pass context from http request to service bridge 2018-07-17 12:23:57 +02:00
Denis Arh
9c05a271f7 Service & repository implementation for CRM field & module 2018-07-17 11:06:40 +02:00
Tit Petric
5aae6e9001 upd(all): move rest implementation into subpkg 2018-07-16 00:35:01 +02:00
Tit Petric
7d11062c3c add(crm, sam): service layer, subpackages 2018-07-16 00:14:50 +02:00