简体   繁体   English

Restplus swagger文档的倍数部分

[英]multiples section on Restplus swagger documentation

On Restplus documentation (using B!ueprints) we see : a full example: https://flask-restplus.readthedocs.io/en/0.2.3/example.html 在Restplus文档(使用B!ueprints)上,我们可以看到:完整示例: https ://flask-restplus.readthedocs.io/en/0.2.3/example.html

The created swagger documentation has only one section "todos : TODO operations " 创建的swagger文档只有一部分“ todos:TODO操作”

How can I have multiples sections ? 如何获得多个部分?

You need to use Namespaces to achieve this. 您需要使用命名空间来实现此目的。 Each Namespace becomes a separate section in swagger doc. 每个名称空间在swagger文档中都变成一个单独的部分。

http://flask-restplus.readthedocs.io/en/stable/scaling.html http://flask-restplus.readthedocs.io/en/stable/scaling.html

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM