[
https://issues.apache.org/jira/browse/CAMEL-7899?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Willem Jiang resolved CAMEL-7899.
---------------------------------
Resolution: Fixed
Fix Version/s: 2.15.0
Applied the patch into camel master and camel-2.14.x branches.
> camel-jetty should support to define multiple http method for the rest service
> ------------------------------------------------------------------------------
>
> Key: CAMEL-7899
> URL: https://issues.apache.org/jira/browse/CAMEL-7899
> Project: Camel
> Issue Type: Bug
> Components: camel-jetty, camel-netty-http, camel-netty4-http
> Affects Versions: 2.14.0
> Reporter: Willem Jiang
> Assignee: Willem Jiang
> Fix For: 2.14.1, 2.15.0
>
>
> 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.
> {code}
> 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");
> {code}
> Here is [the
> discussion|http://camel.465427.n5.nabble.com/Rest-DSL-with-Jetty-tp5757418.html]
> in the nabble.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)