Todo
Manage personal tasks and to-do lists. Ability to create, edit, view, and delete tasks.
Available Endpoints
| Method |
Path |
Description |
| GET |
/api/todo |
List all tasks |
| POST |
/api/todo |
Create new task |
| GET |
/api/todo/{id} |
View task details |
| PUT |
/api/todo/{id} |
Full update of a task |
| PATCH |
/api/todo/{id} |
Partial update of a task |
| DELETE |
/api/todo/{id} |
Delete a task |
Example Request
curl -X GET "https://example.com/api/todo" \
-H "Authorization: Bearer {token}"
Success Response (200)
{
"records": [],
"meta": {
"total": 0,
"current_page": 1,
"per_page": 20
}
}
Errors
| Code |
Description |
| 401 |
Invalid token |
| 403 |
Access denied |
| 404 |
Record not found |
| 422 |
Validation error |