C/C++教程

[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

这篇关于[VSCode] REST Client Extension的文章就介绍到这儿,希望我们推荐的文章对大家有所帮助,也希望大家多多支持为之网!