How To Configure Spring Boot Jersey and Swagger
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"}]