How can i access PathVariables in the Apache Camel Rest module?
I defined a route like this (following "using base path" from the documentation):
rest("/customers/")
.get("/{id}").to("direct:customerDetail")
How can i get a hold on the {id}-Parameter in the following route?
Basically i would like to know what camel offers instead of @PathVariable (see following example)
@RequestMapping(value="/customers/{id}", method = RequestMethod.GET)
public Customer customerDetail(@PathVariable String cId) {
return getCustomer(cId);
}