Commit | Line | Data |
d2739840 |
1 | package RestTest::Controller::API::REST::Track; |
2 | use Moose; |
3 | BEGIN { extends 'Catalyst::Controller::DBIC::API::REST' } |
4 | |
5 | use namespace::autoclean; |
6 | |
7 | __PACKAGE__->config |
8 | ( action => { setup => { PathPart => 'track', Chained => '/api/rest/rest_base' } }, |
9 | class => 'RestTestDB::Track', |
10 | create_requires => ['cd', 'title' ], |
11 | create_allows => ['cd', 'title', 'position' ], |
9f9ffe56 |
12 | update_allows => ['title', 'position', { cd => ['*'] }], |
4a805f62 |
13 | page => 1, |
14 | count => 10, |
0cd7ab9e |
15 | use_json_boolean => 1, |
d2739840 |
16 | ); |
17 | |
18 | 1; |