-
Notifications
You must be signed in to change notification settings - Fork 8.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add file download to try operation #1079
Conversation
@mohsen1 this will fail if there is any sort of header/key applied in fetching the file. Can you fetch the bytes in an AJAX call with SwaggerHttp and set them in an iFrame for download? |
It's also possible to use |
If a query param, yes. If it's a header (which is most common), I don't know of a way to do that. We could detect headers in the swagger.authorizations and do "something different" |
I don't know any other option. I'm open to ideas |
Here's suggestion. Let's use the blog support, and give an alert message if it's not supported? We cannot support every possible version of every browser, but we can gracefully degrade when support is not there, especially for an advanced feature like this. |
@fehguy added support for Blob |
Add file download to try operation
Add file download to try operation
No description provided.