列出專案版本

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

根據給定的條件回傳給定的插件 ID 專案的版本清單。

查詢參數:

名稱

資料型態

說明

channels

以逗號分隔的字串列表

依頻道過濾版本(包含)。

limit

整數

限制回傳的版本數量(最大/預設:10)。

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
}]