This is an old revision of the document!
First, make sure to explore the lab code and see where's what and everything.
You need to implement a RESTful interface that will allow you to send sensor data from a (imaginary) IoT device. Also check out the TODOs:
/api/iot
should display the current data in JSON format;/api/iot
should accept a JSON dictionary containing the temperature / humidity (check the model for the keys / format); it should accept partial data (e.g., if sending just { “rain”: 1 }
it should keep the old values for all other sensors!);