1.

How do you get the cURL command based on the details of REST API obtained from Postman?

Answer»

We can obtain the cURL command equivalent by following the below steps:

  • CLICK on the Code icon as shown below:
  • You will get the cURL command of the REST API request sent as shown in the screenshot below:
  • We can also get the command for the request in different languages like C#, Javascript, NodeJs, PHP, etc by selecting the OPTION that we require from the drop-down as shown in the image below:
Conclusion

Postman has become the most popular and beloved tool for API testing. Hence, hands-on EXPERIENCE with the Postman tool has become very important for any BACKEND developer.

Recommended Resources:

API Testing

REST API

Software Testing

Web Services



Discussion

No Comment Found