[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

posted @ 2022-08-22 17:51  Zhentiw  阅读(13)  评论(0编辑  收藏  举报