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).