1

when I try to send the API request to export the excel file in postman it gives the following responeenter image description here

but when I tried the endpoint in the browser the excel file is downloaded.

what is the best way to test the api to export the excel file in laravel

Amrit Shrestha
  • 21
  • 1
  • 2
  • 3

1 Answers1

1

see this: enter link description here

Try selecting send and download instead of send when you make the request. (the blue button)

https://www.getpostman.com/docs/responses

"For binary response types, you should select Send and download which will let you save the response to your hard disk. You can then view it using the appropriate viewer."

Negar Javadzadeh
  • 325
  • 7
  • 11