Using postman to test restful interfaces

Source: Internet
Author: User

When developing on the web and the mobile side, the server-side restful interface is often invoked to make data requests, and in order to debug, it is usually first tested with tools and tested before it is used in development. Postman can send almost all types of HTTP requests and can be said to be one of the products represented in the Chrome plug-in class in terms of sending a network HTTP request. Here is how to use the Postman application for RESTful API interface request test.
1. Download and install Postman
Can be downloaded through the official website, I downloaded the postman for Chrome version.
Https://www.getpostman.com/apps

After opening the Chrome App Store, select Start Application

After the startup interface is as follows:

2. Use Postman Test RESTful interface
Now I need to send a JSON-formatted parameter to the server to participate in the task by post request, following is the postman setting.
Select Header tab, select Content-type, and enter Application/json.

Select the Body tab, select RAW format, and enter the JSON format parameter, here is ["jzd1001", 2].

Clicking the Send button will request the Take_mission interface to the server, and the bottom of the screen is the result of the server's return execution, here is [1].

Postman function is very powerful, other functions can refer to the official website manual, I believe postman will become you debugging server background program of a sharp weapon.

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.