Zorak's API
A simple flask application that communicates with a JSON based database. Designed to run in the localhost of the Zorak server.
Grabs the homepage. Nothing to see here.
Get's a healthcheck.
returns 'up' if online
{
"status": "up"
}
returns a dict of all settings and their statuses
[
{ "command1":false
, "command2":false
, "command3":false
, "command4":false
, "command5":false
}
, 200
]
Toggles a command on and off. If on, return off. If off, return on
[
"command1 : true"
, 200
]
Params: on/off
Toggles all commands to off or on.
[
"Off",
200
]