获取指定配置项
GET
/api/config/{key}
配置
请求参数
Authorization
在 Header 添加参数
Authorization
,其值为在 Bearer 之后拼接 Token示例:
Authorization: Bearer ********************
Path 参数
key
string
配置键
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request GET 'http://localhost:8080/api/api/config/'
返回响应
🟢200成功
application/json
Body
code
integer
可选
示例值:
200
data
object
model.ConfigResponse
group
integer
可选
help
string
可选
key
string
可选
options
string
可选
type
string
可选
value
string
可选
message
string
可选
示例值:
success
示例
{
"code": 200,
"data": {
"group": 0,
"help": "string",
"key": "string",
"options": "string",
"type": "string",
"value": "string"
},
"message": "success"
}
🟠400请求有误
🟠404记录不存在
修改于 2025-04-03 08:54:22