文档

API 文档

REST API · JWT 鉴权

鉴权

/api/auth/login 外,所有接口需携带 Authorization: Bearer <token>

POST /api/auth/login
Content-Type: application/json
{ "username": "admin", "password": "admin" }
→ { "token": "...", "role": "..." }

车辆 / 告警

方法路径说明
GET/api/vehicles车辆列表
GET/api/kpis运营 KPI 总览
GET/api/alarms告警列表
GET/api/vehicles/{vin}/residual单车残值评估

储能

方法路径说明
GET/api/storage/clusters储能簇列表
GET/api/storage/strategy24h 充放电计划
GET/api/storage/financial收益测算
GET/api/storage/h2/zones氢安全监测
GET/api/storage/hvac/devices暖通设备

节电

方法路径说明
GET/api/power/overview节电总览
GET/api/power/analysis/trend能耗趋势
GET/api/power/analysis/daily能耗日报
GET/api/power/meters电表列表