package Test::Catalyst::Action::REST::Controller::Deserialize;
+use Moose;
+use namespace::autoclean;
-use base 'Catalyst::Controller';
+BEGIN { extends 'Catalyst::Controller' }
__PACKAGE__->config(
+ 'action_args' => {
+ 'test_action_args' => {
+ 'deserialize_http_methods' => [qw(POST PUT OPTIONS DELETE GET)]
+ }
+ },
'stash_key' => 'rest',
'map' => {
'text/x-yaml' => 'YAML',
$c->res->output($c->req->data->{'kitty'});
}
+sub test_action_args :Local :ActionClass('Deserialize') {
+ my ( $self, $c ) = @_;
+ $c->res->output($c->req->data->{'kitty'});
+}
+
1;