Details
-
Improvement
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
None
-
None
-
None
-
Unknown
Description
Original report https://github.com/apache/camel-quarkus/issues/1563
Reproducible with
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() ;
Attachments
Issue Links
- links to