1、Postman创建一个工程
New Collection
2、在Collection下新增接口
3、Post接口
url:
http://localhost:7529/api/user/login?token%20=%20123
Headers:
Content-Type:application/json
Referer:http://localhost:8000/
User-Agent:Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.0.0 Safari/537.36
请求体:
{"userAccount":"测试账户","userPassword":"*********"}
Header设置
Postman发起请求
4、Get请求
url:
http://localhost:7529/api/user/get/login?token%20=%20123