« Mock Data

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

MethodPathDescription
GET/mock-data/albumsList albums. Supports ?userId=, ?page=, ?limit=.
GET/mock-data/albums/:idFetch a single album.
GET/mock-data/albums/:id/photosAll photos in that album.
GET/mock-data/photosList photos. Supports ?albumId=, ?page=, ?limit=.
GET/mock-data/photos/:idFetch a single photo.
GET/mock-data/photos/:id/image.svgThe 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"
}

List albums » · Photos in album 1 »