Details
Description
How to reproduce
Make rest dsl route:
rest() .post("{{endpoint.uri}}") // <- loaded nice from configuration .id("{{endpoint.id}}") // <- NOT loaded from configuration .type(Claim.class) .consumes("application/json") .bindingMode(RestBindingMode.json) .to("direct:some_channel")
Placeholder for endpoint.uri is loaded nice from the configuration, but endpoint.id is not loaded at all.
Acceptance criteria
Placeholder for .id() should work nicely, same as placeholder for uri.
Hint for solution
Most probably fix should be done in RouteDefinitionHelper.java in method:
forceAssignIds(CamelContext context, List<RouteDefinition> routes)