Skip to main content

driver

Andy HsuGuideADMINAPIGuideAbout 3 min

driver

GET 查询所有驱动配置模板列表

GET /api/admin/driver/list

请求参数

名称位置类型必选说明
Authorizationheaderstringtoken

返回结果

状态码状态码含义说明数据模型
200OKopen in new window成功Inline

返回数据结构

状态码 200

由于列表过长,请自行获取查看。

GET 列出驱动名列表

GET /api/admin/driver/names

请求参数

名称位置类型必选说明
Authorizationheaderstringtoken

返回示例

成功

{
    "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"
    ]
}

返回结果

状态码状态码含义说明数据模型
200OKopen in new window成功Inline

返回数据结构

状态码 200

名称类型必选约束中文名说明
» codeintegertruenone状态码状态码
» messagestringtruenone信息信息
» data[string]truenonenone

GET 列出特定驱动信息

GET /api/admin/driver/info

请求参数

名称位置类型必选说明
driverquerystringnone
Authorizationheaderstringtoken

返回示例

成功

{
  "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": ""
    }
  }
}

返回结果

状态码状态码含义说明数据模型
200OKopen in new window成功Inline

返回数据结构

状态码 200

名称类型必选约束中文名说明
» codeintegertruenone状态码状态码
» messagestringtruenone信息信息
» dataobjecttruenonenone
»» common[object]truenone通用配置none
»»» namestringtruenone配置名none
»»» typestringtruenone类型none
»»» defaultstringtruenone默认值none
»»» optionsstringtruenone选项none
»»» requiredbooleantruenone是否必须none
»»» helpstringtruenone帮助信息none
»» additional[object]truenone额外配置none
»»» namestringtruenone配置名none
»»» typestringtruenone类型none
»»» defaultstringtruenone默认值none
»»» optionsstringtruenone选项none
»»» requiredbooleantruenone是否必须none
»»» helpstringtruenone帮助信息none
»» configobjecttruenone配置none
»»» namestringtruenone配置名none
»»» local_sortbooleantruenone本地排序none
»»» only_localbooleantruenone仅本地none
»»» only_proxybooleantruenone仅代理none
»»» no_cachebooleantruenone无缓存none
»»» no_uploadbooleantruenone无上传none
»»» need_msbooleantruenonenone
»»» default_rootstringtruenone默认基本路径none
»»» alertstringtruenone警告信息none