I am trying to create a REST API but am struggling a bit to get it to behave as I expect it to. I'm using Camel 2.14.
When creating a route with two methods on the same endpoint I get "Failed to start route route2 because of Multiple consumers for the same endpoint is not allowed" I've tried the example from http://camel.apache.org/rest-dsl.html and even that fails: rest("/say") .get("/hello").to("direct:hello") .get("/bye").consumes("application/json").to("direct:bye") .post("/bye").to("mock:update"); "Failed to start route route3 because of Multiple consumers for the same endpoint is not allowed: Endpoint[https://localhost:443/say/bye]" I would expect that when having for example a "/customers" endpoint I could GET that to get a list and POST to create a customer. (rest("customer").get().to("direct:get").post().to("direct:create")) Am I missing something? Thanks, David
