2 unstable releases
0.4.1 | Apr 2, 2022 |
---|---|
0.3.2 | Aug 23, 2019 |
#428 in Authentication
5MB
2.5K
SLoC
Description
Implements a status API for hackerspaces. Most actions require authentication (HTTP Auth with a common password). Also supports announcements (for events or people announcing their future stay) and presence (people currently staying).
What data the daemon tracks and how the API looks is documented in the Specification.
Integrations
- Publish status and presence changes via MQTT
- Provide a SpaceAPI 0.13 compatible endpoint at
/spaceapi
if configured.
Dependencies
- Rust and Cargo
- GCC
- OpenSSL and SQLite3 (with headers)
on Debian:
apt-get install gcc openssl libssl-dev sqlite3-0 sqlite3-dev
, use binary installer on https://www.rust-lang.org/downloads.html
Build
Build dependencies: Rust and Cargo
To build, run cargo build --release
Dependency Graph
API examples
Create announcement
jq --null-input '{type: "announcement", method: "new", from: 1610612736, to: 1610612737, note: "2^29 * 3", user: "Hans", public: false}' \
| curl http://localhost:8000/api/v0 -X PUT --data @- -v
Dependencies
~67–100MB
~1.5M SLoC