Nillkki opened a new issue #1563:
URL: https://github.com/apache/camel-quarkus/issues/1563


   **Describe the issue**
   contextPath not set when using platform-http component in REST DSL
   
   **To Reproduce**
   Add `camel-quarkus-rest`, `camel-quarkus-platform-http` and 
`camel-quarkus-openapi-java` extensions to project
   
   Create RouteBuilder with:
   
   ```Java
   
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()
   ;            
   ```
   
   Observer that /alive -endpoint is at http://localhost:8080/alive and not at 
http://localhost:8080/api/v1/alive
   
   Is this expected behaviour? If so, is there another way to create API with 
contextPath?


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Reply via email to