[
https://issues.apache.org/jira/browse/CAMEL-15447?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Claus Ibsen resolved CAMEL-15447.
---------------------------------
Fix Version/s: 3.5.0
Resolution: Fixed
> contextPath ignored for platform-http with REST DSL
> ---------------------------------------------------
>
> Key: CAMEL-15447
> URL: https://issues.apache.org/jira/browse/CAMEL-15447
> Project: Camel
> Issue Type: Improvement
> Reporter: Peter Palaga
> Assignee: Peter Palaga
> Priority: Major
> Fix For: 3.5.0
>
>
> Original report https://github.com/apache/camel-quarkus/issues/1563
> Reproducible with
> {code}
> restConfiguration().component("platform-http").bindingMode(RestBindingMode.off)
> // and output using pretty print
> .dataFormatProperty("prettyPrint", "true")
> // setup context path and port number that api will use
> .contextPath("api/v1")
> .port(8080)
> .host("0.0.0.0")
> // add OpenApi api-doc out of the box
> .apiContextPath("/api-doc")
> .apiProperty("api.title", "API Title")
> .apiProperty("api.description", "API Description")
> .apiProperty("api.version", "1.0.0")
> // and enable CORS
> .apiProperty("cors", "true")
> ;
> rest()
> .get("/alive")
> .id("api-alive")
> .produces("text/plain")
> .responseMessage()
> .code(200).message("Alive")
> .endResponseMessage()
> .route().transform().constant("alive")
> .end()
> ;
> {code}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)