This is an example that uses the rest-dsl to define a rest services which provides three operations
You will need to compile this example first:
To run the example type
The rest service can be accessed from the following url
For example to get a user with id 123
The rest services provides Swagger API in json or yaml format which can be accessed from the following url
curl -H "Accept: application/json" http://localhost:8080/api-doc curl -H "Accept: application/yaml" http://localhost:8080/api-doc
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!