AC Task Manager API

Claude Code project structure example — Next.js 14 App Router

Endpoints

MethodPathDescription
GET/api/tasksList all tasks (optional ?status=todo|in-progress|done)
POST/api/tasksCreate a new task
GET/api/tasks/:idGet a single task by ID
PUT/api/tasks/:idPartially update a task
DELETE/api/tasks/:idDelete 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.