1 package RestTest::Controller::API::REST::BoundArtist;
3 BEGIN { extends 'RestTest::Controller::API::REST::Artist'; }
5 use namespace::autoclean;
8 ( action => { setup => { PathPart => 'bound_artist', Chained => '/api/rest/rest_base' } },
9 class => 'RestTestDB::Artist',
10 create_requires => ['name'],
11 create_allows => ['name'],
12 update_allows => ['name']
16 override list_munge_parameters => sub
19 # Return the first one, regardless of arguments
20 $c->req->search_parameters->[0]->{'me.artistid'} = 1;