[doc] /config/{last_update,mac_address}

This commit is contained in:
Maxime Alves LIRMM@home 2020-09-15 23:49:54 +02:00
commit efe7c4383d

View file

@ -62,6 +62,57 @@ paths:
'415':
description: Sent data cannot be treated
/config/mac_address:
get:
operation: get_mac_address
summary: Retrieves current mac address (in the configuration)
responses:
'200':
description: The mac address value
content:
text/plain:
examples: 00:11:22:33:44:55
post:
operation: set_mac_address
summary: Sets current mac address (in the configuration)
content:
text/plain:
description: If empty, sets to machine current mac
examples:
ff:ee:dd:cc:bb:aa
responses:
'200':
description: The mac address value
content:
examples: 00:11:22:33:44:55
/config/last_update:
get:
operation: get_last_update
summary: Retrieves heatpump.last_update current value (in the configuration)
responses:
'200':
description: The last update timestamp
content:
text/plain:
examples: 00:11:22:33:44:55
post:
operation: set_last_update
summary: Sets heatpump.last_update value (in the configuration)
content:
text/plain:
description: If 0, sets to current time
If < 0, sets to +x seconds
If > 0, sets to -x seconds
examples:
0
responses:
'200':
description: The last_update timestamp
content:
examples: 1600205650
/variable_types:
get:
operation: get_variable_types