1.下载Postman
2.打开Postman文件夹 运行Postman.exe文件(如果不能运行可运行Postman文件夹中的另一个文件的Postman.exe文件)
3.复制接口地址,(线上地址不是本地地址)
4.如果有参数的话可带上参数调用接口
Authorization:
5C1FD3CAB9A53A998EBF9D12305284CA99B27A84720A9DC5B582393CEF4D8367EBEEA82412E7DE78DBAB6469F6042F84
例如测试接口http://10.228.86.202:15073/sampleBase/playingExportExcel:
1.删除多余参数
调用该接口之后如带参数:
GET:
输入接口:http://10.228.86.202:15073/sampleBase/playingExportExcel
?pageNum=1&pageSize=30&styleDipartite=&newPlanId=&styleSource=&updateDate=&isBarcodePrint=&sampleDressName=&sampleDressCode=&flowType=3&brandId=2&brandDataType=1&isSelected=&createBy=&createDateStart=&createDateEnd=
2.headers中赋值参数 调用接口时网页中的Authorization参数(token值)
Authorization: 5C1FD3CAB9A53A998EBF9D12305284CA99B27A84720A9DC5B582393CEF4D8367EBEEA82412E7DE78DBAB6469F6042F84
headers
输入参数:key:
Authorization value:
5C1FD3CAB9A53A998EBF9D12305284CA99B27A84720A9DC5B582393CEF4D8367EBEEA82412E7DE78DBAB6469F6042F84