Federico Trotto created CAMEL-15875:
---------------------------------------

             Summary: How to set ContextPath from routes in Camel?
                 Key: CAMEL-15875
                 URL: https://issues.apache.org/jira/browse/CAMEL-15875
             Project: Camel
          Issue Type: Bug
            Reporter: Federico Trotto


Hello everyone! I'm new to Camel. I'm trying to set the **contextPath** 
directly from the route configure as follows:

public void configure() {

restConfiguration().component("servlet").contextPath("/service/");
 //some code here//
}

But when I go to use swaggerUi for my API, it doesn't automatically take the 
context-path unless I explicitly insert it in my application.yml:
Then when I go to the swagger I should directly expect the default insertion of 
"/ service /" in my get, but this does not happen if I insert the contextPath 
from the routes. How can I insert the contextPath in the routes without having 
to use the camel in the application.yml?



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to