postman测试上传Excel文件的接口

比如,展业海报批量导入海报的接口,抓包可以看到如下请求:


以post的方式提交,接口携带三个参数:categoryId、verifyCode、excelFile

则在postman可以这么设置:

1、params中填写两个参数

2、headers 填写Content-Type类型

3、Body中上传Excel文件

你可能感兴趣的:(postman测试上传Excel文件的接口)