我正在尝试使用flasgger
库编写API文档:
@bp.route('/long_to_short', methods=['POST'])
def long_to_short():
'''Create a short URL
---
tags:
- long_to_short
requestBody:
content:
application/json:
schema:
type: array
items:
long_url: https://google.com
required: true
'''
但UI不显示有关请求正文的信息:
如何正确编写文档以使其正确显示
Tags:
以下是有效的标记:
希望这对你有用
相关问题 更多 >
编程相关推荐