You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
7 months ago | |
---|---|---|
.. | ||
README.md | 7 months ago | |
config.inc.php.example | 1 year ago | |
ping-get.php | 7 months ago | |
ping.php | 7 months ago | |
pinged.txt | 7 years ago | |
status-s.php | 7 months ago | |
status.php | 7 months ago | |
status.txt | 7 months ago | |
update.php | 7 months ago |
README.md
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.POST 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.POST 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.