Informations d'un objet connecté
GET/device/:id
Informations d'un objet connecté
Request
Path Parameters
id integerrequired
Identifiant de l'objet
Responses
- 200
- 401
- 404
OK
- application/json
- Schema
- Example (from schema)
Schema
id integer
ID
typeConnection nullable
Type de connexion : Sigfox = 0, Lora = 2, Satellite = 3
refExtern stringnullable
Référence externe
name stringnullable
Nom de la balance
last_sync date-timenullable
Date de dernière synchronisation
state integernullable
Statut
lat floatnullable
Latitude
lng floatnullable
Longitude
{
"id": 23,
"typeConnection": 0,
"refExtern": "B0023",
"name": "Balance DIY n°2",
"last_sync": "2024-07-29T15:51:28.071Z",
"state": 0,
"lat": 48.4014,
"lng": 4.417
}
Unauthorized
- application/json
- Schema
- Example (from schema)
- Example
Schema
code integer
Code d'erreur
message string
Message de l'erreur
details integer[]
Informations supplémentaires
{
"code": 0,
"message": "string",
"details": [
0
]
}
{
"error": {
"code": 401,
"message": "Unauthorized",
"details": []
}
}
Device inconnu
- application/json
- Schema
- Example (from schema)
- Example
Schema
code integer
Code d'erreur
message string
Message de l'erreur
details integer[]
Informations supplémentaires
{
"code": 0,
"message": "string",
"details": [
0
]
}
{
"error": {
"code": 404,
"message": "Not Found: Device inconnu",
"details": []
}
}
Loading...