This repository is not being used anymore, the replacement is the Python flask backend/API
Route descriptions
| Method | Path | Description |
|---|---|---|
| GET | /getallhardware?apikey=APIKEY |
Returns a list of all hardware in the database |
| GET | /getstate/name?apikey=APIKEY |
Returns the state of hardware with the name: name |
| GET | /getactionlog?apikey=APIKEY |
Returns the entire actionlog |
| POST | /updatestate?apikey=APIKEY |
Changes the state of hardware, exspects the body to be in this format: name: Wekker interaction: alarm state: off |
| POST | /newhardware?apikey=APIKEY |
Add hardware to database |