Version 2.008001
[catagits/Catalyst-Controller-DBIC-API.git] / t / lib / RestTest / Controller / API / RPC / Producer.pm
1 package RestTest::Controller::API::RPC::Producer;
2 use Moose;
3 BEGIN { extends 'Catalyst::Controller::DBIC::API::RPC' }
4
5 use namespace::autoclean;
6
7 __PACKAGE__->config
8     ( action => { setup => { PathPart => 'producer', Chained => '/api/rpc/rpc_base' } },
9       class => 'RestTestDB::Producer',
10       create_requires => ['name'],
11       create_allows => ['producerid'],
12       update_allows => ['name'],
13       select => ['name'],
14       return_object => 1,
15       );
16
17 1;