Space-API (https://spaceapi.io/) related codes and files https://open-lab.at
Go to file
2021-09-15 13:57:41 +08:00
.gitignore adds htaccess to ignore file, server related setup 2021-09-15 06:54:42 +02:00
LICENSE.md Adding license 2021-09-15 07:04:53 +02:00
openState Adds an endpoint to update the opening status of the lab and to return a status to the space api 2021-09-04 22:46:02 +02:00
README.md Adds readme-file 2021-09-15 13:57:41 +08:00
spaceapi.php Putting license into the correct spot in the code 2021-09-15 07:14:53 +02:00
update_open_state.php Putting license into the correct spot in the code 2021-09-15 07:14:53 +02:00

Open-Lab Vorarlbergs Space API Interface

This is the Open-Labs Vorarlbergs implementation for the Spaceapi.

Goals

  • Provide an endpoint to return a valid spaceapi.json file
  • Provide an endpoint to update the json file
  • Minimal setup installation
  • Easy to use behind a firewall and with minimal tools on the client side

Installation

  1. Upload the files to a webspace of your choice
  2. Create a file named authorization in the same directory
  3. Create a secret you can put into the authorization-file

Updating the open state

Example to update the open state

curl -X POST -d 'open=true' -d 'authorization={your authorization string here}' {url to update_open_state.php}