API 参考
下面的路径都在 server/tests/Fixtures/host-route-inventory.json 里。未登录访问要登录的接口返回 401,不是「接口不存在」。
平台
平台令牌使用平台 JWT。代表接口:
POST /platformapi/auth/loginGET /platformapi/system/config/groupsGET /platformapi/system/generator/tablesGET /platformapi/system/api-doc/openapi.json
租户
租户请求要带 X-Tenant-Code,或者走租户域名。验证码接口的 data.key、data.image 是图片和键。代表接口:
GET /tenantapi/auth/captchaPOST /tenantapi/auth/loginGET /tenantapi/user/listGET /tenantapi/system/config?group=basic
公共
PC 与移动端用户走 /api:
POST /api/auth/loginGET /api/pc/configGET /api/user/profile
图标
图标不走上面三组的登录校验:
GET /plugin-icon/{code}/{file}
