Dynamic Swagger Generation

We want to dynamically generate swagger documentation for our CRUD restful API. We have an API that allows consumers to create an entity eg. User. Now we want to generate the REST API definition for the created object dynamically, since the created object can be any object, for example, user, organization, organization. We have functionality for generating metadata for a given object, which will mainly describe the created object (properties, their checks, etc.).

Is there an API that we can use to write the swagger definition using metadata as input? This will allow us to have a Swagger definition for each of the objects we dynamically create. We are using Spring Framework.

+3


source to share





All Articles