Skip to content
Snippets Groups Projects
Commit 784260a8 authored by Paul-Christian Volkmer's avatar Paul-Christian Volkmer
Browse files

Changed configuration to enable XML based responses

Having content negotiation with more than just JSON content
might follow REST principles.

All entities annotated with e.g. @XmlRootElement can be send as XML data.
This requires client to send Accept header with value "application/json"
to fetch JSON responses.
Default Accept header send by client is something like:
"text/html,application/xhtml+xml,application/xml"
which requests an XML document, not JSON document but JSON is expected.
parent 2b9caab9
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment