REST controllers created for thermostat and temperature