...
Any Apache Camel component can integrate with the Rest DSL if they can be used as a REST service (eg as a REST consumer in Camel lingo). To integrate with the Rest DSL, then the component should implement the org.apache.camel.spi.RestConsumerFactory
. The Rest DSL will then invoke the createConsumer
method when it setup the Camel routes from the defined DSL. The component should then implement logic to create a Camel consumer that exposes the REST services based on the given parameters, such as path, verb, and other options. For example see the source code for camel-restlet, camel-spark-rest.
Swagger API
The Rest DSL supports Swagger by the camel-swagger
module. See more details at Swagger and the camel-example-servlet-rest-tomcat
example from the Apache Camel distribution.
See Also
DSL
Rest
Swagger
Spark-rest
How do I import rests from other XML files