问题

Postman能进行文件下载类API接口的测试吗?
可以

官方文档有说明:

If your API endpoint returns an image, Postman will detect and render it automatically. 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. This gives you the flexibility to test audio files, PDFs, zip files, or anything that the API throws at you.

如果api端点返回图像,postman将自动检测并呈现该图像。对于二进制响应类型,您应该选择“发送并下载”,这样您就可以将响应保存到硬盘。然后可以使用适当的查看器查看它。这使您能够灵活地测试音频文件、pdf、zip文件或api抛出的任何东西。

在 Send 按钮

可以选择 Send and download
​​Postman对文件下载类API接口测试_api接口
Postman对文件下载类API接口测试_文件下载_02

参考:

postman能够进行文件下载功能进行测试吗?