{"id":2916,"date":"2019-10-18T12:14:18","date_gmt":"2019-10-18T04:14:18","guid":{"rendered":"http:\/\/blog.eolinker.com\/?p=2916"},"modified":"2019-10-18T14:52:23","modified_gmt":"2019-10-18T06:52:23","slug":"goku-api-gateway-ce-v3-1-0%e5%8f%91%e5%b8%83%ef%bc%9a%e6%96%b0%e5%a2%9e%e6%9c%8d%e5%8a%a1%e7%bc%96%e6%8e%92%e3%80%81%e9%85%8d%e7%bd%ae%e7%89%88%e6%9c%ac%e7%ae%a1%e7%90%86%e7%ad%89","status":"publish","type":"post","link":"http:\/\/blog.eolinker.com\/?p=2916","title":{"rendered":"GOKU API Gateway CE V3.1.0\u53d1\u5e03\uff1a\u65b0\u589e\u670d\u52a1\u7f16\u6392\u3001\u914d\u7f6e\u7248\u672c\u7ba1\u7406\u7b49"},"content":{"rendered":"<img class=\"aligncenter\" src=\"https:\/\/data.eolinker.com\/RVEUQh7558281ac374d6fccb39247bac63be3790fe14541.png\" \/>\r\n\r\nGoku API Gateway \uff08\u4e2d\u6587\u540d\uff1a\u609f\u7a7a API \u7f51\u5173\uff09\u662f\u4e00\u4e2a\u57fa\u4e8e Golang \u5f00\u53d1\u7684\u5fae\u670d\u52a1\u7f51\u5173\uff0c\u80fd\u591f\u5b9e\u73b0\u9ad8\u6027\u80fd HTTP API \u8f6c\u53d1\u3001\u670d\u52a1\u7f16\u6392\u3001\u591a\u79df\u6237\u7ba1\u7406\u3001API \u8bbf\u95ee\u6743\u9650\u63a7\u5236\u7b49\u76ee\u7684\uff0c\u62e5\u6709\u5f3a\u5927\u7684\u81ea\u5b9a\u4e49\u63d2\u4ef6\u7cfb\u7edf\u53ef\u4ee5\u81ea\u884c\u6269\u5c55\uff0c\u5e76\u4e14\u63d0\u4f9b\u53cb\u597d\u7684\u56fe\u5f62\u5316\u914d\u7f6e\u754c\u9762\uff0c\u80fd\u591f\u5feb\u901f\u5e2e\u52a9\u4f01\u4e1a\u8fdb\u884c API \u670d\u52a1\u6cbb\u7406\u3001\u63d0\u9ad8 API \u670d\u52a1\u7684\u7a33\u5b9a\u6027\u548c\u5b89\u5168\u6027\u3002GOKU API Gateway CE V3.1.0\u7248\u672c\u5e26\u6765\u4e86\u4ee5\u4e0b\u51e0\u9879\u66f4\u65b0\u5185\u5bb9\uff1a\r\n\r\n<!-- \/wp:paragraph -->\r\n\r\n<!-- wp:image {\"id\":605} -->\r\n\r\n<!-- \/wp:image -->\r\n\r\n<!-- wp:html -->\r\n<p style=\"margin: 30px 0 40px 0;\"><a style=\"background-color: #4590ef; color: #fff; height: 40px; line-height: 40px; text-decoration: none; display: block; width: 150px; text-align: center; border-radius: 3px;\" href=\"https:\/\/github.com\/eolinker\/goku-api-gateway\" target=\"_blank\" rel=\"noopener\">\u7acb\u5373\u4e0b\u8f7d\u5f00\u6e90\u7248<\/a><!--more--><!-- \/wp:more --><\/p>\r\n\r\n<h1 style=\"margin: 30px 0 40px 0;\"><strong>\u65b0\u589eAPI\u670d\u52a1\u7f16\u6392<\/strong><\/h1>\r\n<p class=\"ql-long-6505583\"><span class=\"ql-author-6505583\">\u652f\u6301\u4e00\u4e2a\u7f16\u6392API\u5bf9\u5e94\u591a\u4e2a\u540e\u7aef\u670d\u52a1\uff0c\u6bcf\u4e2a\u540e\u7aef\u670d\u52a1\u7684\u8bf7\u6c42\u53c2\u6570\u53ef\u4ee5\u4f7f\u7528\u524d\u7aef\u4f20\u5165\u7684\u53c2\u6570\uff0c\u4e5f\u53ef\u4ee5\u5728\u7f16\u6392\u91cc\u81ea\u5b9a\u4e49\uff08\u5199\u9759\u6001\u53c2\u6570\u6216\u4ece\u8fd4\u56de\u6570\u636e\u91cc\u83b7\u5f97\uff09\u3002\u6bcf\u4e2a\u540e\u7aef\u670d\u52a1\u7684\u8fd4\u56de\u6570\u636e\u652f\u6301\u8fc7\u6ee4\u3001\u5220\u9664\u3001\u79fb\u52a8\u3001\u91cd\u547d\u540d\u3001\u62c6\u5305\u548c\u5c01\u5305\u7b49\u64cd\u4f5c\uff1b\u7f16\u6392API\u80fd\u591f\u8bbe\u5b9a\u7f16\u6392\u5931\u8d25\u65f6\u7684\u5f02\u5e38\u8fd4\u56de\u3002<\/span><\/p>\r\n\u7b80\u6613\u6559\u7a0b\uff1a\r\n<ol>\r\n \t<li>\u65b0\u5efaAPI\u65f6\u9009\u62e9\u65b0\u5efa\u7f16\u6392API\uff1b<\/li>\r\n \t<li>\u8bbe\u7f6eAPI\u7684\u8bf7\u6c42\u4fe1\u606f\uff0c\u914d\u7f6e\u9700\u8981\u7684\u8f6c\u53d1\u5185\u5bb9\uff1b<\/li>\r\n \t<li>\u6bcf\u4e2aStep\u91cc\u53ef\u4ee5\u914d\u7f6e\u8f6c\u53d1\u5730\u5740\uff0cStep\u91cc\u53ef\u4ee5\u914d\u7f6e\u8f6c\u53d1\u5730\u5740\u3001\u5165\u53c2\u3001\u8fd4\u56de\u6570\u636e\u7684\u5904\u7406\u7b49\u3002<\/li>\r\n<\/ol>\r\n<ul>\r\n \t<li>\u5165\u53c2\u652f\u6301\u83b7\u53d6\u00a0<strong>\u539f\u59cb\u53c2\u6570\u00a0<\/strong>\u548c\u00a0<strong>\u76f4\u63a5\u914d\u7f6e\u53c2\u6570 \uff1b<\/strong><\/li>\r\n \t<li>\u8fd4\u56de\u6570\u636e\u652f\u6301\u8fdb\u884c\u00a0<strong>\u5b57\u6bb5\u8fc7\u6ee4<\/strong>\uff08\u5b57\u6bb5\u9ed1\u767d\u540d\u5355\uff09\u3001<strong>\u5220\u9664<\/strong>\u3001<strong>\u79fb\u52a8<\/strong>\u3001<strong>\u91cd\u547d\u540d<\/strong>\u3001<strong>\u62c6\u5305<\/strong>\u3001<strong>\u5c01\u5305\u00a0<\/strong>\u7b49\u64cd\u4f5c\u3002<\/li>\r\n<\/ul>\r\n<div id=\"attachment_2919\" style=\"width: 609px\" class=\"wp-caption alignnone\"><a href=\"http:\/\/blog.eolinker.com\/wp-content\/uploads\/2019\/10\/bianpaiapi.png\"><img aria-describedby=\"caption-attachment-2919\" loading=\"lazy\" class=\"wp-image-2919 size-full\" src=\"http:\/\/blog.eolinker.com\/wp-content\/uploads\/2019\/10\/bianpaiapi.png\" alt=\"\" width=\"599\" height=\"712\" srcset=\"http:\/\/blog.eolinker.com\/wp-content\/uploads\/2019\/10\/bianpaiapi.png 599w, http:\/\/blog.eolinker.com\/wp-content\/uploads\/2019\/10\/bianpaiapi-252x300.png 252w\" sizes=\"(max-width: 599px) 100vw, 599px\" \/><\/a><p id=\"caption-attachment-2919\" class=\"wp-caption-text\">\u65b0\u5efa\u7f16\u6392API<\/p><\/div>\r\n\r\n<div id=\"attachment_2920\" style=\"width: 727px\" class=\"wp-caption alignnone\"><a href=\"http:\/\/blog.eolinker.com\/wp-content\/uploads\/2019\/10\/stepapi.png\"><img aria-describedby=\"caption-attachment-2920\" loading=\"lazy\" class=\"wp-image-2920 size-full\" src=\"http:\/\/blog.eolinker.com\/wp-content\/uploads\/2019\/10\/stepapi.png\" alt=\"\" width=\"717\" height=\"788\" srcset=\"http:\/\/blog.eolinker.com\/wp-content\/uploads\/2019\/10\/stepapi.png 717w, http:\/\/blog.eolinker.com\/wp-content\/uploads\/2019\/10\/stepapi-273x300.png 273w\" sizes=\"(max-width: 717px) 100vw, 717px\" \/><\/a><p id=\"caption-attachment-2920\" class=\"wp-caption-text\">\u914d\u7f6e\u591a\u4e2a\u8f6c\u53d1\u540e\u7aef<\/p><\/div>\r\n\r\n\u67e5\u770b\u6559\u7a0b\uff1a<a href=\"https:\/\/help.eolinker.com\/#\/tutorial\/?groupID=c-364&amp;productID=19\">\u670d\u52a1\u7f16\u6392<\/a>\r\n<h1 style=\"margin: 30px 0 40px 0;\"><strong>\u5176\u4ed6\u66f4\u65b0<\/strong><\/h1>\r\n<ol>\r\n \t<li>\u652f\u6301\u81ea\u5b9a\u4e49API\u7684\u5f02\u5e38\u8fd4\u56de\u4fe1\u606f<\/li>\r\n \t<li>\u53ef\u8bbe\u5b9aAPI\u7684\u8fd4\u56de\u6570\u636e\u7c7b\u578b\uff1a\u4e0d\u8f6c\u6362\u3001\u8f6c\u6362\u6210JSON\u3001\u8f6c\u6362\u6210XML<\/li>\r\n \t<li>\u63a7\u5236\u53f0\u7684\u914d\u7f6e\u65b0\u589e\u7248\u672c\u7ba1\u7406\uff0c\u652f\u6301\u914d\u7f6e\u7684\u53d1\u5e03\u4e0e\u56de\u6eda<\/li>\r\n \t<li>\u63a7\u5236\u53f0\u76f4\u63a5\u521b\u5efa\u96c6\u7fa4\uff0c\u65e0\u9700\u901a\u8fc7\u914d\u7f6e\u6587\u4ef6<\/li>\r\n<\/ol>\r\n<h1>\u5176\u4ed6\u4f18\u5316<\/h1>\r\n<ol>\r\n \t<li>\u8282\u70b9\u4ece\u6570\u636e\u5e93\u8bfb\u53d6\u914d\u7f6e\u6539\u6210\u901a\u8fc7API\u83b7\u53d6\u63a7\u5236\u53f0\u7684\u914d\u7f6e<\/li>\r\n \t<li>\u8282\u70b9\u652f\u6301\u8bfb\u53d6\u914d\u7f6e\u6587\u4ef6\u6765\u542f\u52a8\uff0c\u53ef\u901a\u8fc7\u5b98\u65b9\u63d0\u4f9b\u7684\u79bb\u7ebf\u63a7\u5236\u53f0\u6765\u8fdb\u884c\u914d\u7f6e\uff0c\u7136\u540e\u4e0b\u8f7d\u914d\u7f6e\u6587\u4ef6\u3002<\/li>\r\n \t<li>\u63a7\u5236\u53f0\u7684\u5b58\u50a8\u6539\u7528SQLite<\/li>\r\n \t<li>\u754c\u9762\u4f18\u5316<\/li>\r\n \t<li>\u4f18\u5316Access Log\uff0c\u8bb0\u5f55\u7f16\u6392\u8fc7\u7a0b<\/li>\r\n<\/ol>","protected":false},"excerpt":{"rendered":"<p>Goku API Gateway \uff08\u4e2d\u6587\u540d\uff1a\u609f\u7a7a API \u7f51\u5173\uff09\u662f\u4e00\u4e2a\u57fa\u4e8e Golang \u5f00\u53d1\u7684\u5fae\u670d\u52a1\u7f51\u5173\uff0c\u80fd [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[5],"tags":[],"_links":{"self":[{"href":"http:\/\/blog.eolinker.com\/index.php?rest_route=\/wp\/v2\/posts\/2916"}],"collection":[{"href":"http:\/\/blog.eolinker.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/blog.eolinker.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/blog.eolinker.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/blog.eolinker.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2916"}],"version-history":[{"count":9,"href":"http:\/\/blog.eolinker.com\/index.php?rest_route=\/wp\/v2\/posts\/2916\/revisions"}],"predecessor-version":[{"id":2928,"href":"http:\/\/blog.eolinker.com\/index.php?rest_route=\/wp\/v2\/posts\/2916\/revisions\/2928"}],"wp:attachment":[{"href":"http:\/\/blog.eolinker.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2916"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/blog.eolinker.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2916"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/blog.eolinker.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2916"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}