Managing Configs
The v0 API manages config Things directly. A config Thing has an id and an entries object.
List
1curl "https://api.hola.cloud/v0/configs"
1[
2 {
3 "id": "cfg_abc123",
4 "entries": {
5 "feature.newCheckout": true
6 }
7 }
8]
Create
1curl -X POST "https://api.hola.cloud/v0/configs" \
2 -H "Content-Type: application/json" \
3 -d '{"entries":{"feature.newCheckout":true}}'
Retrieve
1curl "https://api.hola.cloud/v0/configs/cfg_abc123"
Patch
1curl -X PATCH "https://api.hola.cloud/v0/configs/cfg_abc123" \
2 -H "Content-Type: application/json" \
3 -d '{"entries":{"feature.newCheckout":false}}'
Delete
1curl -X DELETE "https://api.hola.cloud/v0/configs/cfg_abc123"
Comments