Swagger UI and Request Validator
Swagger UI Demo
- Git clone project
git clone https://github.com/ahoqueali/ahoqueali.github.io - Cd into swagger-demo
- Start demo app
./gradlew bootRun - Go to Swagger UI http://localhost:8080/swagger-ui.html and clink on the
Try it outbutton - Type a name that has more than 5 characters and click on the
executebutton
The URLs below allow access to the Swagger Specs
- JSON Swagger Spec http://localhost:8080/v3/api-docs/
- YAML Swagger Spec http://localhost:8080/v3/api-docs.yaml

Swagger Request Validator Demo
- Whilst the demo app is running, open a terminal and execute the following command
curl http://localhost:8080/hello?name=Ross - The message below will be shown.. The error is produced by the Swagger Request Validator after intercepting the request as the name cannot be less than 5 chars

See source for implementation details.