CMF APIs # Get Slides - euler-projects/euler-framework GitHub Wiki

按图片类型获取图片

接口地址

GET cms/slide/type/{type}
参数名称 参数类型 参数说明 是否必填 默认值
type string 图片类型

接口响应

[
    {
        "id": "47ffe8c4-d9f3-4ada-8fe2-f7f39e86a94b",
        "type": "index_slides",
        "locale": "en_US",
        "title": "图片一标题",
        "fileId": "359fa58a-1442-4fc3-8d1b-82bfff354cd1",
        "uri": "https://eulerproject.io",
        "description": "图片一描述",
        "content": "图片一内容",
        "order": 0
    },
    {
        "id": "8a9811f6-85f9-4c3a-807e-75f583eed65b",
        "type": "index_slides",
        "locale": "en_US",
        "title": "图片二标题",
        "fileId": "359fa58a-1442-4fc3-8d1b-82bfff354cd1",
        "uri": "https://cfrost.net",
        "description": "图片二描述",
        "content": "图片二内容",
        "order": 1
    },
    {
        "id": "bb4f7194-3a80-4a9b-9f48-a0aa137f6908",
        "type": "index_slides",
        "locale": "en_US",
        "title": "图片三标题",
        "fileId": "359fa58a-1442-4fc3-8d1b-82bfff354cd1",
        "uri": "https://baidu.com",
        "description": "图片三描述",
        "content": "图片三内容",
        "order": 2
    }
]
字段名称 字段类型 字段说明
id string 图片ID
type string 图片类型
locale string 语言
title string 标题
fileId string 图片文件ID
uri string 链接
description string 描述
content string 内容
order int 顺序