( action => { setup => { PathPart => 'artist', Chained => '/api/rest/rest_base' } },
class => 'RestTestDB::Artist',
create_requires => ['name'],
- create_allows => ['name'],
- update_allows => ['name'],
+ create_allows => ['name', { cds => ['*'] }],
+ update_allows => ['name', { cds => ['*'] }],
prefetch_allows => [[qw/ cds /],{ 'cds' => 'tracks'}],
);
+sub action_with_error : Chained('objects_no_id') PathPart('action_with_error') Args(0) {
+ my ( $self, $c ) = @_;
+
+ $c->res->status(404);
+}
+
1;