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