You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Claus Ibsen (JIRA)" <ji...@apache.org> on 2015/03/22 11:53:10 UTC

[jira] [Created] (CAMEL-8528) rest-dsl - Allow producers to control what content-type header to return

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)