introduction
Postman is a Chrome plug-in software used to test the Web API. It can be obtained and installed in Chrome for free by the Google store. It is very useful for developers who are developing Web APIs, saving a lot of work of writing test page calls. Usually, most of the usage scenarios we see are to directly call the Web API without sending relevant required parameters with the Request. This article will explain how to use Postman if we want to include JSON data when calling the Web API?
need
Using POST request method, and must include JSON data to the Web API usage tutorial
First, set the URL
Second, set Content-Type in the header
Third, set up the Body
Fourth, enter the test data in json format
summary
When we are doing projects that are separated from front and back end, this tool is still very convenient to test the backend interface. I hope this blog will help everyone
The above example explanation of the postman test post request parameters is json type. This is all the content I share with you. I hope you can give you a reference and I hope you can support Wulin.com more.