Update README.md

This commit is contained in:
He4eT 2025-05-29 11:21:00 +02:00
commit 9600ad4629

View file

@ -56,6 +56,7 @@ http GET http://localhost:1337/api/spaceapi
```sh
API_TOKEN=your-token-here
http PUT \
http://localhost:1337/api/state \
Authorization:"Bearer $API_TOKEN" \
@ -87,6 +88,21 @@ http PUT \
}'
```
#### Add an Event
```sh
API_TOKEN=your-token-here
http POST \
http://localhost:1337/api/events \
Authorization:"Bearer $API_TOKEN" \
data:='{
"name": "3D printer",
"type": "finish-print",
"extra": "Model: Evangelion Unit-01"
}'
```
### Caveats
#### Timestamps