Todos API
40 to-do items, each owned by a user (userId) and with a deterministic completed flag: every third item (by id) is marked done.
Endpoints
| Method | Path | Description |
|---|---|---|
GET | /mock-data/todos | List todos. Supports ?userId=, ?completed=true|false, ?page=, ?limit=. |
GET | /mock-data/todos/:id | Fetch a single todo. |
POST | /mock-data/todos | Fake create. Not persisted. |
PUT / PATCH | /mock-data/todos/:id | Fake update. Not persisted. |
DELETE | /mock-data/todos/:id | Fake delete. Not persisted. |
Example
{
"id": 3,
"userId": 28,
"title": "Update the changelog",
"completed": true
}