Catalyst::Controller::DBIC::APIProvides a DBIx::Class web service automagically | |
Download |
Catalyst::Controller::DBIC::API Ranking & Summary
Advertisement
- License:
- Perl Artistic License
- Publisher Name:
- Alexander Hartmaier
- Publisher web site:
- http://search.cpan.org/~abraxxa/
Catalyst::Controller::DBIC::API Tags
Catalyst::Controller::DBIC::API Description
Provides a DBIx::Class web service automagically Easily provide common API endpoints based on your DBIx::Class schema classes. Catalyst::Controller::DBIC::API is a Perl module that provides both RPC and REST interfaces to base functionality. Uses Catalyst::Action::Serialize and Catalyst::Action::Deserialize to serialise response and/or deserialise request.SYNOPSIS package MyApp::Controller::API::RPC::Artist; use Moose; BEGIN { extends 'Catalyst::Controller::DBIC::API::RPC' } __PACKAGE__->config ( action => { setup => { PathPart => 'artist', Chained => '/api/rpc/rpc_base' } }, # define parent chain action and partpath class => 'MyAppDB::Artist', create_requires => , create_allows => , update_allows => , update_allows => , select => , prefetch => , prefetch_allows => }, ], ordered_by => , search_exposes => }], data_root => 'data', use_json_boolean => 1, return_object => 1, ); # Provides the following functional endpoints: # /api/rpc/artist/create # /api/rpc/artist/list # /api/rpc/artist/id//delete # /api/rpc/artist/id//update Requirements: · Perl
Catalyst::Controller::DBIC::API Related Software