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

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

问题描述

只有 ugly 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.

推荐答案

感谢 @tleyden at swagger-ui/issues 寻找好线索!

使用本项目的index和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天全站免登陆