Request
Postman supports a number of request types, the left side of the interface can see the request type: Get, post, put, patch, etc., on the right is the Send and save button, below is the request to support the authentication method, information header, information body, private script and test results. Below we describe the common get and put requests.
GET request
Just select the GET request, enter the interface address, then save, select the appropriate folder
POST request
1. Select the GET request, enter the interface address, and enter the appropriate information in the header and body
Body according to the actual needs of choice, support:
- Form-data
- x-www-form-urlencoded
- Raw
- Binary
2.Tests is the assertion of test results, etc., the following article describes
3. After clicking Send, you can see the results returned by the interface.
Tips: Postman can be requested to generate code parameters, the direct format of the special symbols, can be used in code, very convenient Ah, see
Postman section 3rd API request and view response Results (RPM)