Postman中git和post请求(超详细)
git请求
无参数请求:
1.请求方式改为GET
2.输入访问路径
3.点击Send即可查看访问接口的返回结果
有参数请求:
1.请求方式改为GET
2.输入访问路径
3.在KEY里面填入传入参数的名称,VALUE里面填入传入参数的值
4.点击Send即可查看访问接口的返回结果
Post请求
1.请求方式改成POST
2.输入访问路径
3.点击Headers
4.在KEY中加入Content-Type、VALUE中加入application/json
5.点击Body
6.选中raw,参数格式改为json
7.填入传递的参数对象
8.点击Send即可查看访问接口的返回结果
以上就是PostMan的GIT和POST两种请求方式