The Visual Studio Code REST client
定义:
用法:
当我们需要发送请求时,可以创建一个后缀名为.rest的文件
1.获取信息(或者查询)
GET http://localhost:3001/api/notes
2.删除信息
Delete http://localhost:3001/api/notes/1
3.添加信息
POST http://localhost:3001/api/notes
Content-Type: application/json
{
"content": "VS Code REST client is pretty good",
"important": false
}
4.修改信息
PUT http://localhost:3001/api/notes/1
Content-Type: application/json
{
"content": "VS Code REST client is pretty good",
"important": false
}
Curl
定义:
用法:
http://www.ruanyifeng.com/blog/2019/09/curl-reference.html
https://catonmat.net/cookbooks/curl
Postman
定义:
一个用来进行后端测试的图形界面工具