From 9600ad4629e7e125085c4f96342904b1e7abba9c Mon Sep 17 00:00:00 2001 From: He4eT Date: Thu, 29 May 2025 11:21:00 +0200 Subject: [PATCH] Update README.md --- README.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/README.md b/README.md index a3fa5be..2c1f199 100644 --- a/README.md +++ b/README.md @@ -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