cancel
Showing results for 
Search instead for 
Did you mean: 

access swagger document for particular api

Highlighted
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
Occasional Contributor

Re: access swagger document for particular api

Hi @HKosova 

could you please help?

Highlighted
Occasional Contributor

Re: access swagger document for particular api

Could someone help me, please?

New Here?
Join us and watch the welcome video:
Announcements
Top Kudoed Authors