Skip to main content
Most collection endpoints in PitPath Chrono come in two variants. The base path (for example, GET /api/v1/laps) returns the full list in a single response. The /paged path (for example, GET /api/v1/laps/paged) returns the same data wrapped in a PageResponse envelope that includes pagination metadata. Use the full list endpoint when you know the dataset is small. For large datasets — such as all laps recorded across a season — use the paged endpoint to avoid loading everything at once.
The full list endpoint is convenient for small lookups (tracks, simulators, car classes). Switch to the paged endpoint whenever the result set could grow unbounded, such as laps or participants.

PageResponse structure

Every paged endpoint returns the same PageResponse wrapper regardless of the resource type.

Query parameters

Example request

Response — 200 OK
To fetch the next page, increment page by one. When last is true, you have reached the final page.

Default sort fields per resource

Each paged endpoint has a default sort field applied when you omit the sort parameter.
You can override the default sort field on any endpoint by passing an explicit sort query parameter. For example, sort=createdAt,desc sorts by creation time descending regardless of the endpoint’s default.