Node and Npm are required for this project.
First need to run npm install to install all of the required modules. Then run npm start to start the server.
basePath: /api/v1
Return all of the trv's connected to the gateway
| Specifics | required | type |
|---|---|---|
| params | no | N/A |
| body | No | N/A |
| returns | N/A | Array |
Return the details of a particular trv that is connected to the gateway
| Specifics | required | type |
|---|---|---|
| params | Yes, id | String |
| body | No | N/A |
| returns | N/A | Object |
Update the details of a trv that is connected to the gateway
| Specifics | required | type |
|---|---|---|
| params | yes, id | String |
| body | yes, fields of trv that wished to be changed | Object |
| returns | N/A | Object |
Delete a trv that is connected to the gateway
| Specifics | required | type |
|---|---|---|
| params | yes, id | String |
| body | No | N/A |
| returns | N/A | N/A |
Returns nothing
Return whether a particular trv is active or not
| Specifics | required | type |
|---|---|---|
| params | yes, id | String |
| body | No | N/A |
| returns | N/A | Object |
Returns the current temperature for a particular trv
| Specifics | required | type |
|---|---|---|
| params | yes, id | String |
| body | No | N/A |
| returns | N/A | Object |
Updates the target temperature for a particular trv
| Specifics | required | type |
|---|---|---|
| params | yes, id | String |
| body | yes, with target temperature property | Object |
| returns | N/A | N/A |
returns a JSON object of time, current temperature, target temperature and activity