Liste des projets

GET /api/v1/projects

Retourne une liste des projets basée sur les critères donnés.

Paramètres de requête :

Nom

Type de Données

Description

categories

Liste d’Entiers Séparée par des Virgules

Filtre les projets par catégorie (inclus).

sort

Entier

Trie les projets par une méthode donnée.

q

String

Requête de recherche. Vérifie le nom, l’auteur et la description.

limit

Entier

Limite le nombre de projets retournés (max / défaut : 25).

offset

Entier

Supprime les premiers n projets de la liste résultante.

Exemple de sortie :

[{
    "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
}]