11 Sep
2015
11 Sep
'15
10:40 a.m.
Hi! 2015-09-11 3:56 GMT+03:00 Ken Peng <ken@cloud-china.org>:
Since we use RESTful API for backend, can you tell me how to let Dancer generate the standard RESTful interface automatically?
I recently discovered a pretty new module WebAPI::DBIC https://metacpan.org/pod/WebAPI::DBIC You can easily build PSGI app with it which is capable on the fly to render your DBIx::Class Schema into fully RESTful/Hypermedia API. It glues together 3 wonderful modules (Plack, Path::Router and Web::Machine, not to mention DBIx::Class) and the result is worth looking. I am really impressed. I think it is worth looking if anyone needs to build a new API. To use it as a part of your Dancer2 app should not be a big deal. Wbr, -- Kõike hääd, Gunnar