Skip to content

Simulator Bays

Simulator bays are connected to the facilities having TrackMan simulator installations. This endpoint allows you to get a single or list of simulator bays for a single facility.

List simulator bays

To get a list of all simulator bays for a facility make you make the following get request.

GET /api/facilities/{id}/simulator-bays
Host: https://api.trackmanrange.com

This will result in a http 200 response from the server together with a json document having the following structure:

{
    "items": [
        {
            "name": "Bay 1",
            "description": "",
            "serialNumber": "{serial number}",
            "id": "19557c72-ab4b-4cf2-9ab2-20562c6a0514",
            "createdAt": "2019-08-30T08:48:18.5220453Z",
            "lastUpdatedAt": "2019-10-24T10:32:38.1595596Z",
            "_links": {
                "self": {
                    "method": "GET",
                    "href": "https://api.trackmanrange.com/api/facilities/16b68fba-3201-41ec-be26-95be1001bdcf/simulator-bays/19557c72-ab4b-4cf2-9ab2-20562c6a0514"
                }
            }
        },
        {
            "name": "Bay 2",
            "description": "",
            "serialNumber": "16184054",
            "id": "1c8078a7-e887-452b-81e0-07c5a09a699e",
            "createdAt": "2019-12-17T09:20:36.0621767Z",
            "lastUpdatedAt": "2019-12-20T09:59:58.8659102Z",
            "_links": {
                "self": {
                    "method": "GET",
                    "href": "https://api.trackmanrange.com/api/facilities/16b68fba-3201-41ec-be26-95be1001bdcf/simulator-bays/1c8078a7-e887-452b-81e0-07c5a09a699e"
                }
            }
        }
    ],
    "_links": {
        "self": {
            "method": "GET",
            "href": "https://api.trackmanrange.com/api/facilities/16b68fba-3201-41ec-be26-95be1001bdcf/simulator-bays"
        }
    }
}

Single simulator bay

It's also possible to only get a single simulator bay. That's done by making the following get request:

GET /api/facilities/{id}/simulator-bays/{bayId}
Host: https://api.trackmanrange.com

This will result in a http 200 response from the server together with a json document having the following structure:

{
    "name": "Bay 1",
    "serialNumber": "15364002",
    "id": "19557c72-ab4b-4cf2-9ab2-20562c6a0514",
    "createdAt": "2019-08-30T08:48:18.5220453Z",
    "lastUpdatedAt": "2019-10-24T10:32:38.1595596Z",
    "_links": {
        "self": {
            "method": "GET",
            "href": "https://api.trackmanrange.com/api/facilities/16b68fba-3201-41ec-be26-95be1001bdcf/simulator-bays/19557c72-ab4b-4cf2-9ab2-20562c6a0514"
        }
    }
}