SmartGare
API referenceEndpoints

Search checkpoints

Returns checkpoints matching optional text, area and status filters.

GET/referential/v1/checkpoints

Returns checkpoints matching optional text, area and status filters.

AuthorizationBearer <token>

In: header

Query Parameters

search?string

Matches part of a code or name.

Defaultnull
fromAreaId.value?string
toAreaId.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/checkpoints"
{  "data": [    {      "id": "string",      "code": "string",      "name": "string",      "fromAreaId": "string",      "toAreaId": "string",      "status": "string",      "capabilities": [        {          "type": "string",          "wiringReference": "string",          "active": true        }      ],      "createdAt": "2019-08-24T14:15:22Z",      "updatedAt": "2019-08-24T14:15:22Z"    }  ],  "page": 0,  "size": 0,  "total": 0}