[ 
https://issues.apache.org/jira/browse/CAMEL-15875?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Federico Trotto reopened CAMEL-15875:
-------------------------------------

my problem is using the Path context in the routes. If the septum in the routes 
this is not taken into consideration in any way, while if I insert it in the 
application.yml, when I go to swaggerUI, the get works and recognizes the path. 
Is there a problem with the contextPath in camel routes or am I missing the use 
that can be made of it?

> 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
>    Affects Versions: 3.6.0
>            Reporter: Federico Trotto
>            Priority: Major
>
> 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