|
|
@@ -375,7 +375,6 @@ paths:
|
|
|
$ref: '#/components/schemas/Entity'
|
|
|
'404':
|
|
|
description: Entità non trovata
|
|
|
-
|
|
|
put:
|
|
|
summary: Modifica un'entità esistente (escluso lo stato)
|
|
|
tags: [Entity]
|
|
|
@@ -418,6 +417,28 @@ paths:
|
|
|
'404':
|
|
|
description: Entità non trovata
|
|
|
|
|
|
+ /entity/{id}/device:
|
|
|
+ get:
|
|
|
+ summary: Ottiene il device associato a un'entità
|
|
|
+ operationId: getEntityDevice
|
|
|
+ tags: [Entity]
|
|
|
+ parameters:
|
|
|
+ - in: path
|
|
|
+ name: id
|
|
|
+ required: true
|
|
|
+ schema:
|
|
|
+ type: string
|
|
|
+ responses:
|
|
|
+ '200':
|
|
|
+ description: Device trovato
|
|
|
+ content:
|
|
|
+ application/json:
|
|
|
+ schema:
|
|
|
+ $ref: '#/components/schemas/Device'
|
|
|
+ '404':
|
|
|
+ description: Device associato a Entità non trovato
|
|
|
+
|
|
|
+
|
|
|
/state/{id}:
|
|
|
put:
|
|
|
summary: Modifica lo stato di un'Entità
|
|
|
@@ -838,7 +859,7 @@ components:
|
|
|
additionalProperties: true
|
|
|
examples:
|
|
|
- { chiusura: 'Lunedì|Giovedì|Domenica' }
|
|
|
- deviceId:
|
|
|
+ device:
|
|
|
description: Device associato all'entità
|
|
|
$ref: '#/components/schemas/Device'
|
|
|
createdDate:
|