« Mock Data

Users API

A small fake REST API for user records, in the spirit of JSONPlaceholder. Every GET response is deterministic and returns the same data every time. POST/PUT/PATCH/DELETE accept any body and echo a plausible response back, but nothing is actually stored.

Endpoints

MethodPathDescription
GET/mock-data/usersList users. Supports ?page=, ?limit= (max 50), and ?country=.
GET/mock-data/users/:idFetch a single user by id (1–50).
POST/mock-data/usersFake create. Echoes the submitted JSON body back with a generated id. Not persisted.
PUT / PATCH/mock-data/users/:idFake update, merging the submitted body onto the existing user. Not persisted.
DELETE/mock-data/users/:idFake delete: confirms deletion. Not persisted.
GET/mock-data/users/:id/avatar.svgA self-hosted, deterministic initials avatar for that user.

Example

GET https://testingurl.dev/mock-data/users/1
{
  "id": 1,
  "name": "Noah Davis",
  "email": "noah.davis1@mail.com",
  "phone": "(213) 129-1053",
  "country": "France",
  "dob": "1973-02-08",
  "avatarUrl": "https://testingurl.dev/mock-data/users/1/avatar.svg"
}

Try the live endpoint »