【发布时间】:2018-10-11 15:31:00
【问题描述】:
我想为我的 ReDoc 添加一些附加选项。对于当前的实现,我使用的是从 Swagger 生成的 json 文件,它被添加到 html 页面中。示例如何完成:
<body>
<redoc spec-url='http://petstore.swagger.io/v2/swagger.json'></redoc>
<script src="https://cdn.jsdelivr.net/npm/redoc@next/bundles/redoc.standalone.js"> </script>
</body>
我将其用作参考文档:https://github.com/Rebilly/ReDoc
如何在标签中添加选项对象而不使用 ReDoc 对象?以及如何使用供应商扩展,例如x标志? 在文档中这是通过 json 文件设置的,但我的 json 文件是从 Swagger 自动生成的。
【问题讨论】:
标签: asp.net-mvc swagger documentation