Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

267
Views
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, ...) on 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!

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!