The /api/v3/config endpoints allow you to inspect, modify, and reload the configuration of the datarhei Core.
Read
Retrieve the currently active Core configuration with additionally a list of all fields that have an override by an environment variable. Such fields can be changed, but it will have no effect because the enviroment variable will always override the value.
The actual config is in config.Config which is an interface{} type. Depending on the returned version, you have to cast it to the corresponding type in order to access the fields in the config:
if version ==1 { configv1 := config.Config.(api.ConfigV1)} elseif version ==2 { configv2 := config.Config.(api.ConfigV2)} elseif version ==3 { configv3 := config.Config.(api.ConfigV3)}
Description:
Update
Upload a modified configuration. You can provide a partial configuration with only the fields you want to change. The minimal valid configuration you have to provide contains the version number: