Effortless API Testing: Transfer Requests from Chrome to Postman in 4 Steps
Most of the web application nowadays use API for maintaining data communication between frontend and backend. So it is always very important to test these API functionalities, requests and responses to ensure they are working properly. Postman is one of the most popular tool to test API efficiently. As a developer, when you are building or debugging API, you can track those requests and responses from the browser of course, but if something goes wrong, you may need to transfer these requests to postman. Because, you cannot debug them in the browser very easily. In this quick article, we will see how we can transfer requests to postman swiftly with all the required parameters.
How to transfer requests to postman
We will use chrome browser for this case. But most of the browser has the similar options, so you wont have any trouble by following this way for any browser.
To transfer the requests from chrome to postman, please follow the steps below:
1. First open the developer tools by right clicking on the webpage anywhere and selecting inspect, or you can press Ctrl+Shift+I
2. Then, go to network tab. You might see a lot of requests already listed already. You need to find your corresponding API or request from there. For your convenience, I would suggest to activate Fetch/XHR filter and Preserve logs checkbox. This will remove unwanted requests from the list.
If you still cant find the request, you can try trigger the request again from the webpage, keeping network tab opened.
3. After locating your request, right click on it, and click on Copy > Copy as Curl(bash)
4. Now go to postman, click import and select raw text tab. Then, paste the Curl you have copied from chrome and continue.
You will see your request will transferred perfectly with all the parameters and request type in proper place.
Summary
As you can see, these are very easy steps to transfer your API directly to postman. These procedures might seem simple but very useful if you work in full stack web development, and also you dont need to prepare each API in postman manually by giving every single parameters by yourself, which saves a lot of time and make your workflow smooth. Do you use these steps to test your API too? Let me know your thoughts and experiences in the comment box and please give a love to this article.
Thank you for reaching us out.
Comments