Skip to content

naXa777/stackoverflow-swagger-apiresponses

Repository files navigation

Swagger @ApiResponses Demo

A mini project to answer a Stack Overflow question about Swagger annotations. It demonstrates Swagger annotations, specifically @ApiResponses, for configuring responses in API documentation.

For more details read the answer.

Technologies

  • Java 8
  • Spring Boot 2
  • Spring MVC
  • Springfox
  • Gradle

Build

Build Status

./gradlew bootRun

Open http://localhost:8080/swagger-ui.html in browser.

Screenshots

Swagger UI

License

This work is licensed under Creative Commons Attribution-Share Alike. Proper attribution is required if you republish this repository content.