This document contains practical examples showing how to interact with the Task Manager API.
POST /api/auth/register
{
"name": "Demo",
"email": "demo@example.com",
"password": "secret123",
"password_confirmation": "secret123"
}POST /api/auth/login
{
"email": "demo@example.com",
"password": "password"
}POST /api/auth/refresh
Authorization: Bearer <token>POST /api/auth/logout
Authorization: Bearer <token>GET /api/projects
Authorization: Bearer <token>POST /api/projects
{
"name": "My Project",
"description": "Demo"
}POST /api/projects/1/owner
{
"new_owner_id": 5
}POST /api/projects/1/tasks
{
"title": "Implement blacklist",
"priority": "normal"
}POST /api/tasks/5/claimPOST /api/tasks/5/assign
{
"assignee_id": 3
}POST /api/tasks/5/comments
{
"body": "This needs review"
}POST /api/projects/1/members
{
"user_id": 10,
"role": "member"
}POST /api/projects/1/labels
{
"name": "backend"
}For more structured definitions, see the OpenAPI spec.