-
Notifications
You must be signed in to change notification settings - Fork 0
API Reference
Webster Zhang edited this page Jan 16, 2024
·
6 revisions
This endpoint gets the current queue for airport.
{
"data": [
{
"status": 3,
"callsign": "CCA999",
"extra": {
"cid": "10000001",
"departure": "ZBAA",
"arrival": "ZSSS"
}
},
{
"status": 4,
"callsign": "CCA998",
"extra": null
}
]
}This endpoint gets a WebSocket connection regularly returning the queue for airport.
Note: Sending data to the server in the WebSocket will close the connection.
This endpoint updates status for an aircraft in the queue for airport
-
callsign: stringcallsign for the target aircraft -
status: intan ID corresponding to the new status
{
"callsign": "CCA999",
"status": 0
}This endpoint updates order for an aircraft in the queue for airport
-
callsign: stringcallsign for the target aircraft -
before: stringcallsign to place the target right before the specific aircraft- if set to
"-1", the aircraft will be placed right after the last aircraft with the same status number
- if set to
{
"callsign": "CCA999",
"before": "-1"
}This endpoint deletes status for an aircraft, namely callsign in the queue for airport
-
callsign: stringcallsign for the target aircraft