November 2017
Intermediate to advanced
420 pages
10h 29m
English
To use Swagger in your Jersey 2 application, specify the dependency to swagger-jersey2-jaxrs jar. If you use Maven for building the source, the dependency to the swagger-core library will look as follows:
<dependency>
<groupId>com.wordnik</groupId>
<artifactId>swagger-jersey2-jaxrs</artifactId>
<version>1.5.1-M1</version>
<!-use the appropriate version here,
1.5.x supports Swagger 2.0 spec -->
</dependency>
The next step is to hook the Swagger provider components into your Jersey application. This is ...