.. | ||
config.inc.php.example | ||
ping-get.php | ||
ping.php | ||
pinged.txt | ||
README.md | ||
status-s.php | ||
status.php | ||
status.txt | ||
update.php |
SpaceAPI endpoints
The API is currently available under https://spaceapi.it-syndikat.org/api/. The following endpoints exist:
GET status.php
: the current space status in SpaceAPI format, registered in the SpaceAPI directoryGET status-s.php
: returnstrue
if space is open,false
if closed. Called by discourse theme and serendipity.GET update.php
: updates the current open status, called by the wood box with two fat buttons ("2fb").POST ping.php
: requests a "spaceping". Called by the matrix bot.GET ping-get.php
: returnstrue
if a ping request is pending, then resets the request. Called by 2fb.
All endpoints except for status[-s].php
require an API key to be passed via the apikey=
GET
parameter. These API keys are defined in config.inc.php
, see config.inc.php.example
for an
example.