[
https://issues.apache.org/jira/browse/CAMEL-12841?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16633402#comment-16633402
]
Claus Ibsen commented on CAMEL-12841:
-------------------------------------
Okay first part of this implemented. The rest configuration is now added by
default.
For spring-boot then it would be nice if we are using the root context-path
instead of /camel as default.
However this causes issue with spring-boot actuator as they cannot co-exist on
root context-path as camel servlet as well
A way is to do as we did for the old fabric8 funktion project with a
RestController, that is registered at / path and then forward to the camel
servlet:
https://github.com/funktionio/funktion-connectors/tree/master/funktion-runtime
Then the @RestController can co exist with spring-boot acutator as they are
both spring stuff.
> camel-restdsl-swagger:generate - Add restConfiguration with common defaults
> ---------------------------------------------------------------------------
>
> Key: CAMEL-12841
> URL: https://issues.apache.org/jira/browse/CAMEL-12841
> Project: Camel
> Issue Type: New Feature
> Components: tooling
> Reporter: Claus Ibsen
> Assignee: Claus Ibsen
> Priority: Major
> Fix For: 2.23.0
>
>
> We should add restConfiguration in the generated DSL source code so the Camel
> developer can see the configuration bits there, and more easily be able to
> configure rest-dsl options.
> We should detect which component is on the classpath and choose, eg jetty /
> servlet etc.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)