GET /devices
Name
Type
Description
tracked
boolean
Indicates the tracked state of the devices to return. Default: null
identified
boolean
Indicates the identified state of the devices to return. Default: null
ids
string
A comma-separated list of device ids.
Status: 200 OK
[
{
"id" : " 0123BC" ,
"type" : " F" ,
"aircraft_model_id" : 209 ,
"aircraft_model_name" : " LS-4" ,
"aircraft_model_category" : " glider" ,
"aircraft_registration" : " X-0123" ,
"aircraft_competition_id" : " X01" ,
"tracked" : true ,
"identified" : true
},
{
"id" : " DEADBE" ,
"type" : " F" ,
"aircraft_model_id" : 112 ,
"aircraft_model_name" : " DR-400" ,
"aircraft_model_category" : " plane" ,
"aircraft_registration" : " X-EABC" ,
"aircraft_competition_id" : null ,
"tracked" : false ,
"identified" : false
}
]
GET /devices/:id
Status: 200 OK
{
"id" : " DEADBE" ,
"type" : " F" ,
"aircraft_model_id" : 112 ,
"aircraft_model_name" : " DR-400" ,
"aircraft_model_category" : " plane" ,
"aircraft_registration" : " X-EABC" ,
"aircraft_competition_id" : " LOL" ,
"tracked" : true ,
"identified" : true
}
POST /devices
Name
Type
Description (possible values)
id
string
Required. The device id of the device, also known as FLARM-Radio-ID or OGN address (^[A-F0-9]{6}$
).
type
string
Required. The type of the device (F
: FLARM, O
: OGN Tracker, I
: FLARM with ICAO code as device id).
aircraft_model_id
integer
The model id of the aircraft which is equipped with the device, see also List aircraft models
aircraft_registration
string
The registration of the aircraft which is equipped with the device (utf-8, maximum length is 7 characters).
aircraft_competition_id
string
The competition id of the aircraft which is equipped with the device (utf-8, maximum length is 3 characters).
tracked
boolean
The tracked state of the device.
identified
boolean
The identified state of the device.
{
"id" : " DEADBE" ,
"type" : " F" ,
"aircraft_model_id" : 112 ,
"aircraft_registration" : " X-EABC" ,
"aircraft_competition_id" : " XXL" ,
"tracked" : true ,
"identified" : true
}
Status: 201 Created
Location: https://ddb.glidernet.org/api/v1/devices/DEADBE
{
"id" : " DEADBE" ,
"type" : " F" ,
"aircraft_model_id" : 112 ,
"aircraft_model_name" : " DR-400" ,
"aircraft_model_category" : " plane" ,
"aircraft_registration" : " X-EABC" ,
"aircraft_competition_id" : " XXL" ,
"tracked" : false ,
"identified" : false
}
PATCH /devices/:id
Name
Type
Description (possible values)
type
string
Required. The type of the device (F
: FLARM, O
: OGN Tracker, I
: FLARM with ICAO code as device id).
aircraft_model_id
integer
The model id of the aircraft which is equipped with the device, see also List aircraft models
aircraft_registration
string
The registration of the aircraft which is equipped with the device (utf-8, maximum length is 7 characters).
aircraft_competition_id
string
The competition id of the aircraft which is equipped with the device (utf-8, maximum length is 3 characters).
tracked
boolean
The tracked state of the device.
identified
boolean
The identified state of the device.
{
"type" : " F" ,
"aircraft_model_id" : 209 ,
"aircraft_registration" : " X-0123" ,
"aircraft_competition_id" : " X01" ,
"tracked" : true ,
"identified" : true
}
Status: 200 OK
{
"id" : " DEADBE" ,
"type" : " F" ,
"aircraft_model_id" : 209 ,
"aircraft_model_name" : " LS-4" ,
"aircraft_model_category" : " glider" ,
"aircraft_registration" : " X-0123" ,
"aircraft_competition_id" : " X01" ,
"tracked" : true ,
"identified" : true
}
DELETE /devices/:id
Status: 204 No Content
GET /aircraft_models
Status: 200 OK
[
{
"id" : 112 ,
"name" : " DR-400" ,
"category" : " plane"
},
{
"id" : 209 ,
"name" : " LS-4" ,
"category" : " glider"
}
]
Get a single aircraft model
GET /aircraft_models/:id
Status: 200 OK
{
"id" : 112 ,
"name" : " DR-400" ,
"category" : " plane"
}