Skip to content

API 参考 ​

下面的路径都在 server/tests/Fixtures/host-route-inventory.json 里。未登录访问要登录的接口返回 401,不是「接口不存在」。

平台 ​

平台令牌使用平台 JWT。代表接口:

  • POST /platformapi/auth/login
  • GET /platformapi/system/config/groups
  • GET /platformapi/system/generator/tables
  • GET /platformapi/system/api-doc/openapi.json

租户 ​

租户请求要带 X-Tenant-Code,或者走租户域名。验证码接口的 data.key、data.image 是图片和键。代表接口:

  • GET /tenantapi/auth/captcha
  • POST /tenantapi/auth/login
  • GET /tenantapi/user/list
  • GET /tenantapi/system/config?group=basic

公共 ​

PC 与移动端用户走 /api:

  • POST /api/auth/login
  • GET /api/pc/config
  • GET /api/user/profile

图标 ​

图标不走上面三组的登录校验:

  • GET /plugin-icon/{code}/{file}

基于 MIT 协议开源