Getting Started

This guide shows the current Config API shape. The v1 user endpoint requires Glue authentication.

Read User Config

1curl "https://api.hola.cloud/v1/config" \
2  -H "X-Glue-Authentication: YOUR_GLUE_TOKEN"

Response:

1{
2  "entries": {
3    "feature.newCheckout": true,
4    "database.host": "db.example.com"
5  }
6}

Update User Config

1curl -X PATCH "https://api.hola.cloud/v1/config" \
2  -H "X-Glue-Authentication: YOUR_GLUE_TOKEN" \
3  -H "Content-Type: application/json" \
4  -d '{
5    "entries": {
6      "feature.newCheckout": false
7    }
8  }'

Response:

1{
2  "entries": {
3    "feature.newCheckout": false
4  }
5}

The v0 API manages config Things directly. Each Thing has an id and entries.

Comments

Leave a comment