X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FCatalyst%2FController%2FREST.pm;h=954732608a850d168e71ba1a1a282e62b460dcca;hb=9a76221ea1453d244e65429d3e10b5bde42d7733;hp=1017cb104ca223c8e77169cccf320b65eab4a670;hpb=51cc8fe9230a36356a847ee2e443f47f3e390873;p=catagits%2FCatalyst-Action-Serialize-Data-Serializer.git diff --git a/lib/Catalyst/Controller/REST.pm b/lib/Catalyst/Controller/REST.pm index 1017cb1..9547326 100644 --- a/lib/Catalyst/Controller/REST.pm +++ b/lib/Catalyst/Controller/REST.pm @@ -158,6 +158,16 @@ you serialize be a HASHREF, we transform outgoing data to be in the form of: { data => $yourdata } +=item L + +Uses a regular Catalyst view. For example, if you wanted to have your +C and C views rendered by TT: + + 'text/html' => [ 'View', 'TT' ], + 'text/xml' => [ 'View', 'XML' ], + +Will do the trick nicely. + =back By default, L will return a C<415 Unsupported Media Type> response if an attempt to use an unsupported content-type is made. You @@ -416,8 +426,7 @@ This class provides a default configuration for Serialization. It is currently: ], 'text/x-config-general' => [ 'Data::Serializer', 'Config::General' ] , - 'text/x-php-serialization' => [ 'Data::Serializer', 'PHP::Serializat -ion' ], + 'text/x-php-serialization' => [ 'Data::Serializer', 'PHP::Serialization' ], }, } );