Home > database >  How can generate a swagger from my spring boot application?
How can generate a swagger from my spring boot application?

Time:05-15

I have created a web rest API using Spring boot and I would like to generate a swagger page with the APIs documentation. How can I do that?

CodePudding user response:

There is a Spring project dedicated to this: https://springdoc.org/. You can annotate your classes and an OpenAPI document will be generated from them.

The OpenAPI document can be consumed in many ways (one of those is the Swagger UI, another is to generate clients from it).

  • Related