Projekte Auflisten

GET /api/v1/projects

Gibt eine Liste von Projekten anhand der angegebenen Kriterien zurück.

Abfrageparameter:

Name Datentyp Beschreibung
categories Kommagetrente Liste an Integern Filtert die Projekte anhand von Kategorien (inklusive).
sort Integer Sortiert anhand der angegeben Methode.
q String Suchanfrage. Testet gegen den Namen, Autoren und die Beschreibung.
limit Integer Begrenzt die Anzahl der zurückgegebenen Projekte (Maximum / Standard: 25).
offset Integer Gibt erst Projekte nach den ersten n Projekten zurück.

Beispielausgabe:

[{
    "pluginId": "griefprevention",
    "createdAt": "2017-01-29 03:28:16.978",
    "name": "GriefPrevention",
    "owner": "blood",
    "description": "This plugin is designed to prevent all forms of grief.",
    "href": "/blood/GriefPrevention",
    "members": [{
        "userId": 26141,
        "name": "blood",
        "roles": ["Owner"],
        "headRole": "Owner"
    }],
    "channels": [{
        "name": "Release",
        "color": "#009600"
    }],
    "recommended": {
        "id": 1277,
        "createdAt": "2018-02-25 22:17:57.018",
        "name": "1.12.2-4.3.0.555",
        "dependencies": [{
            "pluginId": "spongeapi",
            "version": "7.1.0-SNAPSHOT-6aa4e438"
        }],
        "pluginId": "griefprevention",
        "channel": {
            "name": "Release",
            "color": "#009600"
        },
        "fileSize": 919256,
        "md5": "e1a1603f59f6a74edf5ea3ef8183361a",
        "staffApproved": true,
        "href": "/blood/GriefPrevention/versions/1.12.2-4.3.0.555",
        "tags": [{
            "id": 42,
            "name": "Sponge",
            "data": "7.1.0-SNAPSHOT-6aa4e438",
            "backgroundColor": "#F7Cf0D",
            "foregroundColor": "#000000"
        }],
        "downloads": 24,
        "author": "blood"
    },
    "category": {
        "title": "Protection",
        "icon": "fa-lock"
    },
    "views": 4208,
    "downloads": 2727,
    "stars": 30
}, {
    "pluginId": "luckperms",
    "createdAt": "2017-02-01 18:58:17.19",
    "name": "LuckPerms",
    "owner": "Luck",
    "description": "An advanced permissions plugin",
    "href": "/Luck/LuckPerms",
    "members": [{
        "userId": 25904,
        "name": "Luck",
        "roles": ["Owner"],
        "headRole": "Owner"
    }],
    "channels": [{
        "name": "Release",
        "color": "#009600"
    }],
    "recommended": {
        "id": 1275,
        "createdAt": "2018-02-25 14:52:26.889",
        "name": "4.1.7",
        "dependencies": [{
            "pluginId": "spongeapi",
            "version": "6.0.0"
        }],
        "pluginId": "luckperms",
        "channel": {
            "name": "Release",
            "color": "#009600"
        },
        "fileSize": 1319619,
        "md5": "66119f637f0327821169ad2c2545f43d",
        "staffApproved": false,
        "href": "/Luck/LuckPerms/versions/4.1.7",
        "tags": [{
            "id": 10,
            "name": "Sponge",
            "data": "6.0.0",
            "backgroundColor": "#F7Cf0D",
            "foregroundColor": "#000000"
        }],
        "downloads": 35,
        "author": "Luck"
    },
    "category": {
        "title": "Admin Tools",
        "icon": "fa-server"
    },
    "views": 5575,
    "downloads": 1867,
    "stars": 35
}]