Catalyst::Model::WebService::CRUST - Catalyst model class for making REST queries using WebService::CRUST
Create a controller using the helper:
script/myapp_create.pl model MyService WebService::CRUST
Or make your own:
package MyAPP::Model::MyService; use strict; use base 'Catalyst::Model::WebService::CRUST'; # Optionally set a base or other WebService::CRUST options __PACKAGE__->config( base => 'http://something/' ); 1;
Then in your Catalyst app:
$c->stash{result} = $c->model('MyService')->get('foo');
WebService::CRUST, Catalyst::Model
Chris Heschong <chris@wiw.org>
To install WebService::CRUST, copy and paste the appropriate command in to your terminal.
cpanm
cpanm WebService::CRUST
CPAN shell
perl -MCPAN -e shell install WebService::CRUST
For more information on module installation, please visit the detailed CPAN module installation guide.