[
https://issues.apache.org/jira/browse/CAMEL-15875?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Andrea Cosentino resolved CAMEL-15875.
--------------------------------------
Resolution: Invalid
> 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)