{"id":2638,"date":"2026-09-01T19:26:43","date_gmt":"2026-09-01T11:26:43","guid":{"rendered":"https:\/\/www.54iter.cn\/?software=postman%ef%bc%9aapi-%e8%b0%83%e8%af%95%e4%b8%8e%e6%b5%8b%e8%af%95%e7%a5%9e%e5%99%a8"},"modified":"2026-09-01T19:26:43","modified_gmt":"2026-09-01T11:26:43","slug":"postman%ef%bc%9aapi-%e8%b0%83%e8%af%95%e4%b8%8e%e6%b5%8b%e8%af%95%e7%a5%9e%e5%99%a8","status":"publish","type":"software","link":"https:\/\/www.54iter.cn\/?software=postman%ef%bc%9aapi-%e8%b0%83%e8%af%95%e4%b8%8e%e6%b5%8b%e8%af%95%e7%a5%9e%e5%99%a8","title":{"rendered":"Postman\uff1aAPI \u8c03\u8bd5\u4e0e\u6d4b\u8bd5\u795e\u5668"},"content":{"rendered":"<p>Postman \u662f\u5f00\u53d1\u4e0e\u8fd0\u7ef4\u8c03\u8bd5\u63a5\u53e3\u7684\u4e8b\u5b9e\u6807\u51c6\u5de5\u5177\uff0c\u7528\u56fe\u5f62\u5316\u65b9\u5f0f\u6784\u9020 HTTP \u8bf7\u6c42\u3001\u7ba1\u7406\u63a5\u53e3\u96c6\u5408\u3001\u8bbe\u7f6e\u73af\u5883\u53d8\u91cf\uff0c\u8fd8\u80fd\u628a\u63a5\u53e3\u6574\u7406\u6210\u6587\u6863\u3001\u505a\u81ea\u52a8\u5316\u6d4b\u8bd5\uff0c\u5bf9\u63a5\u524d\u540e\u7aef\u8054\u8c03\u548c\u63a5\u53e3\u5de1\u68c0\u90fd\u6781\u5176\u65b9\u4fbf\u3002<\/p>\n<h2>\u6838\u5fc3\u4f18\u70b9<\/h2>\n<ul>\n<li><strong>\u8bf7\u6c42\u6784\u9020\u76f4\u89c2<\/strong>\uff1aURL\u3001Header\u3001Body\u3001\u8ba4\u8bc1\u4e00\u952e\u914d\u7f6e\uff0cGET\/POST\/PUT \u968f\u624b\u5207\u3002<\/li>\n<li><strong>\u73af\u5883\u53d8\u91cf<\/strong>\uff1a\u4e00\u7ec4\u53d8\u91cf\u5207\u6362\u6d4b\u8bd5\/\u751f\u4ea7\u73af\u5883\uff0c\u4e0d\u7528\u6539\u8bf7\u6c42\u3002<\/li>\n<li><strong>\u96c6\u5408\u4e0e\u6587\u6863<\/strong>\uff1a\u63a5\u53e3\u6574\u7406\u6210\u96c6\u5408\uff0c\u53ef\u76f4\u63a5\u5bfc\u51fa\u4e3a\u5728\u7ebf\u6587\u6863\u3002<\/li>\n<li><strong>\u81ea\u52a8\u5316\u6d4b\u8bd5<\/strong>\uff1a\u5199\u65ad\u8a00\u811a\u672c\u8dd1\u63a5\u53e3\u56de\u5f52\uff0c\u914d\u5408 Newman \u53ef\u8fdb CI\u3002<\/li>\n<li><strong>\u5386\u53f2\u8bb0\u5f55<\/strong>\uff1a\u5386\u53f2\u8bf7\u6c42\u4e00\u952e\u590d\u7528\uff0c\u6392\u67e5\u95ee\u9898\u5feb\u3002<\/li>\n<\/ul>\n<h2>\u5feb\u901f\u4e0a\u624b<\/h2>\n<pre><code># \u4e0b\u8f7d\u5b89\u88c5\uff08\u53ef\u7f51\u9875\u7248\uff09\n# \u65b0\u5efa\u8bf7\u6c42 \u2192 \u586b URL \u2192 \u9009\u65b9\u6cd5 \u2192 \u5728 Body \u91cc\u5199 JSON \u2192 Send\n# \u7528\u73af\u5883\u53d8\u91cf\uff1a{{base_url}} \u4ee3\u66ff\u4e3b\u673a\uff0cEnvironments \u91cc\u586b\u503c\u5207\u6362\n# \u65ad\u8a00\u793a\u4f8b\uff1a\n#   pm.test(\"\u72b6\u6001 200\", function () { pm.response.to.have.status(200); });\n# \u547d\u4ee4\u884c\u6279\u91cf\uff1anewman run collection.json -e env.json<\/code><\/pre>\n<h2>\u9002\u7528\u573a\u666f<\/h2>\n<p>\u524d\u540e\u7aef\u63a5\u53e3\u8054\u8c03\u3001\u7f51\u5173\/API \u5de1\u68c0\u3001\u4e91\u5e73\u53f0 OpenAPI \u8c03\u8bd5\u3001\u63a5\u53e3\u81ea\u52a8\u5316\u56de\u5f52\u6d4b\u8bd5\u3002<\/p>\n<h2>\u4e0b\u8f7d\u5730\u5740<\/h2>\n<ul>\n<li><strong>\u5b98\u65b9\u7f51\u7ad9<\/strong>\uff1a<a href=\"https:\/\/www.postman.com\/\" target=\"_blank\" rel=\"noopener nofollow\">https:\/\/www.postman.com\/<\/a><\/li>\n<li><strong>\u4e0b\u8f7d\u9875\u9762<\/strong>\uff1a<a href=\"https:\/\/www.postman.com\/downloads\/\" target=\"_blank\" rel=\"noopener nofollow\">https:\/\/www.postman.com\/downloads\/<\/a><\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>\u4e1a\u754c\u6807\u51c6 API \u8c03\u8bd5\u5de5\u5177\uff1a\u8bf7\u6c42\u6784\u9020\u3001\u73af\u5883\u53d8\u91cf\u3001\u63a5\u53e3\u6587\u6863\u4e0e\u81ea\u52a8\u5316\u6d4b\u8bd5\u3002<\/p>\n","protected":false},"featured_media":0,"template":"","categories":[157],"tags":[],"class_list":["post-2638","software","type-software","status-publish","hentry","category-network-security"],"_links":{"self":[{"href":"https:\/\/www.54iter.cn\/index.php?rest_route=\/wp\/v2\/software\/2638","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.54iter.cn\/index.php?rest_route=\/wp\/v2\/software"}],"about":[{"href":"https:\/\/www.54iter.cn\/index.php?rest_route=\/wp\/v2\/types\/software"}],"wp:attachment":[{"href":"https:\/\/www.54iter.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2638"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.54iter.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2638"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.54iter.cn\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2638"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}