'How to save a file from API rest (Swagger)
I have this api enter image description here
I want to save the file (myfile.PDF, myFile1.txt, ...) in my pc (with Javascript).
I invoke, without problems, the call (status-code=200) but, now? How can I save this file?
const responseCall = await fetch('http://myserver/mysystem/api/Documents/118', {
method: 'GET',
headers: {
'Authorization': 'Bearer my_access_token'
} });
Thanks!
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
