Add openapi
Opened this issue · 0 comments
Krysik commented
device
Endpoints:
- GET /api/devices -> returns array of devices
- GET /api/telemetries -> returns array of telemetries from telemetry app
telemetry
- GET /telemetry -> returns array of telemetries
- POST /telemetry
const sampleData = {
id,
deviceId: Math.floor(Math.random() * 4) + 1,
enabled: Math.random() > 0.5 ? true : false,
duty: Math.floor(Math.random() * 101),
};