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 代码在哪里?
基础教程推荐
- 在 contenteditable 中精确拖放 2022-01-01
- 原生拖动事件后如何获取 mouseup 事件? 2022-01-01
- 如何添加到目前为止的天数? 2022-01-01
- 检查 HTML5 拖放文件类型 2022-01-01
- 即使用户允许,Gmail 也会隐藏外部电子邮件图片 2022-01-01
- fetch 是否支持原生多文件上传? 2022-01-01
- Bootstrap 模态出现在背景下 2022-01-01
- Bokeh Div文本对齐 2022-01-01
- Fabric JS绘制具有活动形状的多边形 2022-01-01
- npm start 错误与 create-react-app 2022-01-01
