{"id":647,"date":"2025-04-19T16:04:36","date_gmt":"2025-04-19T08:04:36","guid":{"rendered":"https:\/\/fugary.com\/?p=647"},"modified":"2025-04-19T16:05:21","modified_gmt":"2025-04-19T08:05:21","slug":"%e5%bc%80%e5%8f%91%e8%87%aa%e7%94%a8openapi%e4%bb%a3%e7%a0%81%e5%b0%8f%e5%b7%a5%e5%85%b7openapi-generator-ui","status":"publish","type":"post","link":"https:\/\/fugary.com\/?p=647","title":{"rendered":"\u5f00\u53d1\u81ea\u7528OpenAPI\u4ee3\u7801\u5c0f\u5de5\u5177openapi-generator-ui"},"content":{"rendered":"<h3>\u80cc\u666f<\/h3>\n<p>\u76ee\u524d\u5927\u90e8\u5206<code>API<\/code>\u90fd\u662f\u57fa\u4e8e<code>Swagger<\/code>\u6216\u8005<code>OpenAPI<\/code>\u6765\u63d0\u4f9b\u6587\u6863\u3002<\/p>\n<p>\u4e5f\u6709\u4e0d\u5c11\u5e38\u7528\u5de5\u5177\u53ef\u4ee5\u7528\u6765\u751f\u6210\u4ee3\u7801\uff0c\u6709\u547d\u4ee4\u884c\u7684\uff0c\u6709\u5ba2\u6237\u7aef\u7684\uff0c\u4e5f\u6709\u5728\u7ebf\u7248\u672c\uff0c\u90fd\u6709\u4e00\u5b9a\u7684\u95e8\u69db\uff0c\u56e0\u6b64\u60f3\u627e\u4e00\u4e2a\u5feb\u901f\u7684\u5728\u7ebf\u7248\u672c\u751f\u6210\u4ee3\u7801\u7684\u5de5\u5177\uff0c\u65b9\u4fbf\u5feb\u901f\u6d4b\u8bd5\uff0c\u81ea\u5df1\u5f00\u53d1\u4e86\u4e00\u4e2a\u7b80\u5355\u7248\u672c\u3002<\/p>\n<h3>\u4ee3\u7801\u751f\u6210\u5de5\u5177<\/h3>\n<p>\u76ee\u524d\u6709\u4ee3\u7801\u751f\u6210\u5de5\u5177\u63d0\u4f9b\u4e86<code>OpenAPI<\/code>\u6587\u6863\uff0c\u5728\u6b64\u57fa\u7840\u4e0a\u5c01\u88c5\u4e00\u4e0b\uff0c\u5f97\u5230\u4e00\u4e2a\u7b80\u5355\u7684\u4ee3\u7801\u751f\u6210\u5de5\u5177\u3002<\/p>\n<p>\u539f\u59cb\u5de5\u5177\uff1a<a href=\"https:\/\/openapi-generator.tech\/\">https:\/\/openapi-generator.tech\/<\/a><\/p>\n<p>\u5c01\u88c5\u5de5\u5177\uff1a<a href=\"https:\/\/github.com\/fugary\/openapi-generator-ui\">https:\/\/github.com\/fugary\/openapi-generator-ui<\/a><\/p>\n<p>\u6d4b\u8bd5\u5730\u5740\uff1a<a href=\"https:\/\/openapi-generator-ui.fugary.com\/\">https:\/\/openapi-generator-ui.fugary.com\/<\/a><\/p>\n<h3>\u4e0b\u8f7d\u4f7f\u7528<\/h3>\n<p>\u9ed8\u8ba4\u7aef\u53e3\u662f<code>9890<\/code>\uff0c\u542f\u52a8\u540e\u8bbf\u95ee\uff1a<a href=\"http:\/\/localhost:9890\">http:\/\/localhost:9890<\/a><\/p>\n<ol>\n<li>\u4e0b\u8f7d\u8fd0\u884c\n<ol>\n<li>\u4e0b\u8f7d\u5730\u5740\uff1a<a href=\"https:\/\/github.com\/fugary\/openapi-generator-ui\/releases\">https:\/\/github.com\/fugary\/openapi-generator-ui\/releases<\/a><\/li>\n<li>\u4e0b\u8f7d\u89e3\u538b\u627e\u5230<code>bin<\/code>\u76ee\u5f55\uff0c\u8fd0\u884c\u91cc\u9762\u7684<code>start.bat<\/code>\u5373\u53ef<\/li>\n<\/ol>\n<\/li>\n<li>Docker\u8fd0\u884c\n<ol>\n<li><code>docker run -p 9890:9890 fugary\/openapi-generator-ui:latest<\/code><\/li>\n<\/ol>\n<\/li>\n<\/ol>\n<h3>\u5728\u7ebf\u6d4b\u8bd5<\/h3>\n<p>\u6709\u9700\u8981\u53ef\u4ee5\u5c1d\u8bd5\u4e0b\u5728\u7ebf\u6d4b\u8bd5\u7248\u672c\uff1a<a href=\"https:\/\/openapi-generator-ui.fugary.com\/\">https:\/\/openapi-generator-ui.fugary.com\/<\/a><\/p>\n<h3>\u652f\u6301\u5185\u5bb9<\/h3>\n<ol>\n<li>\u652f\u6301\u586b\u5199OpenAPI URL\uff0c\u9700\u8981\u670d\u52a1\u5668\u80fd\u8bbf\u95ee\u7684\u5730\u5740\uff0c\u4e0d\u80fd\u662f\u672c\u5730\u5730\u5740\u6216\u8005\u6709\u9650\u5236IP\u767d\u540d\u5355\u7684\u5730\u5740\n<ol>\n<li>\u652f\u6301Basic\u8ba4\u8bc1\u6a21\u5f0f<\/li>\n<\/ol>\n<\/li>\n<li>\u652f\u6301\u586b\u5199JSON\/YAML\u6587\u4ef6\u5185\u5bb9\u6765\u751f\u6210\u4ee3\u7801<\/li>\n<li>\u652f\u6301\u4e0a\u4f20JSON\/YAML\u6587\u4ef6\u6765\u751f\u6210\u4ee3\u7801<\/li>\n<li>\u652f\u6301\u9009\u62e9\u90e8\u5206API\u6765\u751f\u6210\u4ee3\u7801<\/li>\n<li>\u652f\u6301\u751f\u6210\u53c2\u6570\u8be6\u7ec6\u914d\u7f6e\uff0c\u5e76\u652f\u6301\u81ea\u52a8\u8bb0\u4f4f\u4e0a\u6b21\u7684\u914d\u7f6e<\/li>\n<\/ol>\n<p>\u9009\u62e9\u4e0d\u540c\u65b9\u5f0f\u63d0\u4f9bAPI\u6570\u636e<\/p>\n<p><div class='fancybox-wrapper' data-fancybox='post-images' href='https:\/\/git.mengqingpo.com:8888\/fugary\/blogpic\/-\/raw\/main\/pictures\/2025\/04\/19_13_28_40_image-20250419132831883.png'><img src=\"https:\/\/git.mengqingpo.com:8888\/fugary\/blogpic\/-\/raw\/main\/pictures\/2025\/04\/19_13_28_40_image-20250419132831883.png\" alt=\"image-20250419132831883\" \/><\/div><\/p>\n<p>\u9009\u62e9\u90e8\u5206\u63a5\u53e3<\/p>\n<p><div class='fancybox-wrapper' data-fancybox='post-images' href='https:\/\/git.mengqingpo.com:8888\/fugary\/blogpic\/-\/raw\/main\/pictures\/2025\/04\/19_13_32_54_image-20250419133252954.png'><img src=\"https:\/\/git.mengqingpo.com:8888\/fugary\/blogpic\/-\/raw\/main\/pictures\/2025\/04\/19_13_32_54_image-20250419133252954.png\" alt=\"image-20250419133252954\" \/><\/div><\/p>\n<p>\u53ef\u9009\u53c2\u6570\u914d\u7f6e<\/p>\n<p><div class='fancybox-wrapper' data-fancybox='post-images' href='https:\/\/git.mengqingpo.com:8888\/fugary\/blogpic\/-\/raw\/main\/pictures\/2025\/04\/19_13_33_44_image-20250419133342733.png'><img src=\"https:\/\/git.mengqingpo.com:8888\/fugary\/blogpic\/-\/raw\/main\/pictures\/2025\/04\/19_13_33_44_image-20250419133342733.png\" alt=\"image-20250419133342733\" \/><\/div><\/p>\n<p>\u751f\u6210\u540e\u4f1a\u81ea\u52a8\u5f39\u51fa\u65b0\u7a97\u53e3\u4e0b\u8f7d\u6587\u4ef6\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u80cc\u666f \u76ee\u524d\u5927\u90e8\u5206API\u90fd\u662f\u57fa\u4e8eSwagger\u6216\u8005OpenAPI\u6765\u63d0\u4f9b\u6587\u6863\u3002 \u4e5f\u6709\u4e0d\u5c11\u5e38\u7528\u5de5\u5177\u53ef\u4ee5\u7528\u6765\u751f\u6210\u4ee3\u7801\uff0c [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[4,14],"tags":[158,159,30,161,160],"_links":{"self":[{"href":"https:\/\/fugary.com\/index.php?rest_route=\/wp\/v2\/posts\/647"}],"collection":[{"href":"https:\/\/fugary.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/fugary.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/fugary.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/fugary.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=647"}],"version-history":[{"count":2,"href":"https:\/\/fugary.com\/index.php?rest_route=\/wp\/v2\/posts\/647\/revisions"}],"predecessor-version":[{"id":649,"href":"https:\/\/fugary.com\/index.php?rest_route=\/wp\/v2\/posts\/647\/revisions\/649"}],"wp:attachment":[{"href":"https:\/\/fugary.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=647"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fugary.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=647"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fugary.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=647"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}