1
0

Add API endpoint for creating a new device; update PollutionMap colors and Card styles

This commit is contained in:
Jose
2025-06-01 18:48:40 +02:00
parent 2e4fc9db41
commit fb53c0fb83
4 changed files with 55 additions and 738 deletions

View File

@@ -190,6 +190,34 @@
"required": true
}
]
},
{
"method": "POST",
"path": "/api/v1/groups/:groupId/devices/:deviceId/actuators/:actuatorId/status",
"description": "Crear un nuevo dispositivo en un grupo",
"params": [
{
"name": "groupId",
"type": "integer",
"description": "ID del grupo",
"in": "body",
"required": true
},
{
"name": "deviceId",
"type": "integer",
"description": "ID del dispositivo",
"in": "body",
"required": true
},
{
"name": "actuatorId",
"type": "string",
"description": "ID del actuador",
"in": "body",
"required": true
}
]
}
],
"raw_api": [

File diff suppressed because one or more lines are too long