DocsFixtures & collections
03 / 05

Fixtures & collections

Working with mock data and paginated endpoints.

Fixtures

Fixtures are predefined data objects that mock APIs return for entity lookups. Each fixture has a unique ID.

Note

Fixtures are defined per brief. The available IDs are documented in each brief's API section.

Collections

Collection endpoints return arrays of fixtures with support for:

  • Filtering - Query parameters to filter results
  • Sorting - Order results by a field
  • Pagination - Limit results and navigate through pages

Pagination

Mock APIs use cursor-based pagination:

json
// First page
GET /orders?limit=10

// Response includes pagination info
{
  "data": [...],
  "pagination": {
    "next_cursor": "eyJpZCI6MTB9",
    "has_more": true
  }
}

// Next page
GET /orders?limit=10&cursor=eyJpZCI6MTB9