[
https://issues.apache.org/jira/browse/CAMEL-8528?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14374880#comment-14374880
]
Claus Ibsen commented on CAMEL-8528:
------------------------------------
Notice this is only applicable when you have binding auto, and no json/xml on
the classpath for actual pojo bindings.
> rest-dsl - Allow producers to control what content-type header to return
> ------------------------------------------------------------------------
>
> Key: CAMEL-8528
> URL: https://issues.apache.org/jira/browse/CAMEL-8528
> Project: Camel
> Issue Type: Improvement
> Components: camel-core, rest
> Affects Versions: 2.15.0
> Reporter: Claus Ibsen
> Assignee: Claus Ibsen
> Fix For: 2.16.0
>
>
> For example having
> {code}
> rest("book").produces("application/json")
> .get("/order/{id}")
> .to("bean:bookService?method=getOrder");
> {code}
> You may want this rest service to return application/json as the content-type
> header.
> We should have an option that control what behavior to use
> - always use
> - use if no existing header
> - off
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)