This repository contains the project that demonstrates how to use Jersey 2 & Swagger
frameworks together.
More about Jersey & Swagger configuration you can find here and here respectively.
Just run gradle war
to generate war file. It will be in ./build/lib
directory. Then deploy war file to your
servlet container (e.g. Tomcat).
To get resource u can use next curl command:
curl -X GET "http://<host>:<port>/jersey-swagger-exmpl/info" -w "\nResponse code: %{http_code}"
.
To get swagger api scheme:
curl -X GET "http://<host>:<port>/jersey-swagger-exmpl/swagger.json" -w "\nResponse code: %{http_code}"
.