项目版本列表

GET /api/v1/projects/:pluginId/versions

根据给定的项目 ID 及附加条件,返回指定项目的版本列表。

查询参数:

名称

数据类型

说明

channels

以逗号分隔的整数列表

按包含的版本序列(Channel)筛选。

limit

整数

限制返回的项目的量 (最大/默认:25)。

offset

整数

从结果列表中删除前 n 个版本。

示例输出:

[{
    "id": 1226,
    "createdAt": "2018-02-08 18:41:36.917",
    "name": "1.1",
    "dependencies": [{
        "pluginId": "spongeapi",
        "version": "7.1.0"
    }],
    "pluginId": "auction",
    "channel": {
        "name": "Release",
        "color": "#009600"
    },
    "fileSize": 11441,
    "md5": "d169809b0eda0e5d49bc60d5f69f097b",
    "staffApproved": false,
    "href": "/ewoutvs_/Auction/versions/1.1",
    "tags": [{
        "id": 13,
        "name": "Sponge",
        "data": "7.1.0",
        "backgroundColor": "#F7Cf0D",
        "foregroundColor": "#000000"
    }],
    "downloads": 25,
    "author": "ewoutvs_"
},
{
    "id": 1139,
    "createdAt": "2018-01-23 11:08:55.798",
    "name": "1.0",
    "dependencies": [{
        "pluginId": "spongeapi",
        "version": "7.1.0"
    }],
    "pluginId": "auction",
    "channel": {
        "name": "Release",
        "color": "#009600"
    },
    "fileSize": 11266,
    "md5": "2d9896413912a0ba719a9fb624b9ff8e",
    "staffApproved": false,
    "href": "/ewoutvs_/Auction/versions/1.0",
    "tags": [{
        "id": 13,
        "name": "Sponge",
        "data": "7.1.0",
        "backgroundColor": "#F7Cf0D",
        "foregroundColor": "#000000"
    }],
    "downloads": 27
}]