update bus mode PATCH endpoint

accepting {mode: value} is a little redundant but I prefer it to modifying the bus endpoint.

added bus mode PATCH example to README

patch bump
This commit is contained in:
2026-04-05 02:26:26 +01:00
parent 6d01b8d2d3
commit a82cbd2bc6
4 changed files with 16 additions and 4 deletions

View File

@@ -66,6 +66,18 @@ curl -X 'GET' \
-H 'accept: application/json'
```
*Set Bus 2 Mode*
```console
curl -X 'PATCH' \
'http://127.0.0.1:8000/bus/2/mode' \
-H 'accept: application/json' \
-H 'Content-Type: application/json' \
-d '{
"mode": "Composite"
}'
```
*Healthcheck*
```console