Swagger漂亮的HTML代码在哪里? [英] Where the Swagger pretty HTML code?

查看:242
本文介绍了Swagger漂亮的HTML代码在哪里?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

只有丑陋的 HTML页面可供下载(HTML,HTML2和动态丑陋的所有),但该网站例如.编辑https://app.swaggerhub.com/apis/{user}/{project}/{version} (还有许多其他功能!)提供了漂亮的HTML界面...如何下载这个漂亮的HTML?

There are only ugly HTML pages as download (HTML, HTML2 and dynamic all ugly), but the site, eg. edited https://app.swaggerhub.com/apis/{user}/{project}/{version} (and many others!) offers pretty HTML interface... How to download this pretty HTML?

完整的自治HTML代码(文件或文件zip).

Complete and autonomous HTML code (file or zip of files).

我的API有一个有效的swagger.yamlswagger.json文件,因此另一种解决方案是对我的API描述文件运行开放式源代码(即插即用!)工具.

I have a good and valid swagger.yaml or swagger.json file of my API, so another solution is to run a open sourse (plug and play!) tool with my API-description file.

推荐答案

感谢

Thanks to @tleyden at swagger-ui/issues for good clues!

使用该项目的索引和assets文件夹, https://github .com/okfn-brasil/swagger-ui-html

Use the index and assets folder of this project, https://github.com/okfn-brasil/swagger-ui-html

这篇关于Swagger漂亮的HTML代码在哪里?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆