Albums & Photos API
20 albums, each owned by a user (userId), with 60 photos spread across them. Each photo has a real, self-hosted url/thumbnailUrl: a generated SVG, not a hotlinked external image.
Endpoints
| Method | Path | Description |
|---|---|---|
GET | /mock-data/albums | List albums. Supports ?userId=, ?page=, ?limit=. |
GET | /mock-data/albums/:id | Fetch a single album. |
GET | /mock-data/albums/:id/photos | All photos in that album. |
GET | /mock-data/photos | List photos. Supports ?albumId=, ?page=, ?limit=. |
GET | /mock-data/photos/:id | Fetch a single photo. |
GET | /mock-data/photos/:id/image.svg | The actual image. Add ?size=thumb for an 80px version. |
POST / PUT / PATCH / DELETE | /mock-data/albums[/:id] / /mock-data/photos[/:id] | Fake CRUD. Not persisted. |
Example
{
"id": 1,
"userId": 12,
"title": "Conference talks"
}