Files
xiaoxia-saas/apps/api
xiaoxia bb52e502d4 feat(api): 新增 drafts_standalone 兼容无 template_id 的 GET/PUT /api/v1/editor/drafts 路径
根因:前端 useDraftAutoSave 调 /api/v1/editor/drafts(复数、无 template_id),
后端只有 /api/v1/templates/{template_id}/editor/draft(单数、要路径参数),导致 404 并触发前端 10s 超时。
参照 clips_standalone.py 模式提供别名端点,template_id 缺省时兜底到用户默认模板。
2026-09-25 01:02:34 +08:00
..
2026-06-15 15:17:40 +08:00
2026-07-11 16:29:07 +08:00
2026-06-15 15:17:40 +08:00

xiaoxia-saas API

结构

  • app/core/:配置与基础能力
  • app/api/:路由组织
  • app/schemas/:请求响应模型
  • app/dependencies.py:依赖注入入口
  • main.py:FastAPI 启动入口

当前可用接口

  • GET /api/health
  • GET /api/projects?workspace_id=...
  • POST /api/projects