【发布时间】:2017-12-20 07:55:48
【问题描述】:
我正在使用 flask_restplus 来生成招摇。我必须在 POST 端点之一上接受 Content-Type: application/x-www-form-urlencoded 。但是自动生成的 swagger 文档只显示 applicatin/json。我怎样才能改变这种行为?谢谢。
【问题讨论】:
-
当我在做类似的事情时:你是如何设置你想接受的
Content-Type的?你能发布一些示例代码吗?
标签: swagger content-type flask-restplus