🚀 Task API Documentation

Auth

POST /api/sign-up

Creates a new user.

Body: { name, email, password }

*not implemented*

POST /api/sign-in

Authenticates a user and returns a JWT token.

Body: { email, password }

*mock implementation*

Tasks

GET /api/tasks

Lists tasks.

Query: title, status, authorId

Auth: Bearer token required

GET /api/tasks/:id

Returns a task by ID.

Auth: Bearer token required

POST /api/tasks

Creates a task for the authenticated user.

Body: { title, description, status }

Auth: Bearer token required

PUT /api/tasks/:id

Updates a task owned by the authenticated user.

Body: any task fields

Auth: Bearer token required

DELETE /api/tasks/:id

Deletes a task owned by the authenticated user.

Auth: Bearer token required