SmartGare
API referenceEndpoints

Search bays

Returns bays matching optional text, station area and status filters.

GET/referential/v1/bays

Returns bays matching optional text, station area and status filters.

AuthorizationBearer <token>

In: header

Query Parameters

search?string

Matches part of a bay code.

Defaultnull
stationAreaId.value?string
status?string

Restrict to one lifecycle status; defaults to ACTIVE.

Defaultnull

Value in

  • "ACTIVE"
  • "DECOMMISSIONED"
  • "ACTIVE"
  • "DECOMMISSIONED"
sort?string

Result ordering.

Defaultnull

Value in

  • "codeAsc"
  • "codeDesc"
  • "newest"
  • "oldest"
  • "codeAsc"
  • "codeDesc"
  • "newest"
  • "oldest"
  • "codeAsc"
  • "codeDesc"
  • "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/bays"
{  "data": [    {      "id": "string",      "stationAreaId": "string",      "code": "string",      "position": 0,      "lengthM": 0,      "heightM": 0,      "status": "string",      "createdAt": "2019-08-24T14:15:22Z",      "updatedAt": "2019-08-24T14:15:22Z"    }  ],  "page": 0,  "size": 0,  "total": 0}