You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Peter Palaga (Jira)" <ji...@apache.org> on 2020/08/21 16:23:00 UTC
[jira] [Created] (CAMEL-15447) contextPath ignored for
platform-http with REST DSL
Peter Palaga created CAMEL-15447:
------------------------------------
Summary: 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
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)