indoor-navigation-system
indoor-navigation-system copied to clipboard
INS Server to accommodate POST and GET temperature requests
Description
As an facilities manager I want to be able to see what is the temperature around each INS-node so to be able to adjust the heating or cooling accordingly.
Definition of Done
- The INS server is able to receive POST requests with the temperature readings from the INS-nodes. The request should be formulated as
http://localhost:9080/set_temperature/id/temperature
where the temperature is an integer and the ID an arbitrary identification number (unless #82 is implemented first). - The INS server is able to receive GET requests to return the latest temperature for the specified node id. The request should be formulated as
http://localhost:9080/get_temperature/id
where ID an arbitrary identification number (unless #82 is implemented first). - The JSON response should be formulated as
{employee_id:<id>, temperature:<val>}
. - Documentation is updated accordingly.