Alamat Server
https://indogps.id/api/devicesMengambil seluruh data perangkat pada akun pengguna
Struktur Perintah
Command | GET /devices | |
---|---|---|
Struktur | https://indogps.id/api/devices |
[
{
"id": 0,
"name": "string",
"uniqueId": "string",
"status": "string",
"disabled": true,
"lastUpdate": "2019-08-24T14:15:22Z",
"positionId": 0,
"groupId": 0,
"phone": "string",
"model": "string",
"contact": "string",
"category": "string",
"attributes": {}
}
]
Menambahkan data perangkat baru
Struktur Perintah
Command | POST /devices | |
---|---|---|
Struktur | https://indogps.id/api/devices |
{
"id": 0,
"name": "string",
"uniqueId": "string",
"status": "string",
"disabled": true,
"lastUpdate": "2019-08-24T14:15:22Z",
"positionId": 0,
"groupId": 0,
"phone": "string",
"model": "string",
"contact": "string",
"category": "string",
"attributes": {}
}
Merubah data perangkat
Struktur Perintah
Command | PUT /devices/{id} | |
---|---|---|
Struktur | https://indogps.id/api/devices/{id} |
{
"id": 0,
"name": "string",
"uniqueId": "string",
"status": "string",
"disabled": true,
"lastUpdate": "2019-08-24T14:15:22Z",
"positionId": 0,
"groupId": 0,
"phone": "string",
"model": "string",
"contact": "string",
"category": "string",
"attributes": {}
}
Menghapus data perangkat
Struktur Perintah
Command | DELETE /devices/{id} | |
---|---|---|
Struktur | https://indogps.id/api/devices/{id} |
Memperbarui jarak total dan jam perangkat
Struktur Perintah
Command | PUT /devices/{id}/accumulators | |
---|---|---|
Struktur | https://indogps.id/api/devices/{id}/accumulators |
{
"deviceId": 0,
"totalDistance": 0,
"hours": 0
}