添加“值示例”昂首阔步,使用flask-restx
如何在不使用装饰器 marshall_with/marshall_list_with 的情况下将“值示例”(如图 3 所示)添加到 swagger 文档中(图 4 是我想要放入“值示例”的位置)?因为该函数根据两个端点得到了两个响应
how can i add 'value example' (like on picture 3) to swagger documentation (picture 4 is that where i want to put 'value example' in) without using decorator marshall_with/marshall_list_with? Cuz the function got two responses depending on two endpoints
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以使用该模型来定义一个示例,例如:
You can use the model to define an example, like this: