added
v1.5.0
over 4 years ago by Mark Jubenville
Summary: added update building route
New
- PATCH
/api/v1/buildings/{buildingtId}
this route allows for updating the name, size and address of a building
Updated
- the allowed values for the
size
field on the building object are now more strict, and will only accept integers of [0, 1, 5000, 10000, 20000]. The openapi spec had implicitly defined this as the description noted the accepted values, but the route input validation was not yet enforcing it - the building object was inadvertently returning a field called
fullAddress
, the openapi spec did not show this field, so the field has been removed from the building object output
Fixed
- the GET
/api/v1/buildings/{buildingId}/thermostats
route was returning invalid thermostat IDs, it now correctly returns the actualthermostatId
for each device