rep /;
my %content_types = (
yaml => 'text/x-yaml',
yml => 'text/x-yaml',
json => 'application/json',
dump => 'text/x-data-dumper',
'' => 'text/html',
);
# TODO check if we us
\w+)} => sub {
User->find(captures->{id});
};
# curl http://mywebservice/user/42.json
{ "id": 42, "name": "John Foo", email: "john.foo@example.com"}
# curl http://mywebservic
*> serializer. Unless overriden in the
configuration, it defaults to:
serializers:
json: JSON
yml: YAML
dump: Dumper
=head1 KEYWORDS
=head2 prepare_serializer_for_format
Wh