问题描述
有没有办法在 Swagger UI 的响应体中美化 JSON? 我正在使用 SwaggerUIBundle。
解决方法
我的 API 正在返回 Content-Type
的文本内容。使用 Flask 作为代理并且只返回 requests
响应的内容。这篇 SO 帖子帮助了 Return a requests.Response object from Flask
有没有办法在 Swagger UI 的响应体中美化 JSON? 我正在使用 SwaggerUIBundle。
我的 API 正在返回 Content-Type
的文本内容。使用 Flask 作为代理并且只返回 requests
响应的内容。这篇 SO 帖子帮助了 Return a requests.Response object from Flask