AC Task Manager API
Claude Code project structure example — Next.js 14 App Router
Endpoints
| Method | Path | Description |
|---|---|---|
| GET | /api/tasks | List all tasks (optional ?status=todo|in-progress|done) |
| POST | /api/tasks | Create a new task |
| GET | /api/tasks/:id | Get a single task by ID |
| PUT | /api/tasks/:id | Partially update a task |
| DELETE | /api/tasks/:id | Delete a task |
Response Format
// Success
{ "success": true, "data": { ... } }
// Error
{ "success": false, "error": "description" }Task Schema
{
"id": "uuid",
"title": "string (required)",
"description": "string | null",
"status": "todo | in-progress | done",
"priority": "low | medium | high",
"dueDate": "ISO date string | null",
"createdAt": "ISO datetime",
"updatedAt": "ISO datetime"
}Note: uses an in-memory store — data resets on server cold start.