Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Maven users will need to add the following dependency to their pom.xml for this component:

From Camel 2.16 onwards the swagger component is purely Java based, and its 

Code Block
<dependency>
    <groupId>org.apache.camel</groupId>
    <artifactId>camel-swagger-java</artifactId>
    <version>x.x.x</version>
    <!-- use the same version as your Camel core version -->
</dependency>

And the old Scala based camel-swagger module is deprecated, and to be removed in a future release.

Code Block
<dependency>
    <groupId>org.apache.camel</groupId>
    <artifactId>camel-swagger</artifactId>
    <version>x.x.x</version>
    <!-- use the same version as your Camel core version -->
</dependency>

Using with Camel 2.16 onwards

The name of the servlet is org.apache.camel.swagger.servlet.RestSwaggerServlet.

However some of the Camel components is able to support Swagger API documentation out of the box without having to use a servlet container. For example these components: JettyNetty HTTPNetty HTTPUndertow. This allows to provide Swagger API in standalone containers that has no servlet container. For an example see the camel-example-swagger-cdi in the examples directory of the Apache Camel distribution.

Using with Camel 2.15 onwards

...