- Config
- Auth
- Users
- Mail
- Cashflow
- WebSocket
- Datasrc
- Report
- Home
获取配置档
GET
/api/config
Config
请求参数
Authorization
在 Header 添加参数
Authorization
,其值为在 Bearer 之后拼接 Token示例:
Authorization: Bearer ********************
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request GET 'https://s.hancel.org/api/config'
返回响应
🟢200成功
application/json
Body
data
object
必需
database
object
必需
jwtConstants
object
必需
salt
string
必需
code
integer
必需
message
string
必 需
示例
{
"data": {
"database": {
"host": "192.168.0.108",
"port": 3306,
"username": "******",
"password": "******",
"database": "test"
},
"jwtConstants": {
"secret": "b46c8261-5d04-4c17-9a83-e26b7f6bab8f"
},
"salt": "salt"
},
"code": 0,
"message": "ok"
}
修改于 2024-09-08 06:53:37