postman怎么做接口 postman使用教程
时间:2023-03-16 02:32
postman怎么做接口?很多用户不知道怎么使用,下面小编教你如何使用postman发起请求,一起来看看吧。
postman怎么做接口 postman使用教程

1.打开postman工具,等待加载完成后,进入首页

2.发送get请求的话我们只需要将url完整的填入输入框即可

3.输入完毕后,我们可以通过点击param按钮,查看我们get请求的参数,这样也方便我们修改指定参数进行多个case测试

4.参数确认无误后,点击send按钮发送请求,可以在body里面看到请求的返回值

5.如果我们需要做post请求的话,先将请求方式修改为post,如下图所示

6.之后输入url,点击url下面的body填入需要设置的请求参数

7.有些使用我们的接口请求需要带入header,我们可以点击请求url下面的header,添加header请求参数,设置完毕后点击send完成post请求

以上就是postman使用教程,更多精彩教程尽在Gxl网!