管理 Config

v0 API 直接管理配置 Thing。配置 Thing 包含 identries 对象。

列出

1curl "https://api.hola.cloud/v0/configs"
1[
2  {
3    "id": "cfg_abc123",
4    "entries": {
5      "feature.newCheckout": true
6    }
7  }
8]

创建

1curl -X POST "https://api.hola.cloud/v0/configs" \
2  -H "Content-Type: application/json" \
3  -d '{"entries":{"feature.newCheckout":true}}'

获取

1curl "https://api.hola.cloud/v0/configs/cfg_abc123"

修补

1curl -X PATCH "https://api.hola.cloud/v0/configs/cfg_abc123" \
2  -H "Content-Type: application/json" \
3  -d '{"entries":{"feature.newCheckout":false}}'

删除

1curl -X DELETE "https://api.hola.cloud/v0/configs/cfg_abc123"

评论

发表评论