Skip to content

Repository files navigation

RESTful API Client

快速测试 RESTful API.

说明

  • 测试文件以 .api.js 结尾.
  • 请求配置是一个标准的 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: JSON.stringify({
    id: "123",
    name: "alex",
    age: 12
  })
}

Build

npm run pack

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages