X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=README;h=692c135c2c9c7484c757f51b718b9217106cca99;hb=888f25e36f418362daee8528b6af555dbee134b3;hp=172ac8ebc61c3801ae5a325710bb56f409b96545;hpb=367b3ff4e4444df4d20e8688c1cad9e1f59a3ba5;p=catagits%2FCatalyst-Action-REST.git diff --git a/README b/README index 172ac8e..692c135 100644 --- a/README +++ b/README @@ -1,6 +1,9 @@ NAME Catalyst::Controller::REST - A RESTful controller +VERSION + 0.71 + SYNOPSIS package Foo::Controller::Bar; @@ -135,6 +138,15 @@ AVAILABLE SERIALIZERS { data => $yourdata } + View + Uses a regular Catalyst view. For example, if you wanted to have your + "text/html" and "text/xml" views rendered by TT: + + 'text/html' => [ 'View', 'TT' ], + 'text/xml' => [ 'View', 'XML' ], + + Will do the trick nicely. + By default, Catalyst::Controller::REST will return a "415 Unsupported Media Type" response if an attempt to use an unsupported content-type is made. You can ensure that something is always returned by setting the @@ -260,8 +272,7 @@ IMPLEMENTATION DETAILS ], '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' ], }, } );