Skip to content

Latest commit

 

History

History
20 lines (16 loc) · 1.18 KB

File metadata and controls

20 lines (16 loc) · 1.18 KB

How To Configure Spring Boot Jersey and Swagger

Build Status

Problem Statement

  • How To Integrate Spring Boot, Jersey, Swagger to build real world JSON-based RESTful web services

Before You Start It Up

We must Have Spring Boot Starter Web as a dependency for Swagger UI to Work Properly .

Run the Web Services


curl -X POST "http://localhost:8080/api/users" -H "accept: application/json" -H "Content-Type: application/json" -d "{ "id": "78", "name": "huu"}"

curl -X GET "http://localhost:8080/api/users" -H "accept: application/json" "[{"id": "1","name": "password"},{"id": "2","name": "huu"}]


Blog Link

swagger-ui