calleandersson commented on a change in pull request #6004:
URL: https://github.com/apache/camel/pull/6004#discussion_r698212594



##########
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:
       I tried to be consistent with how the text was written for the example 
below my changes (i.e. "To enable binding you configure this in Java DSL as 
shown below:") but I think it looks better with "should". Should I change it or 
keep it as it is?




-- 
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]


Reply via email to