This is an example that uses the rest-dsl to define a rest services which provides three operations
The example also embeds the swagger ui.
You will need to compile this example first:
mvn compile
To run the example type
mvn jetty:run
The example is built as a WAR which can also be deployed in a WAR container such as Apache Tomcat.
The example has documentation in the home.html page which you can access using the following url
http://localhost:8080/camel-example-swagger-xml/
http://localhost:8080/camel-example-swagger-xml/
This example implements the rest-dsl in XML in the camel-config.xml file. For an example that is using Java code, see the camel-example-swagger-cdi
.
To stop the example hit ctrl+c
If you hit an problems please let us know on the Camel Forums http://camel.apache.org/discussion-forums.html
Please help us make Apache Camel better - we appreciate any feedback you may have. Enjoy!
The Camel riders!