Postman is a chrome plug-in for testing Web APIs that can be obtained free of charge and installed in Chrome by Google Store, which is useful for developers who are developing Web APIs, eliminating the task of writing test page calls. This article explains how to use postman when we want to have JSON data in the call to the Web API, as most of the usage scenarios we see are directly calling the Web API and not sending related required parameters with request.
Scenario Assumptions:
Use the POST request mode, and must carry the JSON data to the Web API
How to use:
(1) Enter the Web API address and select Send As Post
[]
(2) Click the Headers button to join the declaration Content-type is transmitted in JSON (Header input content-type, Value input Application/json), this setting step is a key
[]
(3) Click on Raw and set as JSON
[]
(4) After completing the above settings, you can fill in the text input area of the JSON we want to be loaded, and press Send to be able to
(4) After completing the above settings, you can fill in the text input area of the JSON we want to be loaded, and press Send to be able to
such as the following wording
[
{
"Approvetime": "10:00:00",
"Utmsource": "Debx-zhixin"
},
{
"Approvetime": "10:00:00",
"Utmsource": "Debx-zhixin"
}
]
We can be SPRINGMVC.
@RequestBody list<autoapproveloanrule> Rulelist
Received
Want to be helpful in testing Web APIs for everyone
"PostMan" 1, PostMan send JSON format request