Examples of JSR303 validation with OpenAPI
./gradlew clean build
docker-compose up --build
localhost:3000/swagger-ui
How to try locally POST endpoint:
Servlet API:
curl -X POST -H "content-type: application/json" -d "@payload/employeeVacation.json" localhost:8090/api/employees/1/vacations -v
WebFlux API:
curl -X POST -H "content-type: application/json" -d "@payload/employeeVacation.json" localhost:8093/api/employees/1/vacations -v
Coroutines API:
curl -X POST -H "content-type: application/json" -d "@payload/employeeVacation.json" localhost:8095/api/employees/1/vacations -v
- https://openapi.tools
- springdoc library
- reDoc
- ReDoc aggregation of more specs (reDocMoreSpecs (not used in this project)
- Validation API tutorial