Where the Swagger pretty HTML code?(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.yaml
或 swagger.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 代码在哪里?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:Swagger 漂亮的 HTML 代码在哪里?


- 如何显示带有换行符的文本标签? 2022-01-01
- 从原点悬停时触发 translateY() 2022-01-01
- 如何向 ipc 渲染器发送添加回调 2022-01-01
- 是否可以将标志传递给 Gulp 以使其以不同的方式 2022-01-01
- 我不能使用 json 使用 react 向我的 web api 发出 Post 请求 2022-01-01
- 如何调试 CSS/Javascript 悬停问题 2022-01-01
- 为什么悬停在委托事件处理程序中不起作用? 2022-01-01
- 使用 iframe URL 的 jQuery UI 对话框 2022-01-01
- 为什么我的页面无法在 Github 上加载? 2022-01-01
- 在不使用循环的情况下查找数字数组中的一项 2022-01-01