1 package RestTest::Controller::API::RPC::TrackExposed;
3 BEGIN { extends 'Catalyst::Controller::DBIC::API::RPC' }
5 use namespace::autoclean;
8 ( action => { setup => { PathPart => 'track_exposed', Chained => '/api/rpc/rpc_base' } },
9 class => 'RestTestDB::Track',
10 select => [qw/position title/],
11 ordered_by => [qw/position/],
12 search_exposes => [qw/position/, { cd => [qw/title year pretend/, { 'artist' => ['*'] } ]}],