1 package RestTest::Controller::API::REST::Artist;
3 BEGIN { extends 'Catalyst::Controller::DBIC::API::REST' }
4 use namespace::autoclean;
7 ( action => { setup => { PathPart => 'artist', Chained => '/api/rest/rest_base' } },
8 class => 'RestTestDB::Artist',
9 create_requires => ['name'],
10 create_allows => ['name'],
11 update_allows => ['name'],
12 prefetch_allows => [[qw/ cds /],{ 'cds' => 'tracks'}],