Files
doc_ai_backed/.cursor/rules/api-structure.mdc
liuyuanchuang 48e63894eb init repo
2025-12-10 18:33:37 +08:00

18 lines
532 B
Plaintext

---
description:
globs:
alwaysApply: false
---
# API Structure
The API follows a versioned structure under the path prefix `/doc_ai/v1/`.
- [api/router.go](mdc:api/router.go): Main router setup that connects all API endpoints
- API endpoints are organized by domain:
- Formula: [api/v1/formula/](mdc:api/v1/formula)
- OSS (Object Storage): [api/v1/oss/](mdc:api/v1/oss)
- Task: [api/v1/task/](mdc:api/v1/task)
- User: [api/v1/user/](mdc:api/v1/user)
Each domain has its own router setup and controller implementation.