Skip to content
| Marketplace
Sign in
Visual Studio Code>Snippets>RESTful API Http ClientNew to Visual Studio Code? Get it now.
RESTful API Http Client

RESTful API Http Client

constneo

|
184 installs
| (0) | Free
A simple HTTP client for testing RESTful APIs.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

RESTful API Client

快速测试 RESTful API.

说明

  • 测试文件以 .api.js 结尾.
  • ~~使用和 axios请求 一样的配置即可.~~
  • 请求配置是一个标准的 Requst
  • 点击状态栏的 rocket 图标,将打开请求返回的 Response面板
  • 包含两个 snippets, .api .uuid

示例

example.api.js

const API_GET = {
  url: "http://127.0.0.1:4000/users",
  method: "GET",
  headers: {
    "Content-Type": "application/json;charset=utf-8"
  }
}

const API_POST = {
  url: "http://127.0.0.1:4000/users",
  method: "POST",
  headers: {
    "Content-Type": "application/json;charset=utf-8"
  },
  body: {
    name: "alex",
    age: 12
  }
}
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft