I am editing in editor.swagger.io
How can I download response from API locally which is a excel file?
My snippet -
description: "JSON to Excel conversion succeeded"
I get server response of 200 saying
😱 Could not render this component, see the console
In console the response headers are -
cache-control: public, max-age=0content-length: 8515content-type: application/vnd.openxmlformats-officedocument.spreadsheetml.sheetexpires: Tue, 10 Dec 2019 15:14:55 GMT
cache-control: public, max-age=0
expires: Tue, 10 Dec 2019 15:14:55 GMT
I want to save excel file locally.
Go to Solution.
Ok figured out. Have to expose content disposition header in the server code. It resolves for MIME types such as xlsx.
View solution in original post