Discussions
Show Image preview in Try It! response
about 2 years ago by [email protected]
We have an API endpoint that is documented in OpenAPI as returning an image:
"responses": {
"200": {
"description": "Return an image.",
"content": {
"image/png": {}
}
}
}
The response header is set to content-type:image/png
but we see garbled binary data in the Response preview underneath the "Try It!" button.
Is it possible to configure the Response preview so that the actual image will be shown?