我正在寻找一种方法来停用 Flask-Restplus Swagger UI 中为每个 endpoints 生成的 form inputs 和 try button . 我没有在文档中找到任何信息所以我想我会问 . 你能指点我正确的方向吗?
如how to customize the UI?中所述,Flask-RESTPlus中没有方法,但您应该能够通过以下方式实现您所需要的:
提供自己的Swagger UI custom view function
使用自定义插件禁用“尝试”按钮,如How to disable 'Try it out' in 3.x所述
您可能会发现How to remove Authorize and Try it Out按钮也很有用
1 回答
如how to customize the UI?中所述,Flask-RESTPlus中没有方法,但您应该能够通过以下方式实现您所需要的:
提供自己的Swagger UI custom view function
使用自定义插件禁用“尝试”按钮,如How to disable 'Try it out' in 3.x所述
您可能会发现How to remove Authorize and Try it Out按钮也很有用