Contributions
access swagger document for particular api
Hi team, Is it possible to access the documents generated by swagger inside the spring boot app, eg; I have four APIs in an application GET /api/read-api PATCH /api/update-api DELETE /api/delete-api POST /api/create-api and I have swagger configured in the application. I have another class in the same project where I wanted to access the document for a particular input URL public class SwaggerDocument{ Map<String, Document>getDocument(String url){ //I wanted to search generated document for input url } } Any help would be highly appreciated. Thank you1.1KViews0likes2CommentsRe: How can I use swagger api functionality to generate response example
HeyHKosova swagger-inflector, only works when the schema is defined, Here is more details about my query. I have an API "/hello" defined below. and Person class like below. I wanted to generate a response example like below. Thank you.2.6KViews0likes2CommentsHow can I use swagger api functionality to generate response example
I am working on a project where I have to generate json representation of method return type. I have seen swagger api is generating response example and wanted to know, how can I use swagger api functionality to generate response example and use it internally. Any help would be highly appreciated. Thanks