Skip to content

v0.4.5

Latest

Choose a tag to compare

@zigazajc007 zigazajc007 released this 24 Feb 20:37

Full Configuration Management via Admin API

The Admin API now supports reading and replacing the entire configuration through GET and POST /v1/admin/config, with both JSON and TOML format support.

Read the current config:

# As JSON
curl -H "Authorization: Bearer " \
  http://localhost:3000/v1/admin/config

# As TOML
curl -H "Authorization: Bearer " \
  "http://localhost:3000/v1/admin/config?format=toml"

Replace the entire config:

curl -X POST \
  -H "Authorization: Bearer " \
  -H "Content-Type: application/json" \
  -d @config.json \
  http://localhost:3000/v1/admin/config

The config is validated before being written, and on reload failure the previous configuration is automatically restored (safe to use in production).