mirror of
https://github.com/He4eT/simple-spaceapi.git
synced 2026-05-04 17:37:24 +00:00
Update README.md
This commit is contained in:
parent
d664afb574
commit
9600ad4629
1 changed files with 16 additions and 0 deletions
16
README.md
16
README.md
|
|
@ -56,6 +56,7 @@ http GET http://localhost:1337/api/spaceapi
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
API_TOKEN=your-token-here
|
API_TOKEN=your-token-here
|
||||||
|
|
||||||
http PUT \
|
http PUT \
|
||||||
http://localhost:1337/api/state \
|
http://localhost:1337/api/state \
|
||||||
Authorization:"Bearer $API_TOKEN" \
|
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
|
### Caveats
|
||||||
|
|
||||||
#### Timestamps
|
#### Timestamps
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue