Version 2.008001
[catagits/Catalyst-Controller-DBIC-API.git] / t / lib / RestTest / Controller / API / REST / CD.pm
CommitLineData
d2739840 1package RestTest::Controller::API::REST::CD;
2use Moose;
3BEGIN { extends 'Catalyst::Controller::DBIC::API::REST' }
4
5use namespace::autoclean;
6
7__PACKAGE__->config
8 ( action => { setup => { PathPart => 'cd', Chained => '/api/rest/rest_base' } },
9 class => 'RestTestDB::CD',
10 create_requires => ['artist', 'title', 'year' ],
11 update_allows => ['title', 'year'],
12 prefetch_allows => [['artist', ['tracks'], { cd_to_producer => ['producer'], tags => 'cd' }]],
13 );
14
151;