其他分享
首页 > 其他分享> > [VSCode] REST Client Extension

[VSCode] REST Client Extension

作者:互联网

In VSCode, install REST Clinet Extension:

Create API_EXAMPLE.http file in root folder:


### Get mock
GET http://localhost:3000/data HTTP/1.1


### Post mock
POST http://localhost:3000/data HTTP/1.1
Content-Type: application/json

{
    "name": "John Doe"
}

you can directly send request form the file, and see the result in VSCode

标签:HTTP,1.1,Extension,VSCode,Client,3000,file,http
来源: https://www.cnblogs.com/Answer1215/p/16613715.html