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.