SmartGare
API referenceEndpoints

Search schedules

Returns schedules matching optional line, itinerary, status and effective-date filters.

GET/referential/v1/schedules

Returns schedules matching optional line, itinerary, status and effective-date filters.

AuthorizationBearer <token>

In: header

Query Parameters

lineId.value?string
itineraryId.value?string
status?string

Schedule lifecycle status; defaults to ACTIVE.

Defaultnull

Value in

  • "DRAFT"
  • "ACTIVE"
  • "SUSPENDED"
effectiveOn?string

Keep only schedules whose effective range contains this date (ISO).

Formatdate
Defaultnull
sort?string

Result ordering.

Defaultnull

Value in

  • "effectiveAsc"
  • "effectiveDesc"
  • "newest"
  • "oldest"
page?integer

Zero-based page index.

Formatint32
Range0 <= value
Defaultnull
size?integer

Page size, at most 200.

Formatint32
Range0 <= value <= 200
Defaultnull

Response Body

*/*

curl -X GET "https://example.com/referential/v1/schedules"
{  "data": [    {      "id": "string",      "itineraryId": "string",      "operatingDays": [        "MONDAY"      ],      "dayCycle": {        "anchorDate": "2019-08-24",        "lengthDays": 0,        "daysInCycle": [          0        ]      },      "effectiveFrom": "2019-08-24",      "effectiveTo": "2019-08-24",      "status": "string",      "exceptions": [        {          "id": "string",          "timetableServiceDate": "2019-08-24",          "kind": "CANCELLED",          "reason": "string",          "createdAt": "2019-08-24T14:15:22Z",          "createdBy": "string"        }      ],      "createdAt": "2019-08-24T14:15:22Z",      "updatedAt": "2019-08-24T14:15:22Z"    }  ],  "page": 0,  "size": 0,  "total": 0}