Ask a Question

access swagger document for particular api

rajrahul9939
Occasional Contributor

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 you

2 REPLIES 2
rajrahul9939
Occasional Contributor

Hi @HKosova 

could you please help?

rajrahul9939
Occasional Contributor

Could someone help me, please?

cancel
Showing results for 
Search instead for 
Did you mean: