- 在按钮中切换为post请求,并且把请求的URL填写好
- Header中手动输入:
Content-Type
与application/json
- 切换到
Body
选项中,点击raw
与json
,然后添加你要传递的key与value,比如下面的示例:
这里注意写法:
{
"name":"aaa",
"age":123
}
而不是:
{
"name":"aaa",
"age":123, 注意:这里不要有逗号!!
}
- 点击发送即可
参考链接
How to send post request to the below post method using postman rest client:https://stackoverflow.com/questions/29364862/how-to-send-post-request-to-the-below-post-method-using-postman-rest-client