oscerd commented on a change in pull request #6004:
URL: https://github.com/apache/camel/pull/6004#discussion_r698199138
##########
File path: docs/user-manual/modules/ROOT/pages/rest-dsl.adoc
##########
@@ -317,6 +317,13 @@ to specify a custom content-type if the message body
should not attempt to be
marshalled using the binding. For example if the message body is a
custom binary payload etc.
+When automatic binding from POJO to JSon/JAXB takes place the existing
`content-type` header will by default be replaced with either
`application/json` or `application/xml`. To disable the default behavior and be
able to produce JSon/JAXB responses with custom `content-type` headers (e.g.
`application/user.v2+json`) you configure this in Java DSL as shown below:
Review comment:
Maybe "you should configure" instead of "you configure"
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]