The article directories
- 1. Postman download and install
- 2. Basic use of Postman
-
- Case 1: Test the weather API request using Postman and return the result
1. Postman download and install
- The first time you use Postman, you will enter the registration or login page. If you have an account, you can use the postman tested request link to save it in the official cloud storage. When you use it on other computers or devices, you will also perform cloud synchronization and other functions or retain the previous working status.
- It is also possible to join a workgroup to share interface requests with all test workers, or to skip the login
2. Basic use of Postman
Case 1: Test the weather API request using Postman and return the result
- Using the weather API: www.tianqiapi.com/
- Appid and AppSecret are available only when you register your account.
- Reference: www.tianqiapi.com/index/doc
- Appid, Appsercret, and Version are mandatory. By default, the requested city weather is based on the requested IP address
- When parameters are added to Query Params, the corresponding key and value are added to the address of the above GET request
- For example, add the parameter “city” to view the current weather in Shenzhen
- By default, arguments are returned in JSON format.
- There are a lot of open interfaces available on the web, such as api.apiopen.top/api.html
- Yonyou open interface platform: api.yonyoucloud.com
- Aggregated data platform: www.juhe.cn/
- However, you need to register with apicODE to test. Interested students can apply for the test.