« Mock Data

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

MethodPathDescription
GET/mock-data/todosList todos. Supports ?userId=, ?completed=true|false, ?page=, ?limit=.
GET/mock-data/todos/:idFetch a single todo.
POST/mock-data/todosFake create. Not persisted.
PUT / PATCH/mock-data/todos/:idFake update. Not persisted.
DELETE/mock-data/todos/:idFake delete. Not persisted.

Example

{
  "id": 3,
  "userId": 28,
  "title": "Update the changelog",
  "completed": true
}

Incomplete todos »