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

camel-jetty should support to define multiple http method for the rest service

    XMLWordPrintableJSON

Details

    • Unknown

    Description

      Camel complains Failed to start route route3 because of Multiple consumers for the same endpoint is not allowed, when define the rest service on the same path.

       restConfiguration()
                      .component("jetty")
                      .host("localhost").port(8080)
                      .contextPath("rest")
                      .bindingMode(RestBindingMode.auto)
                      .dataFormatProperty("prettyPrint", "true");
              rest("/say")
                      .get("/hello").to("direct:hello")
                      .get("/bye").consumes("application/json").to("direct:bye")
                      .post("/bye").to("direct:bye");
      
              from("direct:hello")
                      .transform().constant("Hello World");
              from("direct:bye")
                      .transform().constant("Bye World");
      

      Here is the discussion in the nabble.

      Attachments

        Issue Links

          Activity

            People

              njiang Willem Jiang
              njiang Willem Jiang
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: