initial commit with working tests, docs, and conversion to dzil+podweaver
[catagits/Catalyst-Controller-DBIC-API.git] / t / lib / RestTest / Controller / API / RPC / Track.pm
CommitLineData
d2739840 1package RestTest::Controller::API::RPC::Track;
2use Moose;
3BEGIN { extends 'Catalyst::Controller::DBIC::API::RPC' }
4
5use namespace::autoclean;
6
7__PACKAGE__->config
8 ( action => { setup => { PathPart => 'track', Chained => '/api/rpc/rpc_base' } },
9 class => 'RestTestDB::Track',
10 create_requires => ['cd', 'title' ],
11 create_allows => ['cd', 'title', 'position' ],
12 update_allows => ['title', 'position', { cd => ['*'] }],
13 grouped_by => ['position'],
14 select => ['position'],
15 ordered_by => ['position'],
16 search_exposes => ['title']
17 );
18
191;