"PostMan" 1, PostMan send JSON format request

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.