GET /vars/{name}
One shared variable's value.
Details #
Returns {"name": "shared.mode", "value": "deep work"}. A name without shared. gets the prefix. A variable that is not set answers 404.
curl -s -H "Authorization: Bearer $TOKEN" http://127.0.0.1:48080/vars/mode
Parameters #
curl --unix-socket "$SWITCHBOARD_HOME/engine.sock" -X GET http://localhost/vars/{name}
One shared variable's value. The Unix socket needs no token; loopback 127.0.0.1:48080 needs Authorization: Bearer <api-token>.