Commit Graph

16 Commits

Author SHA1 Message Date
An Tao 70eda27427
Add the ability to create restful API controllers (#244)
* Add the ability to create restful API controllers

* Update the model.json template file

* Modify the 'create controller' command of the drogon_ctl

* access column values by column array indexes instead of column names when constructing an instance of a model class

* Fix a bug of mysql database

* Add some static SQL into models

* Add validations to models

* Add setToNull method to models

* Support 'where in' substatement

* Delay rendering from json to the response body. This allows users to modify the json object before sending a response.

* Add synchronous method to the HttpClient class
2019-09-30 21:34:30 +08:00
antao 11b6d20a69 clang-format 2019-05-18 20:39:57 +08:00
antao 2f7fe56814 Modify the drogon_ctl 2018-12-15 21:21:39 +08:00
antao 032aa19a53 Modify file formats and comments 2018-12-07 15:50:18 +08:00
antao 13d13ed240 Organize the format of files 2018-11-16 13:26:14 +08:00
antao 7611573153 Merge branch 'master' into with_orm 2018-11-15 15:04:42 +08:00
antao fd58a419a9 Rename HttpApiController to HttpController 2018-11-15 14:31:10 +08:00
antao cae30230c3 Add the create DAO method to drogon_ctl, not completed 2018-11-09 15:46:38 +08:00
antao c9b3dcd9c2 Format all files 2018-10-14 15:56:54 +08:00
antao aa8170ff18 Modify drogon_ctl 2018-08-22 14:27:45 +08:00
an-tao beb7ae2b5d modify drogon_ctl help command 2018-06-07 18:16:30 +08:00
an-tao 006cfdd898 command for creating api controller;todo:fix regex match bug 2018-06-06 21:40:48 +08:00
an-tao 3f69aafec8 create api controller command,not complete yet 2018-06-06 18:29:05 +08:00
an-tao de6e93da66 modify the file annotations 2018-05-31 17:00:31 +08:00
an-tao 30ab716c6b add HttpView to support html backend rendering 2018-05-29 17:21:37 +08:00
an-tao 526485a139 drogon_ctl: add create controller command 2018-05-29 13:49:26 +08:00