Skip to main content

public

Andy HsuGuideAPIGuideAbout 2 min

public

GET ping检测

GET /ping

连通性ping检测

返回示例

成功

返回结果

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

返回数据结构

GET 获取站点设置

GET /api/public/settings

返回示例

成功

{
  "code": 200,
  "message": "success",
  "data": {
    "allow_indexed": "false",
    "allow_mounted": "false",
    "announcement": "",
    "audio_autoplay": "true",
    "audio_cover": "https://jsd.nn.ci/gh/alist-org/logo@main/logo.svg",
    "auto_update_index": "false",
    "default_page_size": "30",
    "external_previews": "{}",
    "favicon": "https://cdn.jsdelivr.net/gh/alist-org/logo@main/logo.svg",
    "filename_char_mapping": "{\"/\": \"|\"}",
    "forward_direct_link_params": "false",
    "hide_files": "/\\/README.md/i",
    "home_container": "hope_container",
    "home_icon": "🏠",
    "iframe_previews": "{\n\t\"doc,docx,xls,xlsx,ppt,pptx\": {\n\t\t\"Microsoft\":\"https://view.officeapps.live.com/op/view.aspx?src=$e_url\",\n\t\t\"Google\":\"https://docs.google.com/gview?url=$e_url&embedded=true\"\n\t},\n\t\"pdf\": {\n\t\t\"PDF.js\":\"https://alist-org.github.io/pdf.js/web/viewer.html?file=$e_url\"\n\t},\n\t\"epub\": {\n\t\t\"EPUB.js\":\"https://alist-org.github.io/static/epub.js/viewer.html?url=$e_url\"\n\t}\n}",
    "logo": "https://cdn.jsdelivr.net/gh/alist-org/logo@main/logo.svg",
    "main_color": "#1890ff",
    "ocr_api": "https://api.nn.ci/ocr/file/json",
    "package_download": "true",
    "pagination_type": "all",
    "robots_txt": "User-agent: *\nAllow: /",
    "search_index": "none",
    "settings_layout": "responsive",
    "site_title": "AList",
    "sso_login_enabled": "false",
    "sso_login_platform": "",
    "version": "v3.25.1",
    "video_autoplay": "true"
  }
}

返回结果

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

返回数据结构

状态码 200

名称类型必选约束中文名说明
» codeintegertruenone状态码none
» messagestringtruenone信息none
» dataobjecttruenone数据none
»» allow_indexedstringtruenone允许索引none
»» allow_mountedstringtruenone允许挂载none
»» announcementstringtruenone公告none
»» audio_autoplaystringtruenone自动播放音频none
»» audio_coverstringtruenone音频封面none
»» auto_update_indexstringtruenone自动更新索引none
»» default_page_sizestringtruenone默认分页数none
»» external_previewsstringtruenone外部预览none
»» faviconstringtruenone网站图标none
»» filename_char_mappingstringtruenonenone
»» forward_direct_link_paramsstringtruenonenone
»» hide_filesstringtruenone隐藏文件none
»» home_containerstringtruenone主页容器none
»» home_iconstringtruenone主页图标none
»» iframe_previewsstringtruenoneiframe预览设置none
»» logostringtruenonelogonone
»» main_colorstringtruenone主题颜色none
»» ocr_apistringtruenonepcr接口none
»» package_downloadstringtruenone打包下载none
»» pagination_typestringtruenonenone
»» robots_txtstringtruenonerobots文件none
»» search_indexstringtruenonenone
»» settings_layoutstringtruenonenone
»» site_titlestringtruenone站点标题none
»» sso_login_enabledstringtruenone启用sso登录none
»» sso_login_platformstringtruenonesso登录平台none
»» versionstringtruenone版本none
»» video_autoplaystringtruenone视频自动播放none