Details
-
Type:
Improvement
-
Status: Resolved
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 2.15.0
-
Fix Version/s: 2.16.0
-
Component/s: camel-core, rest
-
Labels:None
-
Estimated Complexity:Unknown
Description
For example having
rest("book").produces("application/json") .get("/order/{id}") .to("bean:bookService?method=getOrder");
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