GitHub user askannon opened a pull request:
https://github.com/apache/camel/pull/628
Feature to load rest dsl from xml file in camel-spring-boot
This PR ultimately adds a feature to the spring-boot component to load REST
DSL configuration from XML files in the "camel-rest" dir on the classpath.
Since spring-boot can already load routes from XML files in "camel" classpath
dir I thought it would be nice to also load REST DSL that way.
One thing I am not sure about and may need another look is the way I avoid
creating the rest route definition multiple times. For now I created a variable
in spi.RestConfiguration.java to track if the configuration already has the API
route defined or not. If there is a better way to do this please let me know
and I'll change it.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/askannon/camel feature/load_rest_dsl_from_file
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/camel/pull/628.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #628
----
commit 91d5d22de11da463f965ea61864a5f086a4ed1e6
Author: Askannon <[email protected]>
Date: 2015-09-29T11:32:39Z
Add capability to load REST DSL from XML files. Also add a variable to
track if an API route definition was already created for a RestConfiguration to
avoid adding it twice.
commit 059787ad28fa1185d6215ce23a4d693df6255c12
Author: Askannon <[email protected]>
Date: 2015-09-29T11:33:08Z
Load REST DSL from XML files.
----
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---