列出專案

GET /api/projects

根據給定的條件回傳專案列表。

查詢參數:

名稱

資料型態

說明

类目

以逗號分隔的整數列表

依類別(包含)篩選專案。

sort

整數

按給定方法對專案進行排序。

q

字串

搜索查詢。 檢查名稱,作者和描述。

limit

整數

限制回傳的專案數量(最大/預設:25)。

offset

整數

從結果列表中略過前 n 個專案。

範例輸出:

[{
    "pluginId": "ore",
    "createdAt": "2016-11-07 12:26:35.672",
    "name": "Ore",
    "owner": "windy",
    "description": "Official package manager for Sponge.",
    "href": "/windy/Ore",
    "members": [{
        "userId": 6602,
        "name": "windy",
        "roles": ["Owner"],
        "headRole": "Owner"
    }],
    "channels": [{
        "name": "Beta",
        "color": "#B400FF"
    }],
    "recommended": {
        "id": 221,
        "createdAt": "2016-11-07 12:26:35.672",
        "name": "1.0.0",
        "dependencies": [],
        "pluginId": "ore",
        "channel": {
            "name": "Beta",
            "color": "#B400FF"
        },
        "fileSize": 52807
    },
    "category": {
        "title": "Admin Tools",
        "icon": "fa-server"
    },
    "views": 275,
    "downloads": 28,
    "stars": 9
}, {
    "pluginId": "serverlistplus",
    "createdAt": "2016-11-07 12:26:35.672",
    "name": "ServerListPlus",
    "owner": "Minecrell",
    "description": "An extremely customizable server status ping plugin for Minecraft",
    "href": "/Minecrell/ServerListPlus",
    "members": [{
        "userId": 1875,
        "name": "Minecrell",
        "roles": ["Owner"],
        "headRole": "Owner"
    }],
    "channels": [{
        "name": "Release",
        "color": "#009600"
    }],
    "recommended": {
        "id": 231,
        "createdAt": "2016-11-07 12:26:35.672",
        "name": "3.4.7",
        "dependencies": [],
        "pluginId": "serverlistplus",
        "channel": {
            "name": "Release",
            "color": "#009600"
        },
        "fileSize": 397480
    },
    "category": {
        "title": "Admin Tools",
        "icon": "fa-server"
    },
    "views": 60,
    "downloads": 9,
    "stars": 3
}]