Skip to content
This repository has been archived by the owner on Sep 15, 2021. It is now read-only.

Latest commit

 

History

History
97 lines (78 loc) · 2.31 KB

api.md

File metadata and controls

97 lines (78 loc) · 2.31 KB

GET /departments

Description

返回各个分部门的图片信息。

Response

返回格式为 JSON,参考以下示例:

{
    "data": [
        {
            "name": "Backend",
            "grades": [
                {
                    "name": "20",
                    "students": [
                        {
                            "name": "吴昊达",
                            "avatar": "114514",
                            "stickers": [
                                {
                                    "desc": "我是霸道总裁",
                                    "url": "/static/Backend/20/吴昊达/我是霸道总裁.jpeg"
                                },
                            ]
                        }
                        /* ... */
                    ]
                },
                /* ... */
            ]
        },
        /* ... */
    ]
}

GET /multiple

Description

返回图片中同时含有多人对话的所有图片。

Response

返回格式为 JSON,author 一般采用缩写(顺便整活儿),参考一下示例:

{
    "data": [
        /* ... */
        {
            // 冯宇祥,黄凯升,吴昊达
            "author": "冯凯达",
            "decs": "发生甚么事了-是我想你了",
            "url": "/static/other/冯凯达-发生甚么事了-我想你了.jpg"
        }, {
            // 郭祥瑞,王兮
            "author": "祥兮",
            "decs": "只要你想 你也可以成为学姐-我一直在想",
            "url": "/static/other/祥兮-只要你想%20你也可以成为学姐-我一直在想.jpg"
        }, {
            // 黄凯升,路明瑞
            "author": "黄瑞",
            "decs": "🏳️‍🌈 🏳️‍⚧️ LGBTQ LIVES MATTER!",
            "url": "/static/other/黄瑞-🏳️‍🌈%20🏳️‍⚧️%20LGBTQ%20LIVES%20MATTER!.jpg"
        }
    ]
}

GET /popular

Description

返回最近的热门图片。

Response

返回格式为 JSON 如下:

{
    "data": [
        {
            "author": "倪秦宇",
            "desc": "现在加入红岩变性计划,还可享受八折优惠",
            "url": "/static/Frontend/20/倪秦宇/现在加入红岩变性计划,还可享受八折优惠.jpg"
        }
    ]
}