上一次的 swagger_auto_schema(auto_schema=None) 只抑制 operation 渲染,路径仍进入 endpoints 字典并参与最长公共前缀计算,所以分组依旧塌成 api.改为在 .cls 上设置 swagger_schema = None,命中 EndpointEnumerator.should_include_endpoint 的提前返回(generators.py:66),路径根本不进枚举,公共前缀恢复 /api/. |
||
|---|---|---|
| .. | ||
| auth1 | ||
| ops | ||
| resm | ||
| system | ||
| utils | ||
| wf | ||
| ws | ||
| __init__.py | ||