Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-8528

rest-dsl - Allow producers to control what content-type header to return

    XMLWordPrintableJSON

    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

        Attachments

          Activity

            People

            • Assignee:
              davsclaus Claus Ibsen
              Reporter:
              davsclaus Claus Ibsen
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: