Skip to content

Latest commit

 

History

History
19 lines (16 loc) · 1.04 KB

README.md

File metadata and controls

19 lines (16 loc) · 1.04 KB

Jersey 2 & Swagger example project 👊

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.

Run it

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}".