Skip to content
On this page

Global Configs

  • Endpoint Path: /api/v2/global/configs
  • Method: GET
  • Request: Query

Headers Optional Parameter

Parameter NamePublic Mode (Required)Private Mode (Required)
X-Fresns-Aidoptionaloptional
X-Fresns-Aid-Tokenoptionaloptional
X-Fresns-Uidoptionaloptional
X-Fresns-Uid-Tokenoptionaloptional

Query Params

Parameter NameTypeRequiredDescription
keysStringoptional键名,获取指定键名的配置项,多个以英文逗号隔开
tagsStringoptional键标签,获取指定键标签的配置项,多个以英文逗号隔开

Request Description

  • This interface queries the contents of configs table. Please refer to the introduction of configuration key names for details.
  • Enter the keys parameter, query the item_key field, and output the specified key value.
  • Enter tags parameters, query the item_tag field, and specify all parameters for outputting this tag.
  • Two parameters, keys and tags, are left blank to represent all configurations of the output.
  • Both parameters are filled in. If one of the conditions is met, then output. It is not necessary to meet both conditions.

Return

json
{
    "code": 0,
    "message": "ok",
    "data": {
        "itemKey": "itemValue",
        "key name": "key value",
    }
}

Released under the Apache-2.0 License