{"id":3253,"date":"2020-06-03T00:10:29","date_gmt":"2020-06-02T16:10:29","guid":{"rendered":"http:\/\/blog.eolinker.com\/?p=3253"},"modified":"2020-06-03T01:21:03","modified_gmt":"2020-06-02T17:21:03","slug":"eolinker-api-studio-6-7-%e7%89%88%e6%9c%ac%e6%9b%b4%e6%96%b0%ef%bc%9aapi-%e5%88%86%e4%ba%ab%e9%a1%b5%e9%9d%a2%e6%94%af%e6%8c%81%e5%88%86%e4%ba%ab-mock-api%ef%bc%8c%e6%94%af%e6%8c%81%e6%9b%b4%e5%a4%9a","status":"publish","type":"post","link":"http:\/\/blog.eolinker.com\/?p=3253","title":{"rendered":"Eolinker API Studio 6.7 \u7248\u672c\u66f4\u65b0\uff1aAPI \u5206\u4eab\u9875\u9762\u652f\u6301\u5206\u4eab Mock API\uff0c\u652f\u6301\u66f4\u591a\u52a0\u89e3\u5bc6\u51fd\u6570\uff0c\u5f3a\u5316xml\u7f16\u8f91\u5668\u7b49"},"content":{"rendered":"<p><img class=\"aligncenter\" src=\"https:\/\/data.eolinker.com\/course\/TGvKDBh1d1505e56f4590c3b38eb496ff3b9c8a568f4190\" \/><\/p>\n<p>EOLINKER\u00a0 API Studio \u5df2\u4e8e\u8fd1\u671f\u53d1\u5e03 6.7 \u7248\u672c\uff1a<\/p>\n<div class=\"fs_16 ta_justify content_div\">\n<ol>\n<li>API\u6587\u6863\u6279\u91cf\u64cd\u4f5c\u652f\u6301\u590d\u5236\u3001\u4fee\u6539\u8d1f\u8d23\u4eba\u3001\u4fee\u6539URL\u3001\u4fee\u6539\u6807\u7b7e\uff1b<\/li>\n<li>API\u81ea\u52a8\u5316\u6d4b\u8bd5\u7528\u4f8b\u6279\u91cf\u652f\u6301\u590d\u5236\u3001\u4fee\u6539\u4f18\u5148\u7ea7\u3001\u4fee\u6539\u6807\u7b7e\uff1b<\/li>\n<li>\u901a\u8fc7API\u6d4b\u8bd5\u521b\u5efaAPI\u6587\u6863\u65f6\uff0c\u4f1a\u81ea\u52a8\u8bc6\u522b\u8fd4\u56de\u7ed3\u679c\u7684\u7c7b\u578b\u5e76\u4e14\u5c06\u8fd4\u56de\u7ed3\u679c\u89e3\u6790\u6210\u6587\u6863\u5185\u7684\u8fd4\u56de\u6587\u6863\uff1b<\/li>\n<li>API \u5206\u4eab\u9875\u53ef\u4ee5\u9009\u62e9\u663e\u793aMock API\uff1b<\/li>\n<li>API\u53d1\u751f\u53d8\u5316\u65f6\uff0c\u90ae\u4ef6\u91cc\u9762\u4f1a\u9644\u4e0a\u7248\u672c\u5bf9\u6bd4\u7684\u94fe\u63a5\uff1b<\/li>\n<li>API\u5206\u7ec4\u652f\u6301\u641c\u7d22\uff1b<\/li>\n<li>\u53c2\u6570\u6784\u9020\u5668\u52a0\u5165\u968f\u673a\u751f\u6210\u624b\u673a\u53f7\uff0c\u8eab\u4efd\u8bc1\uff1b<\/li>\n<li>\u652f\u6301\u66f4\u591a\u5185\u7f6e\u52a0\u89e3\u5bc6\u51fd\u6570\uff1b<\/li>\n<li>\u52a0\u5f3axml\u53c2\u6570\u7684\u6587\u6863\u8bb0\u5f55\u5185\u5bb9\uff1b<\/li>\n<\/ol>\n<\/div>\n<p><!--more--><\/p>\n<h1>API\u6587\u6863\u6279\u91cf\u64cd\u4f5c\u652f\u6301\u590d\u5236\u3001\u4fee\u6539\u8d1f\u8d23\u4eba\u3001\u4fee\u6539URL\u3001\u4fee\u6539\u6807\u7b7e<\/h1>\n<p>\u6279\u91cf\u64cd\u4f5c\u548cAPI\u672c\u8eab\u76f8\u5173\u7684\u64cd\u4f5c\u653e\u5230\u4fee\u6539\u4e0b\u62c9\u83dc\u5355\u4e2d\uff0c\u6279\u91cf\u4fee\u6539API\u72b6\u6001\u3001\u8d1f\u8d23\u4eba\u3001URL\u3001\u6807\u7b7e\u7b49\u3002\u5e76\u4e14\u52a0\u5165\u6279\u91cf\u590d\u5236API\u7684\u529f\u80fd\u3002<\/p>\n<p><img src=\"https:\/\/data.eolinker.com\/jWUq4V1b9bf9c264e1d86778ecacf1562adfbe47e82ab5e.gif\" \/><\/p>\n<h1>API\u81ea\u52a8\u5316\u6d4b\u8bd5\u7528\u4f8b\u6279\u91cf\u652f\u6301\u590d\u5236\u3001\u4fee\u6539\u4f18\u5148\u7ea7\u3001\u4fee\u6539\u6807\u7b7e<\/h1>\n<p data-syno-style=\"{&quot;lineHeight&quot;:&quot;1.5&quot;,&quot;paddingBottom&quot;:&quot;&quot;,&quot;paddingTop&quot;:&quot;&quot;,&quot;paddingLeft&quot;:&quot;&quot;,&quot;textAlign&quot;:&quot;left&quot;}\" data-syno-marks=\"[]\"><span data-syno-text=\"true\">\u548c\u6d4b\u8bd5\u7528\u4f8b\u672c\u8eab\u76f8\u5173\u7684\u64cd\u4f5c\u653e\u5230\u4fee\u6539\u83dc\u5355\u4e2d\uff0c\u83dc\u5355\u5305\u62ec\u4f18\u5148\u7ea7\u3001\u6807\u7b7e\u9009\u9879\u3002\u5e76\u4e14\u52a0\u5165\u6279\u91cf\u590d\u5236\u6d4b\u8bd5\u7528\u4f8b\u7684\u529f\u80fd\u3002<\/span><\/p>\n<p><img src=\"https:\/\/data.eolinker.com\/M9P2KPc06b126dd296063f66eb23ec844b0468b715c41f8.gif\" \/><\/p>\n<h1>\u901a\u8fc7API\u6d4b\u8bd5\u521b\u5efaAPI\u6587\u6863\u65f6\uff0c\u4f1a\u81ea\u52a8\u8bc6\u522b\u8fd4\u56de\u7ed3\u679c\u7684\u7c7b\u578b\u5e76\u4e14\u5c06\u8fd4\u56de\u7ed3\u679c\u89e3\u6790\u6210\u6587\u6863\u5185\u7684\u8fd4\u56de\u6587\u6863<\/h1>\n<p>\u5728API\u00a0\u5feb\u901f\u6d4b\u8bd5\u754c\u9762\uff0c\u70b9\u51fb\u4fdd\u5b58\u6309\u94ae\uff0c\u7cfb\u7edf\u53ef\u4ee5\u76f4\u63a5\u6839\u636e\u8bf7\u6c42\u53c2\u6570\u548c\u8fd4\u56de\u7ed3\u679c\u8bc6\u522b\u51faAPI\u6587\u6863\u3002<\/p>\n<p><img src=\"https:\/\/data.eolinker.com\/RkBRIuG494cb30f3d2e6f4ac0edb35ea0187e56f3e09ba7.gif\" \/><\/p>\n<h1>API \u5206\u4eab\u9875\u53ef\u4ee5\u9009\u62e9\u663e\u793aMock API<\/h1>\n<p>\u5206\u4eabAPI\u8bbe\u7f6e\u5f39\u7a97\u4e2d\uff0c\u53ef\u4ee5\u8bbe\u7f6e\u67e5\u770bMock API\uff0c\u9ed8\u8ba4\u4e0d\u52fe\u9009\u3002\u52fe\u9009\u4e4b\u540e\u4f1a\u5728API\u5206\u4eab\u9875\u9762\u7684API\u8be6\u60c5\u9875\u4e2d\u663e\u793aMock\u00a0API\u6807\u7b7e\uff0c\u53ef\u4ee5\u5728\u8be5\u6807\u7b7e\u4e0b\u67e5\u770bAPI\u7684Mock\u00a0API\u5730\u5740\u3001\u89e6\u53d1\u6761\u4ef6\u3001\u8fd4\u56de\u5185\u5bb9\u7b49\u4fe1\u606f\u3002<\/p>\n<p><img src=\"http:\/\/data.eolinker.com\/course\/nuhv5vGfc0b6e2ff5bbbc2098da9cb8c75643543383e66f.png\" \/><\/p>\n<p><img src=\"http:\/\/data.eolinker.com\/course\/2vfn6km4c19318b007e7eb978edef6f8c7e70ecbac12104.png\" \/><\/p>\n<p><img src=\"http:\/\/data.eolinker.com\/course\/1xNXEYDc21b188305036e8c1e4c93fe388dbc924b065368.png\" \/><\/p>\n<h1>API\u53d1\u751f\u53d8\u5316\u65f6\uff0c\u90ae\u4ef6\u91cc\u9762\u4f1a\u9644\u4e0a\u7248\u672c\u5bf9\u6bd4\u7684\u94fe\u63a5<\/h1>\n<p>API \u53d8\u66f4\u901a\u77e5\u90ae\u4ef6\u4e2d\uff0c\u52a0\u5165\u4e0e\u4e0a\u4e2a\u7248\u672c\u5bf9\u6bd4\u7684\u94fe\u63a5\u5730\u5740\uff0c\u70b9\u51fb\u8df3\u8f6c\u5230\u7248\u672c\u5bf9\u6bd4\u9875\u9762\uff0c\u9875\u9762\u4e2d\u4f1a\u663e\u793a\u5f53\u524d\u901a\u77e5\u7684\u7248\u672c\u548c\u4e0a\u4e00\u4e2a\u6700\u65b0\u7684\u7248\u672c\u7684\u533a\u522b\u3002<\/p>\n<p>\u6ce8\u610f\uff0c\u4ec5\u4ed8\u8d39\u7248\u652f\u6301\u8be5\u529f\u80fd\u3002<\/p>\n<p><img class=\"aligncenter\" src=\"http:\/\/data.eolinker.com\/course\/PKpvmNL5186d2b57f563fa2ff6830a9d1f13004a0624235.png\" \/><\/p>\n<h1>API\u5206\u7ec4\u652f\u6301\u641c\u7d22<\/h1>\n<p data-syno-style=\"{&quot;lineHeight&quot;:&quot;&quot;,&quot;paddingBottom&quot;:&quot;&quot;,&quot;paddingTop&quot;:&quot;&quot;,&quot;paddingLeft&quot;:&quot;&quot;,&quot;textAlign&quot;:&quot;&quot;}\" data-syno-marks=\"[]\"><span data-syno-text=\"true\">\u5206\u7ec4\u5217\u8868\u4e0a\u65b9\u52a0\u5165\u641c\u7d22\u5206\u7ec4\u8f93\u5165\u6846\uff0c\u53ef\u4ee5\u5bf9\u6240\u6709\u5206\u7ec4\u8fdb\u884c\u641c\u7d22\u3002<\/span><span data-syno-text=\"true\">\u5982\u679c\u641c\u7d22\u7ed3\u679c\u4e2d\u5305\u542b\u5b50\u5206\u7ec4\uff0c\u5219\u4f1a\u663e\u793a\u5176\u7236\u7ea7\u5206\u7ec4\u3002\u5e76\u4e14\u641c\u7d22\u5173\u952e\u5b57\u4f1a\u67d3\u8272\u663e\u793a\u3002<\/span><\/p>\n<p><img class=\"aligncenter\" src=\"http:\/\/data.eolinker.com\/course\/3CtjxlJ57fbe0c31095867bf78cd1de8075697e7c039a4d.png\" \/><\/p>\n<p><img class=\"aligncenter\" src=\"http:\/\/data.eolinker.com\/course\/8GU6SAJ6476f9f9f7ab8993d23f6d929388b1e46706366f.png\" \/><\/p>\n<h1>\u53c2\u6570\u6784\u9020\u5668\u52a0\u5165\u968f\u673a\u751f\u6210\u624b\u673a\u53f7\uff0c\u8eab\u4efd\u8bc1<\/h1>\n<p><img src=\"https:\/\/data.eolinker.com\/dgnY1Pbdba892004a933cc1b8ac0ac53b6f9201d5c4b5a7.gif\" \/><\/p>\n<h1>\u652f\u6301\u66f4\u591a\u5185\u7f6e\u52a0\u89e3\u5bc6\u51fd\u6570<\/h1>\n<pre><strong>RSA-SHA<\/strong>\r\nRSA-SHA1 \u7b7e\u540d\uff1aeo.rsaSHA1(\"\u5f85\u7b7e\u540d\u5185\u5bb9\",\"\u5bc6\u94a5\",\"\u7ed3\u679c\u7684\u7f16\u7801\u683c\u5f0f\uff0cbase64(\u9ed8\u8ba4)\/hex\")\\\r\nRSA-SHA1 \u52a0\u5bc6\uff1aeo.sha1(\"\u5f85\u52a0\u5bc6\u5185\u5bb9\")\r\nRSA-SHA256 \u7b7e\u540d\uff1aeo.rsaSHA256(\"\u5f85\u7b7e\u540d\u5185\u5bb9\",\"\u5bc6\u94a5\",\"\u7ed3\u679c\u7684\u7f16\u7801\u683c\u5f0f\uff0cbase64(\u9ed8\u8ba4)\/hex\")\r\nRSA-SHA256 \u52a0\u5bc6\uff1aeo.sha256(\"\u5f85\u52a0\u5bc6\u5185\u5bb9\")\r\n\r\n<strong>RSA<\/strong>\r\nRSA \u79c1\u94a5\u52a0\u5bc6\uff1aeo.rsaPrivateEncrypt(\"\u79c1\u94a5\",\"\u5f85\u52a0\u5bc6\u5185\u5bb9\",\"\u7ed3\u679c\u7684\u7f16\u7801\u683c\u5f0f,base64(\u9ed8\u8ba4)\/hex\")\r\nRSA \u79c1\u94a5\u89e3\u5bc6\uff1aeo.rsaPrivateDecrypt(\"\u79c1\u94a5\",\"\u5f85\u89e3\u5bc6\u5185\u5bb9\",\"\u5f85\u89e3\u5bc6\u5185\u5bb9\u7684\u7f16\u7801\u683c\u5f0f,base64(\u9ed8\u8ba4)\/hex\")\r\nRSA \u516c\u94a5\u52a0\u5bc6\uff1aeo.rsaPublicEncrypt(\"\u516c\u94a5\",\"\u5f85\u52a0\u5bc6\u5185\u5bb9\",\"\u7ed3\u679c\u7684\u7f16\u7801\u683c\u5f0f,base64(\u9ed8\u8ba4)\/hex\")\r\nRSA \u516c\u94a5\u89e3\u5bc6\uff1aeo.rsaPublicDecrypt(\"\u516c\u94a5\",\"\u5f85\u89e3\u5bc6\u5185\u5bb9\",\"\u5f85\u89e3\u5bc6\u5185\u5bb9\u7684\u7f16\u7801\u683c\u5f0f,base64(\u9ed8\u8ba4)\/hex\")\r\n\r\n<strong>AES<\/strong>\r\nAES \u52a0\u5bc6\uff1aeo.aesEncrypt(\"\u5f85\u52a0\u5bc6\u5185\u5bb9\",\"\u52a0\u5bc6\u5bc6\u7801\",\"\u914d\u7f6e\u9879\")\r\nAES \u89e3\u5bc6\uff1aeo.aesDecrypt(\"\u5f85\u89e3\u5bc6\u5185\u5bb9\",\"\u89e3\u5bc6\u5bc6\u7801\",\"\u914d\u7f6e\u9879\")\r\n\r\n<strong>DES<\/strong>\r\nDES \u52a0\u5bc6\uff1aeo.desEncrypt(\"\u5f85\u52a0\u5bc6\u5185\u5bb9\",\"\u52a0\u5bc6\u5bc6\u7801\",\"\u914d\u7f6e\u9879\")\r\nDES \u89e3\u5bc6\uff1aeo.desDecrypt(\"\u5f85\u89e3\u5bc6\u5185\u5bb9\",\"\u89e3\u5bc6\u5bc6\u7801\",\"\u914d\u7f6e\u9879\")<\/pre>\n<h1>\u52a0\u5f3axml\u53c2\u6570\u7684\u6587\u6863\u8bb0\u5f55\u5185\u5bb9<\/h1>\n<p>XML\u7f16\u8f91\u5668\u652f\u6301\u8bbe\u7f6eXML\u5b57\u6bb5\u7684\u5c5e\u6027\u3002<\/p>\n<p>\u5c5e\u6027\u586b\u5199\u5b8c\u4e4b\u540e\u4f1a\u81ea\u52a8\u6821\u9a8c\u683c\u5f0f\u662f\u5426\u6709\u8bef\uff0c\u5982\u679c\u5c5e\u6027\u683c\u5f0f\u4e0d\u6b63\u786e\u5219\u4f1a\u663e\u793a\u63d0\u9192\u6587\u5b57\uff1a\u5c5e\u6027\u683c\u5f0f\u6709\u8bef\u3002<\/p>\n<p>\u6b63\u786e\u683c\u5f0f\u4e3a\uff1a{\u7a7a\u683c\u82e5\u5e72}{\u5c5e\u6027\u540d}:&#8221;{\u5c5e\u6027\u503c}&#8221;{\u7a7a\u683c\u82e5\u5e72}{\u5c5e\u6027\u540d}:&#8221;{\u5c5e\u6027\u503c}&#8221;{\u7a7a\u683c\u82e5\u5e72}\uff0c\u6bd4\u5982 type:&#8221;admin&#8221; name:&#8221;jackliu&#8221;<\/p>\n<p><img src=\"http:\/\/data.eolinker.com\/course\/TGly3Jp90672b80d7023a852c66baa7001871ffe69d2dbb.png\" \/><\/p>\n","protected":false},"excerpt":{"rendered":"<p>EOLINKER\u00a0 API Studio \u5df2\u4e8e\u8fd1\u671f\u53d1\u5e03 6.7 \u7248\u672c\uff1a API\u6587\u6863\u6279\u91cf\u64cd\u4f5c\u652f\u6301\u590d\u5236\u3001\u4fee\u6539\u8d1f\u8d23\u4eba [&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\/3253"}],"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=3253"}],"version-history":[{"count":8,"href":"http:\/\/blog.eolinker.com\/index.php?rest_route=\/wp\/v2\/posts\/3253\/revisions"}],"predecessor-version":[{"id":3261,"href":"http:\/\/blog.eolinker.com\/index.php?rest_route=\/wp\/v2\/posts\/3253\/revisions\/3261"}],"wp:attachment":[{"href":"http:\/\/blog.eolinker.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=3253"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/blog.eolinker.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=3253"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/blog.eolinker.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=3253"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}