Equipment list
This API is used to retrieve a list of all equipment types (device models) used in an account, including the manufacturer information.
How to get data
Method
GET
Request address
To get the data, use the address: https://<server_address>/backend/api.php?
Request parameters
-
cmd=vehmodellist — command to get the list of equipment models
-
node — the number of the node where the command should be executed
Example request
https://<server_address>/backend/api.php?cmd=vehmodellist&node=1
|
Response
{
"code": 0,
"data": [
{
"identifier": 1,
"name": "ASC-6 GPS/GLONASS",
"supplier": "APK COM"
},
{
"identifier": 2,
"name": "ASC-6 Lite GPS/GLONASS",
"supplier": "APK COM"
}
],
"message": "OK"
}
|
In response to the API request, the following is returned:
-
code — request result code (0 = successful)
-
data — array of equipment models:
-
identifier — unique model ID
-
name — model name
-
supplier — equipment manufacturer
-
message — text message with the result of the request