Download 'file' from API response in Drupal 7 developer portal?

We have an API which returns a file as the response of the API, upon trying the API from the portal the request returns a 200 OK response which renders the file response in the raw format. Is there a way where we can make the response downloadable rather than just rendering it on the response page?

0 1 359
1 REPLY 1

Yes, We also need to know how to download the response rather than displaying it on web browser