1 package RestTest::Controller::API::REST::Track;
3 BEGIN { extends 'Catalyst::Controller::DBIC::API::REST' }
5 use namespace::autoclean;
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' ],
12 update_allows => ['title', 'position']