NAME
Catalyst::Model::CRUST - Catalyst model class for making REST queries using CRUST
SYNOPSIS
Create a controller using the helper:
script/myapp_create.pl model CRUST CRUST
Or make your own:
package MyAPP::Model::CRUST;
use strict;
use base 'Catalyst::Model::CRUST';
# Optionally set a base or other CRUST options
__PACKAGE__->config(
base => 'http://something/'
);
1;
Then in your Catalyst app:
$c->stash{result} = $c->model('CRUST')->get('http://something/foo');
SEE ALSO
AUTHOR
Chris Heschong <chris@wiw.org>