1 package Test::Catalyst::Action::REST::Controller::Deserialize;
3 use namespace::autoclean;
5 BEGIN { extends 'Catalyst::Controller' }
9 'test_action_args' => {
10 'deserialize_http_methods' => [qw(POST PUT OPTIONS DELETE GET)]
13 'stash_key' => 'rest',
15 'text/x-yaml' => 'YAML',
16 'text/x-data-dumper' => [ 'Data::Serializer', 'Data::Dumper' ],
17 'text/broken' => 'Broken',
22 sub test :Local :ActionClass('Deserialize') {
23 my ( $self, $c ) = @_;
24 $c->res->output($c->req->data->{'kitty'});
27 sub test_action_args :Local :ActionClass('Deserialize') {
28 my ( $self, $c ) = @_;
29 $c->res->output($c->req->data->{'kitty'});