[ 
https://issues.apache.org/jira/browse/CAMEL-8528?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Claus Ibsen resolved CAMEL-8528.
--------------------------------
    Resolution: Fixed

We now fallback and use produces as content-type if not already set. Also if 
binding is off.

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

Reply via email to