{"id":4138,"date":"2024-11-10T11:24:35","date_gmt":"2024-11-10T03:24:35","guid":{"rendered":"https:\/\/fwq.ai\/blog\/4138\/"},"modified":"2024-11-10T11:24:35","modified_gmt":"2024-11-10T03:24:35","slug":"%e5%a6%82%e4%bd%95%e4%bd%bf%e7%94%a8-kong-httpsnippet-%e7%ae%80%e5%8c%96%e6%8e%a5%e5%8f%a3%e4%bb%a3%e7%a0%81%e7%94%9f%e6%88%90%ef%bc%9f","status":"publish","type":"post","link":"https:\/\/fwq.ai\/blog\/4138\/","title":{"rendered":"\u5982\u4f55\u4f7f\u7528 Kong httpsnippet \u7b80\u5316\u63a5\u53e3\u4ee3\u7801\u751f\u6210\uff1f"},"content":{"rendered":"<p><img decoding=\"async\" src=\"https:\/\/img.php.cn\/upload\/article\/001\/246\/273\/173123084138857.jpg\" class=\"aligncenter\" title=\"\u5982\u4f55\u4f7f\u7528 Kong httpsnippet \u7b80\u5316\u63a5\u53e3\u4ee3\u7801\u751f\u6210\uff1f\u63d2\u56fe\" alt=\"\u5982\u4f55\u4f7f\u7528 Kong httpsnippet \u7b80\u5316\u63a5\u53e3\u4ee3\u7801\u751f\u6210\uff1f\u63d2\u56fe\" \/><\/p>\n<p><strong>\u4f7f\u7528\u524d\u7aef\u5e93\u7b80\u5316\u63a5\u53e3\u4ee3\u7801\u751f\u6210<\/strong><\/p>\n<p>\u5728\u524d\u7aef\u5f00\u53d1\u4e2d\uff0c\u7ecf\u5e38\u9700\u8981\u5bf9\u4e0d\u540c\u8bed\u8a00\u53d1\u8d77\u7684\u8bf7\u6c42\u4f7f\u7528\u76f8\u540c\u7684\u63a5\u53e3\u3002\u7f16\u5199\u8fd9\u4e9b\u4ee3\u7801\u53ef\u80fd\u662f\u4e00\u9879\u91cd\u590d\u4e14\u8017\u65f6\u7684\u4efb\u52a1\u3002<\/p>\n<p>\u90a3\u4e48\uff0c\u6709\u6ca1\u6709\u529e\u6cd5\u53ef\u4ee5\u81ea\u52a8\u751f\u6210\u8fd9\u4e9b\u63a5\u53e3\u4ee3\u7801\u5462\uff1f<\/p>\n<p><strong>Kong httpsnippet<\/strong><\/p>\n<p>\u7b54\u6848\u662f\u80af\u5b9a\u7684\uff0c<strong>Kong httpsnippet<\/strong> \u662f\u4e00\u4e2a\u524d\u7aef\u5e93\uff0c\u53ef\u4ee5\u751f\u6210\u7528\u591a\u79cd\u8bed\u8a00\u53d1\u8d77\u7684\u8bf7\u6c42\u7684\u4ee3\u7801\u3002\u5b83\u63d0\u4f9b\u4e86\u4ee5\u4e0b\u529f\u80fd\uff1a<\/p>\n<ul>\n<li>\u901a\u8fc7 URL\u3001JSON \u6216\u6587\u672c\u8bf7\u6c42\u6307\u5b9a API \u89c4\u8303<\/li>\n<li>\u751f\u6210\u9002\u7528\u4e8e\u591a\u79cd\u8bed\u8a00\u7684\u4ee3\u7801\u7247\u6bb5\uff0c\u5305\u62ec Java\u3001Python\u3001Node.js \u7b49<\/li>\n<\/ul>\n<p><strong>\u4f7f\u7528\u6b65\u9aa4<\/strong><\/p>\n<ol>\n<li> <strong>\u6307\u5b9a API \u89c4\u8303\uff1a<\/strong>\u4f7f\u7528 URL\u3001JSON \u6216\u6587\u672c\u6587\u4ef6\u63d0\u4f9b API \u89c4\u8303\u3002<\/li>\n<li> <strong>\u751f\u6210\u4ee3\u7801\uff1a<\/strong>\u9009\u62e9\u6240\u9700\u7684\u8bed\u8a00\u5e76\u5355\u51fb\u201cGenerate Request\u201d\u6309\u94ae\u3002<\/li>\n<li> <strong>\u83b7\u53d6\u4ee3\u7801\u7247\u6bb5\uff1a<\/strong>Kong httpsnippet \u5c06\u751f\u6210\u9002\u7528\u4e8e\u6240\u9009\u8bed\u8a00\u7684\u4ee3\u7801\u7247\u6bb5\u3002<\/li>\n<\/ol>\n<p>\u6709\u4e86 Kong httpsnippet\uff0c\u60a8\u5c31\u53ef\u4ee5\u8f7b\u677e\u751f\u6210\u63a5\u53e3\u4ee3\u7801\uff0c\u4ece\u800c\u8282\u7701\u65f6\u95f4\u5e76\u907f\u514d\u9519\u8bef\u3002\u5b83\u9002\u7528\u4e8e\u9700\u8981\u96c6\u6210\u4e0d\u540c\u8bed\u8a00 API \u5e94\u7528\u7a0b\u5e8f\u7684\u5404\u79cd\u573a\u666f\u4e2d\u3002<\/p>\n<p>\u8bf7\u6ce8\u610f\uff0c\u672c\u6587\u4ec5\u4ecb\u7ecd Kong httpsnippet\uff0c\u800c\u672a\u63d0\u4f9b\u5176 GitHub \u94fe\u63a5\u3002<\/p>\n<p>\u4ee5\u4e0a\u5c31\u662f\u5982\u4f55\u4f7f\u7528 Kong httpsnippet \u7b80\u5316\u63a5\u53e3\u4ee3\u7801\u751f\u6210\uff1f\u7684\u8be6\u7ec6\u5185\u5bb9\uff0c\u66f4\u591a\u8bf7\u5173\u6ce8\u7c73\u4e91\u5176\u5b83\u76f8\u5173\u6587\u7ae0\uff01<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4f7f\u7528\u524d\u7aef\u5e93\u7b80\u5316\u63a5\u53e3\u4ee3\u7801\u751f\u6210 \u5728\u524d\u7aef\u5f00\u53d1\u4e2d\uff0c\u7ecf\u5e38\u9700\u8981\u5bf9\u4e0d\u540c\u8bed\u8a00\u53d1\u8d77\u7684\u8bf7\u6c42\u4f7f\u7528\u76f8\u540c\u7684\u63a5\u53e3\u3002\u7f16\u5199\u8fd9\u4e9b\u4ee3\u7801\u53ef\u80fd\u662f\u4e00\u9879\u91cd\u590d\u4e14\u8017\u65f6\u7684\u4efb\u52a1\u3002 \u90a3\u4e48\uff0c\u6709\u6ca1\u6709\u529e\u6cd5\u53ef\u4ee5\u81ea\u52a8\u751f\u6210\u8fd9\u4e9b\u63a5\u53e3\u4ee3\u7801\u5462\uff1f Kong httpsnippet \u7b54\u6848\u662f\u80af\u5b9a\u7684\uff0cKong httpsnippet \u662f\u4e00\u4e2a\u524d\u7aef\u5e93\uff0c\u53ef\u4ee5\u751f\u6210\u7528\u591a\u79cd\u8bed\u8a00\u53d1\u8d77\u7684\u8bf7\u6c42\u7684\u4ee3\u7801\u3002\u5b83\u63d0\u4f9b\u4e86\u4ee5\u4e0b\u529f\u80fd\uff1a \u901a\u8fc7 URL\u3001JSON \u6216\u6587\u672c\u8bf7\u6c42\u6307\u5b9a API \u89c4\u8303 \u751f\u6210\u9002\u7528\u4e8e\u591a\u79cd\u8bed\u8a00\u7684\u4ee3\u7801\u7247\u6bb5\uff0c\u5305\u62ec Java\u3001Python\u3001Node.js \u7b49 \u4f7f\u7528\u6b65\u9aa4 \u6307\u5b9a API \u89c4\u8303\uff1a\u4f7f\u7528 URL\u3001JSON \u6216\u6587\u672c\u6587\u4ef6\u63d0\u4f9b API \u89c4\u8303\u3002 \u751f\u6210\u4ee3\u7801\uff1a\u9009\u62e9\u6240\u9700\u7684\u8bed\u8a00\u5e76\u5355\u51fb\u201cGenerate Request\u201d\u6309\u94ae\u3002 \u83b7\u53d6\u4ee3\u7801\u7247\u6bb5\uff1aKong httpsnippet \u5c06\u751f\u6210\u9002\u7528\u4e8e\u6240\u9009\u8bed\u8a00\u7684\u4ee3\u7801\u7247\u6bb5\u3002 \u6709\u4e86 Kong httpsnippet\uff0c\u60a8\u5c31\u53ef\u4ee5\u8f7b\u677e\u751f\u6210\u63a5\u53e3\u4ee3\u7801\uff0c\u4ece\u800c\u8282\u7701\u65f6\u95f4\u5e76\u907f\u514d\u9519\u8bef\u3002\u5b83\u9002\u7528\u4e8e\u9700\u8981\u96c6\u6210\u4e0d\u540c\u8bed\u8a00 API \u5e94\u7528\u7a0b\u5e8f\u7684\u5404\u79cd\u573a\u666f\u4e2d\u3002 \u8bf7\u6ce8\u610f\uff0c\u672c\u6587\u4ec5\u4ecb\u7ecd Kong httpsnippet\uff0c\u800c\u672a\u63d0\u4f9b\u5176 GitHub \u94fe\u63a5\u3002 \u4ee5\u4e0a\u5c31\u662f\u5982\u4f55\u4f7f\u7528 Kong httpsnippet \u7b80\u5316\u63a5\u53e3\u4ee3\u7801\u751f\u6210\uff1f\u7684\u8be6\u7ec6\u5185\u5bb9\uff0c\u66f4\u591a\u8bf7\u5173\u6ce8\u7c73\u4e91\u5176\u5b83\u76f8\u5173\u6587\u7ae0\uff01<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[16],"tags":[],"class_list":["post-4138","post","type-post","status-publish","format-standard","hentry","category-16"],"_links":{"self":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/4138","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/comments?post=4138"}],"version-history":[{"count":0,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/4138\/revisions"}],"wp:attachment":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/media?parent=4138"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/categories?post=4138"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/tags?post=4138"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}