tree: 723768fc985581c4a7aa4c0d86217cf41ca631d0 [path history] [tgz]
  2. pom.xml
  3. src/

Camel Swagger example


This is an example that uses the rest-dsl to define a rest services which provides three operations

  • GET user/{id} - Find user by id
  • PUT user - Updates or create a user
  • GET user/findAll - Find all users

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



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

Forum, Help, etc

If you hit an problems please let us know on the Camel Forums

Please help us make Apache Camel better - we appreciate any feedback you may have. Enjoy!

The Camel riders!