Gateway Endpoints¶
GET /gateways¶
Retrieve all gateways in the system.
- Response:
json
[
{
"mac": "1c28afc29...",
"hardwareDescriptor": "AP-505",
"softwareVersion": "8.10.0.2"
},
{
"mac": "1c28afc29...",
"hardwareDescriptor": "AP-505",
"softwareVersion": "8.10.0.2"
},
...
]
GET /gateways/{mac}¶
Retrieve details for a gateway by its MAC address.
- Parameters:
mac: Identifier of the gateway.
- Response:
json
{
"hardwareDescriptor": "hardwareDescriptor",
"mac": "mac",
"softwareVersion": "softwareVersion",
"lastSeen": "lastSeen"
}
GET /gateways/{mac}/stats¶
Retrieve statistics (e.g., data throughput, error rates) for a gateway.
- Parameters:
mac: Identifier of the gateway.
- Response:
json
{
"lastSeen": "12/02/2022 14:32:12 GMT+3",
"succesfullyProcessed": 6,
"notProcessed": 1,
"totalTelegramCount": 0
}
GET /gateways/{mac}/health¶
Retrieve the health status of a gateway, including uptime and performance metrics.
- Parameters:
mac: Identifier of the gateway.
- Response:
json
{
"timestamp": 123575746883,
"usbHealth": "healthy",
"usbIdentifier": "0xff33a5"
}