Swagger UI

Swagger UI (http://localhost:8080/swagger-ui.html) can also be used to look at the documentation. Swagger UI is enabled by the dependency (io.springfox:springfox-swagger-ui) that was added in our pom.xml, in the previous step.

Swagger UI (http://petstore.swagger.io) is also available online. We can visualise any Swagger documentation (swagger JSON) using Swagger UI.

The following screenshot shows the list of controller-exposing services. When we click on any controller, it expands to show the list of request methods and URIs each controller supports:

The following screenshot shows the details for the POST service to create a todo ...

Get Mastering Spring 5.0 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.