Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to auto generate postman collections from Spring environment

I have a requirement, where to test the performance of the application I need all the postman collections of the APIs which are being used in the process flow of the application to automate the flow.

I have seen this example in baeldung on how to generate a collection. In a similar manner, How can I get the output of all the APIs in the form of postman collections.

I'm using Spring MVC Legacy application with login, logout and dashboard JSP's with Rest APIs.

like image 888
Shiva kumar Avatar asked Mar 20 '20 07:03

Shiva kumar


People also ask

How do I sync Postman collections?

Postman automatically syncs changes across all devices that are linked to your account, including edits, updates, additions, or deletions. As long as you're signed into Postman, and have a reliable internet connection, your data will sync.


1 Answers

Whether its Java/Spring or any other Tech Stack based web application, if the app is using REST Communication for API's, It can be tracked using Postman Interceptor. Its mentioned in this answer. Once you install the extension in the browser and connect the Interceptor, you can intercept all requests which are being called through the browser, we can create a collection and save all the intercepted requests in the collection.

like image 200
Shiva kumar Avatar answered Oct 18 '22 03:10

Shiva kumar