Updated JSON API (markdown)

master
Aircoookie 2019-03-27 08:39:51 +01:00
rodzic d24ee9f204
commit 32376b33cf
1 zmienionych plików z 2 dodań i 1 usunięć

@ -10,7 +10,8 @@ The response consists of four objects:
- `info` contains general information about the device. No value can be modified using this API.
- `effects` contains an array of the effect mode names
- `palettes` contains an array of the palette names
You may also obtain those objects individually using the URLs `/json/state` `/json/info` `/json/eff`, and ``/json/pal`
You may also obtain those objects individually using the URLs `/json/state` `/json/info` `/json/eff`, and `/json/pal`
### Setting new values
Sending a POST request to `/json` or `/json/state` with (parts of) the state object will update the respective values.