Files
mcpctl/.taskmaster/tasks/task_126.md

29 lines
925 B
Markdown
Raw Normal View History

# Task ID: 126
**Title:** Epic routes and API endpoints
**Status:** pending
**Dependencies:** 124, 125
**Priority:** medium
**Description:** Create Epic routes in src/mcpd/src/routes/ with CRUD endpoints plus roadmap and tradeoffs
**Details:**
Create src/mcpd/src/routes/epic.routes.ts:
1. GET /api/v1/epics - list with ?project=<name> filter
2. POST /api/v1/epics - create, resolve project name to id
3. GET /api/v1/epics/:id - get by id
4. PUT /api/v1/epics/:id - update
5. DELETE /api/v1/epics/:id - delete
6. GET /api/v1/epics/:id/roadmap - return epictask graph with completeness
7. POST /api/v1/epics/:id/tradeoffs - append accepted tradeoff
8. Register routes in main.ts
9. Follow agent-routes.ts pattern for auth and validation
**Test Strategy:**
Route tests in src/mcpd/tests/routes/: test CRUD endpoints, test project name resolution, test roadmap returns graph structure, test tradeoffs append correctly.