FriendsOfSymfony/FOSRestBundle — Issue #183: Not working: _format and Accept headers
Author: ruudk
Created: 2012-02-07 10:06:56+00:00
State: open

I want the following:

/api/users = default xml output
/api/users.xml = xml output
/api/users.json = json output

But when I call

curl -v -H "Accept: application/xml" http://localhost/api/users

I want to get the XML output. So when no _format is given, I want it to use the Accept headers. But that doesn't seem to work.

How could I accomplish that?