githubteacher / githubteacher/furry-computing-machine

Backend: Scan processing and anchor management endpoints

未关闭
#201 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
C
星标
3
派生
7
PR 合并指标
30 天内没有已合并 PR

描述

Implement backend API endpoints to support the scan lifecycle, including:
- POST /api/scans/request-upload: Initiate scan record, return upload targets.
- POST /api/scans/:id/upload: Accept/upload scan file (GLB/USDZ, demo endpoint or S3 presign pattern).
- POST /api/scans/:id/complete: Mark scan as ready for AI processing.
- GET /api/scans/:id: Fetch scan metadata, anchor points, and preview URLs.
- POST /api/anchors/:anchorId/link: Attach item to an anchor.
- POST /api/scans/:id/anchors: List/add anchors for scans.

Requirements:
- Local (demo) storage and S3-ready abstraction for uploads.
- Basic in-memory or DB persistence for scans and anchors.
- Validate uploads, return errors if missing or wrong format files.
- Clear error handling and status fields (draft, uploaded, processed, error).

Acceptance:
- All REST API endpoints as described.
- Proper error responses and lifecycle transitions.
- Demo runs in Docker Compose with ai service.

贡献指南

这个仓库没有索引到贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。