initial commit with working tests, docs, and conversion to dzil+podweaver
[catagits/Catalyst-Controller-DBIC-API.git] / t / lib / RestTest / Controller / API / RPC / TrackExposed.pm
1 package RestTest::Controller::API::RPC::TrackExposed;
2 use Moose;
3 BEGIN { extends 'Catalyst::Controller::DBIC::API::RPC' }
4
5 use namespace::autoclean;
6
7 __PACKAGE__->config
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' => ['*'] } ]}],
13       );
14
15 1;