获取站点可用模版列表

基本信息

接口名称: 获取站点可用模板列表

接口类型: 数据获取

接口说明: 获取某个站点下的可用模板列表

详细信息

URL

https://www.baklib.com/api/v1/global_layouts/tenants

完整URL示例

https://www.baklib.com/api/v1/global_layouts/tenants

HTTP请求方式

GET

授权认证方式

默认方式,需要添加请求header

Authorization: Bearer <token>

请求参数

示例代码



var xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener("readystatechange", function() {
  if(this.readyState === 4) {
    console.log(this.responseText);
  }
});

xhr.open("GET", "https://www.baklib.com/api/v1/global_layouts/tenants");
xhr.setRequestHeader("Authorization", "Bearer 8486df9cb8a93ea843702141065c4a8b714602b45e7c4a6bb26a26ea3d69de6");


xhr.send();

返回结果

{
    "code": 0,
    "status": "success",
    "message": [
        {
            "id": "7a49be3d-2625-413f-a771-f0a7d329344d",
            "name": "轩墨成书",
            "description": "轩墨成书是一个适用于写个人、企业文档的简约主题模板。",
            "kind": "knowledge-base",
            "version": "2.0.38"
        },
        {
            "id": "181b5d14-7107-4c8d-9dde-ac73f5b060bf",
            "name": "一纸华章",
            "description": "这是一个时尚的模板",
            "kind": "knowledge-base",
            "version": "2.1.20"
        },
        {
            "id": "d4c98ced-2cb5-4131-a03b-99c5ecbdea38",
            "name": "初遇如梦",
            "description": "这是一个时尚的模板",
            "kind": "help-center",
            "version": "2.1.30"
        },
        {
            "id": "f33f62d7-c039-40e5-ae95-e78b21bc274d",
            "name": "一笔掠影",
            "description": "一笔掠影适用于栏目不复杂,文章内容较少的FAQ主题,采用类栏目-文章一页化的展示方式,使你的网站看起来结构紧凑,清晰。",
            "kind": "faq-document",
            "version": "2.1.24"
        },
        {
            "id": "1e77bb7b-bdb2-4116-8b1a-f2480303ed01",
            "name": "清风拂柳",
            "description": "清风拂柳主题站点的特点是非常易于导航和文章管理,所见即所得的展示效果让用户很快就找到相关内容,在一个界面即展示了站点的栏目分类、文章列表、文章详情和内联导航,适用于制作产品手册,使用帮助,团队知识博客。",
            "kind": "help-center",
            "version": "2.1.34"
        },
        {
            "id": "3a45ba8a-4c83-4787-8170-dcea513ad07a",
            "name": "时日年华",
            "description": "这是一个时尚的模板",
            "kind": "product-document",
            "version": "2.1.20"
        },
        {
            "id": "84f941a9-bdd6-496a-a84e-777f0eb6e886",
            "name": "一页成书",
            "description": "一页成书是一个适用于内容简介,快速答疑的FAQ,让您的产品给客户提供更好的在线帮助。",
            "kind": "faq-document",
            "version": "2.1.24"
        },
        {
            "id": "4af66f23-ec97-4b72-8f1c-9c6a9e309863",
            "name": "默听花语",
            "description": "这是一个时尚的模板",
            "kind": "help-center",
            "version": "2.2.21"
        },
        {
            "id": "23e8cdb5-12c1-425a-baac-30694cfd1b4b",
            "name": "外星天地",
            "description": "这是一个时尚的模板",
            "kind": "product-document",
            "version": "2.1.13"
        },
        {
            "id": "0059c3fb-45c7-472e-abfd-ef7588a84274",
            "name": "速览FAQs",
            "description": "多条目多栏目的FAQs快速展示。",
            "kind": "faq-document",
            "version": "1.1.22"
        },
        {
            "id": "055d3996-f8d2-49d7-b03f-2a1a804ffde9",
            "name": "Help_how",
            "description": "help_how是一个适用于突出回答最热门的部分问题、同时又突出栏目展现,让客户尽快找到合适的解决方案的模板。",
            "kind": "knowledge-base",
            "version": "1.1.25"
        },
        {
            "id": "ad46f1b7-dabc-4d93-9041-00f9f07cce21",
            "name": "Baklib官网",
            "description": "这是一个CMS独立官网,用于展示Baklib所有官网内容。",
            "kind": "private-site",
            "version": "1.4.26"
        },
        {
            "id": "1a5524b1-dd47-4348-ba1e-a22673325bf3",
            "name": "Show Your Blog",
            "description": "展示丰富多彩图片、文字的博客,记录美好的时刻",
            "kind": "product-document",
            "version": "1.0.31"
        },
        {
            "id": "2810461c-c06e-4b8b-a289-70558ea3328f",
            "name": "畅读",
            "description": "畅读知识库是一个适用于栏目结构复杂,文章较多的知识管理主题模板",
            "kind": "knowledge-base",
            "version": "0.1.6"
        },
        {
            "id": "9b95f3e5-d39e-4d74-8a8e-f47d4c44f3a1",
            "name": "Bakq",
            "description": "BakQ 是一款通用的Guide指引类教程文档主题,适合用户采用一二级分类方式组织内容,并一个列表形式呈现给用户,极简且美观大方。",
            "kind": "faq-document",
            "version": "2.1.26"
        },
        {
            "id": "b8e5625c-acf2-4c60-bb2b-1772a5df9411",
            "name": "Guide-Leap",
            "description": "Leap Guide 是一个漂亮的大图背景的产品手册、引导教程类主题。大图彰显品牌形象,强化搜索功能,页面支持阅读进度和社交媒体分享。",
            "kind": "knowledge-base",
            "version": "1.1.21"
        },
        {
            "id": "0cf9d4f8-111b-4741-8562-c3ae1da0a511",
            "name": "KB-API字典文档库",
            "description": "字典文档知识库是一个适用于内容简短大事节点众多的检索类、解释类文档知识管理主题模板",
            "kind": "knowledge-base",
            "version": "1.1.21"
        },
        {
            "id": "d0a0218a-71e1-4e50-97cc-d208736bf984",
            "name": "KB-Leap",
            "description": "类似Guide-leap, KB Leap是一个通用的文档手册主题,采用左侧文档导航,右侧内容展示的方式呈现内容,方便用户在一个界面寻找到所有需要的功能;适用于开发技术文档,用户操作手册,员工知识培训等",
            "kind": "knowledge-base",
            "version": "1.1.20"
        },
        {
            "id": "08d57954-834b-4d52-8ad7-6c97c84193c2",
            "name": "云雀知识库",
            "description": "云雀知识库是一个适用于栏目结构复杂,文章较多的知识管理主题模板",
            "kind": "knowledge-base",
            "version": "1.0.6"
        },
        {
            "id": "c07412e2-b695-41ca-8ce7-724c7a579b56",
            "name": "help-scout",
            "description": "建议采用图文并茂的方式呈现内容,便于使用者和访问者更好的查阅。",
            "kind": "product-document",
            "version": "1.1.63"
        },
        {
            "id": "cadc8e02-7c96-4e05-9cd5-e3dbe9936c23",
            "name": "轩墨成书-EEO定制",
            "description": "清风拂柳主题站点的特点是非常易于导航和文章管理,所见即所得的展示效果让用户很快就找到相关内容,在一个界面即展示了站点的栏目分类、文章列表、文章详情和内联导航,适用于制作产品手册,使用帮助,团队知识博客。",
            "kind": "help-center",
            "version": "1.0.12"
        },
        {
            "id": "e5a0f411-d2f7-4679-a000-9d7ab71d7f98",
            "name": "威步信息--定制",
            "description": "威步信息定制主题模板。",
            "kind": "knowledge-base",
            "version": "1.0.22"
        },
        {
            "id": "f1afeeb2-70dd-44c7-8ad8-b1c3d9890e5a",
            "name": "help-scout-gjp",
            "description": "适合有很多一级栏目数量不多,但是二级栏目繁多的页面",
            "kind": "product-document",
            "version": "1.0.15"
        },
        {
            "id": "ee01ece0-256b-4331-8f9d-5b34055cbb22",
            "name": "help-scout-aifanfan",
            "description": "适合有很多一级栏目数量不多,但是二级栏目繁多的页面",
            "kind": "product-document",
            "version": "1.0.4"
        },
        {
            "id": "971f5e17-a294-4a74-ab78-1c9db6eb584b",
            "name": "初遇如梦-eeo定制",
            "description": "eeo定制版",
            "kind": "help-center",
            "version": "1.0.9"
        },
        {
            "id": "ff1ac968-4a56-482f-9a3c-966586d45884",
            "name": "help-scout(高驰运动)",
            "description": "高驰运动的定制模板",
            "kind": "product-document",
            "version": "1.0.3"
        },
        {
            "id": "aa951642-3601-4a6e-8ab6-51576c244345",
            "name": "优特云定制",
            "description": "定制模板",
            "kind": "help-center",
            "version": "1.0.9"
        },
        {
            "id": "b5102085-a8e5-428a-aea9-7c76e144b247",
            "name": "lanhu",
            "description": "这是蓝湖模板",
            "kind": "product-document",
            "version": "1.0.17"
        },
        {
            "id": "22b94698-6481-4ae8-ba33-5153191207e5",
            "name": "tailwords",
            "description": "适合企业/团队制作产品手册和聚合类帮助文档。",
            "kind": "product-document",
            "version": "1.0.14"
        },
        {
            "id": "2a4dfcc0-0453-4da4-9ba8-e36b8050b8d7",
            "name": "help-scout(玩物得志)",
            "description": "wanwudezhi.com的定制模板",
            "kind": "product-document",
            "version": "1.0.4"
        },
        {
            "id": "1a7c58fc-ce7e-4e37-baa2-1c5461b9bd39",
            "name": "tailwords_huobanyun",
            "description": "伙伴云私有模板",
            "kind": "product-document",
            "version": "1.0.3"
        },
        {
            "id": "ca739e01-901c-493c-9138-531943d58985",
            "name": "tailwords(上直播定制)",
            "description": "这是一个tailwind模板",
            "kind": "product-document",
            "version": "1.0.2"
        },
        {
            "id": "c3b64cca-14e1-4128-a2ff-dcbcd9dfb05c",
            "name": "wulianyichong",
            "description": "这是物联易冲的定制模板",
            "kind": "product-document",
            "version": "1.0.11"
        }
    ]
}

返回字段说明

返回值字段 字段类型 说明
code Integer 状态码
status String 返回状态
message Array[String] 返回数据主体
    id String 模板id
    name String 模板名称
    description String 模板描述
    kind String 模板类型
    version String 版本号
2022-11-18
0 0