driver
GuideADMINAPIGuideAbout 3 min
driver
GET 查询所有驱动配置模板列表
GET /api/admin/driver/list
请求参数
名称 | 位置 | 类型 | 必选 | 说明 |
---|---|---|---|---|
Authorization | header | string | 是 | token |
返回结果
状态码 | 状态码含义 | 说明 | 数据模型 |
---|---|---|---|
200 | OK | 成功 | Inline |
返回数据结构
状态码 200
由于列表过长,请自行获取查看。
GET 列出驱动名列表
GET /api/admin/driver/names
请求参数
名称 | 位置 | 类型 | 必选 | 说明 |
---|---|---|---|---|
Authorization | header | string | 是 | token |
返回示例
成功
{
"code": 200,
"message": "success",
"data": [
"IPFS API",
"BaiduPhoto",
"Onedrive",
"PikPakShare",
"Seafile",
"AList V3",
"Alias",
"Crypt",
"123PanLink",
"ChaoXingGroupDrive",
"OnedriveAPP",
"Teambition",
"WoPan",
"ThunderExpert",
"Mega_nz",
"123PanShare",
"Cloudreve",
"UC",
"115 Share",
"MoPan",
"AliyundriveOpen",
"GooglePhoto",
"UrlTree",
"ILanZou",
"189Cloud",
"Local",
"139Yun",
"BaiduNetdisk",
"Quqi",
"115 Cloud",
"FeijiPan",
"S3",
"Thunder",
"PikPak",
"BaiduShare",
"Aliyundrive",
"Dropbox",
"NeteaseMusic",
"WeiYun",
"123Pan",
"Doge",
"189CloudPC",
"GoogleDrive",
"Quark",
"YandexDisk",
"MediaTrack",
"AList V2",
"Virtual",
"USS",
"AliyundriveShare",
"Lanzou",
"WebDav",
"VTencent",
"Trainbit",
"FTP",
"SFTP",
"SMB",
"Terabox"
]
}
返回结果
状态码 | 状态码含义 | 说明 | 数据模型 |
---|---|---|---|
200 | OK | 成功 | Inline |
返回数据结构
状态码 200
名称 | 类型 | 必选 | 约束 | 中文名 | 说明 |
---|---|---|---|---|---|
» code | integer | true | none | 状态码 | 状态码 |
» message | string | true | none | 信息 | 信息 |
» data | [string] | true | none | none |
GET 列出特定驱动信息
GET /api/admin/driver/info
请求参数
名称 | 位置 | 类型 | 必选 | 说明 |
---|---|---|---|---|
driver | query | string | 是 | none |
Authorization | header | string | 是 | token |
返回示例
成功
{
"code": 200,
"message": "success",
"data": {
"common": [
{
"name": "mount_path",
"type": "string",
"default": "",
"options": "",
"required": true,
"help": "The path you want to mount to, it is unique and cannot be repeated"
},
{
"name": "order",
"type": "number",
"default": "",
"options": "",
"required": false,
"help": "use to sort"
},
{
"name": "remark",
"type": "text",
"default": "",
"options": "",
"required": false,
"help": ""
},
{
"name": "cache_expiration",
"type": "number",
"default": "30",
"options": "",
"required": true,
"help": "The cache expiration time for this storage"
},
{
"name": "webdav_policy",
"type": "select",
"default": "native_proxy",
"options": "use_proxy_url,native_proxy",
"required": true,
"help": ""
},
{
"name": "down_proxy_url",
"type": "text",
"default": "",
"options": "",
"required": false,
"help": ""
},
{
"name": "extract_folder",
"type": "select",
"default": "",
"options": "front,back",
"required": false,
"help": ""
},
{
"name": "enable_sign",
"type": "bool",
"default": "false",
"options": "",
"required": true,
"help": ""
}
],
"additional": [
{
"name": "cookie",
"type": "string",
"default": "",
"options": "",
"required": true,
"help": ""
},
{
"name": "root_folder_id",
"type": "string",
"default": "0",
"options": "",
"required": true,
"help": ""
},
{
"name": "order_by",
"type": "select",
"default": "none",
"options": "none,file_type,file_name,updated_at",
"required": false,
"help": ""
},
{
"name": "order_direction",
"type": "select",
"default": "asc",
"options": "asc,desc",
"required": false,
"help": ""
}
],
"config": {
"name": "UC",
"local_sort": false,
"only_local": true,
"only_proxy": false,
"no_cache": false,
"no_upload": false,
"need_ms": false,
"default_root": "0",
"alert": ""
}
}
}
返回结果
状态码 | 状态码含义 | 说明 | 数据模型 |
---|---|---|---|
200 | OK | 成功 | Inline |
返回数据结构
状态码 200
名称 | 类型 | 必选 | 约束 | 中文名 | 说明 |
---|---|---|---|---|---|
» code | integer | true | none | 状态码 | 状态码 |
» message | string | true | none | 信息 | 信息 |
» data | object | true | none | none | |
»» common | [object] | true | none | 通用配置 | none |
»»» name | string | true | none | 配置名 | none |
»»» type | string | true | none | 类型 | none |
»»» default | string | true | none | 默认值 | none |
»»» options | string | true | none | 选项 | none |
»»» required | boolean | true | none | 是否必须 | none |
»»» help | string | true | none | 帮助信息 | none |
»» additional | [object] | true | none | 额外配置 | none |
»»» name | string | true | none | 配置名 | none |
»»» type | string | true | none | 类型 | none |
»»» default | string | true | none | 默认值 | none |
»»» options | string | true | none | 选项 | none |
»»» required | boolean | true | none | 是否必须 | none |
»»» help | string | true | none | 帮助信息 | none |
»» config | object | true | none | 配置 | none |
»»» name | string | true | none | 配置名 | none |
»»» local_sort | boolean | true | none | 本地排序 | none |
»»» only_local | boolean | true | none | 仅本地 | none |
»»» only_proxy | boolean | true | none | 仅代理 | none |
»»» no_cache | boolean | true | none | 无缓存 | none |
»»» no_upload | boolean | true | none | 无上传 | none |
»»» need_ms | boolean | true | none | none | |
»»» default_root | string | true | none | 默认基本路径 | none |
»»» alert | string | true | none | 警告信息 | none |