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
| Method | Path | Description |
|---|---|---|
GET | /mock-data/users | List users. Supports ?page=, ?limit= (max 50), and ?country=. |
GET | /mock-data/users/:id | Fetch a single user by id (1–50). |
POST | /mock-data/users | Fake create. Echoes the submitted JSON body back with a generated id. Not persisted. |
PUT / PATCH | /mock-data/users/:id | Fake update, merging the submitted body onto the existing user. Not persisted. |
DELETE | /mock-data/users/:id | Fake delete: confirms deletion. Not persisted. |
GET | /mock-data/users/:id/avatar.svg | A 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"
}