Claus Ibsen created CAMEL-8528:
----------------------------------
Summary: 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: rest, camel-core
Affects Versions: 2.15.0
Reporter: Claus Ibsen
Assignee: Claus Ibsen
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)