聽了:https://v.qq.com/x/page/f0816egftuw.htmlhtml
這裏有兩個 api 站點,能夠用來練習 postman 用:
node
https://www.v2ex.com/p/7v9tec53
https://www.v2ex.com/api/topics/hot.json
npm
還有這個 kuaidi100 網站,提供 type 和 postid ,就能夠提交 get 狀況,練習 postman. 好比:
json
http://www.kuaidi100.com/query?type=tiantian&postid=669472972063
tests["http響應碼須要時200"] = responseCode.code === 200;
var res = JSON.parse(responseBody);
console.log(res.length);
tests["須要返回首頁十條數據"] = res.length === 10;
pm.test("返回正確的狀態碼", function()
{
pm.expect(pm.response).to.have.status(200);
});api
postman 的 api 站點:
post