Commit Graph

25 Commits

Author SHA1 Message Date
Dietmar Maurer 6ce50400c5 cleanup api3 structure 2018-12-08 14:44:55 +01:00
Dietmar Maurer a4b7c3f2df more cleanups 2018-12-06 10:41:57 +01:00
Dietmar Maurer d3369f819d code cleanup 2018-12-06 10:23:45 +01:00
Dietmar Maurer 4b26195c6a extract version from environment 2018-12-05 14:40:45 +01:00
Dietmar Maurer 95b492add8 api: add /version 2018-12-05 14:03:15 +01:00
Dietmar Maurer bfb1d69abc fix compiler warnings, add storage/config.rs 2018-11-30 11:15:26 +01:00
Dietmar Maurer 3e1497fb75 remove description from ApiMethod
We use the description from parameters ObjectSchema instead.
2018-11-23 17:02:50 +01:00
Dietmar Maurer 768e01091a implement Into Arc<Schema> 2018-11-23 13:18:41 +01:00
Dietmar Maurer 7edeec7b06 remove parameter macro, implement ObjectSchema builder
And store "optional" attribute inside properties hash.
2018-11-23 11:34:15 +01:00
Dietmar Maurer 82df76fff0 start using builder pattern instead of macros 2018-11-23 09:55:38 +01:00
Dietmar Maurer 00c908df85 use Arc pointer to properties 2018-11-20 17:20:50 +01:00
Dietmar Maurer c548fa250a router: no need to use Fn (fn also works for static closures) 2018-11-16 11:12:00 +01:00
Dietmar Maurer 484eb9ac19 Router: allow to set match parameter name 2018-11-16 08:29:23 +01:00
Dietmar Maurer fe476ce884 allow closure handlers 2018-11-15 17:47:59 +01:00
Dietmar Maurer f17db0abfd cleanup module names 2018-11-15 17:07:10 +01:00
Dietmar Maurer c0262d7480 rename Jss to Schema 2018-11-15 16:56:28 +01:00
Dietmar Maurer 8a7005321b improve router 2018-11-15 13:28:15 +01:00
Dietmar Maurer e63e99d646 rename MethodInfo to Router 2018-11-15 11:46:13 +01:00
Dietmar Maurer 08bd8d476a remove more test code, cleanups 2018-11-14 17:32:17 +01:00
Dietmar Maurer 3c1d7afc42 another way to read files using tokio_codec 2018-11-10 15:12:45 +01:00
Dietmar Maurer 805aec1572 play around with async tasks 2018-11-10 12:06:39 +01:00
Dietmar Maurer e72677bf50 pass ApiMethod to handler 2018-11-07 11:06:37 +01:00
Dietmar Maurer cfa5886c33 implement simple schema parser 2018-11-06 13:10:10 +01:00
Dietmar Maurer 0dde2f04d0 avoid static references 2018-11-03 15:10:21 +01:00
Dietmar Maurer 504b359724 another way to initialize the api tree 2018-11-03 10:42:48 +01:00