Search code examples
jsonhttpresponseswagger-uipretty-print

Prettify Json response in Swagger UI


Is there a way of prettifying JSON in response bodies in Swagger UI? I'm using SwaggerUIBundle.


Solution

  • My API was returning text content for Content-Type. Using Flask as a proxy and was only returning the content of the requests response. This SO post helped Return a requests.Response object from Flask