Extensions

List extensions (packages, plugins, modules) installed on your sites via the API

List all extensions

GET /extensions

curl -X GET https://app.1pilot.io/api/v1/extensions \
    -H "Accept: application/json" \
    -H "Authorization: Bearer $TOKEN"
Headers
Authorization Bearer $TOKEN
Accept application/json

Responses

HTTP 200 Your sites' extensions.
{
    "data": [
        {
            "id": 6,
            "site_id": 1,
            "name": "Download Manager",
            "code": "Inetis.DownloadManager",
            "type": "plugin",
            "version": "1.0.5",
            "new_version": null,
            "changelog": null,
            "created_at": "2018-01-31T14:45:41+00:00",
            "updated_at": "2019-02-01T14:54:45+00:00"
        },
        {
            "id": 11,
            "site_id": 1,
            "name": "Drivers",
            "code": "October.Drivers",
            "type": "plugin",
            "version": "1.1.2",
            "new_version": null,
            "changelog": null,
            "created_at": "2018-02-02T07:37:25+00:00",
            "updated_at": "2019-02-01T14:54:45+00:00"
        },
        {
            "id": 41,
            "site_id": 7,
            "name": "Blog",
            "code": "RainLab.Blog",
            "type": "plugin",
            "version": "1.3.1",
            "new_version": null,
            "changelog": null,
            "created_at": "2018-02-14T14:39:20+00:00",
            "updated_at": "2018-10-31T14:12:50+00:00"
        },
        [...]
    ],
    "links": {
        "first": "https://app.1pilot.io/api/v1/extensions?page=1",
        "last": "https://app.1pilot.io/api/v1/extensions?page=98",
        "prev": null,
        "next": "https://app.1pilot.io/api/v1/extensions?page=2"
    },
    "meta": {
        "current_page": 1,
        "from": 1,
        "last_page": 98,
        "path": "https://app.1pilot.io/api/v1/extensions",
        "per_page": 15,
        "to": 15,
        "total": 1469
    }
}

List extensions of one site

GET /sites/:id/extensions

curl -X GET https://app.1pilot.io/api/v1/sites/$ID/extensions \
    -H "Accept: application/json" \
    -H "Authorization: Bearer $TOKEN"
Headers
Authorization Bearer $TOKEN
Accept application/json

Responses

HTTP 200 Your site's extensions.
{
    "data": [
        {
            "id": 6,
            "site_id": 1,
            "name": "Download Manager",
            "code": "Inetis.DownloadManager",
            "type": "plugin",
            "version": "1.0.5",
            "new_version": null,
            "changelog": null,
            "created_at": "2018-01-31T14:45:41+00:00",
            "updated_at": "2019-02-01T14:54:45+00:00"
        },
        {
            "id": 8,
            "site_id": 1,
            "name": "October Demo",
            "code": "October.Demo",
            "type": "plugin",
            "version": "1.0.1",
            "new_version": null,
            "changelog": null,
            "created_at": "2018-02-02T07:37:25+00:00",
            "updated_at": "2019-02-01T14:54:45+00:00"
        },
        {
            "id": 10,
            "site_id": 1,
            "name": "Clear Cache",
            "code": "Romanov.ClearCacheWidget",
            "type": "plugin",
            "version": "1.2.5",
            "new_version": null,
            "changelog": null,
            "created_at": "2018-02-02T07:37:25+00:00",
            "updated_at": "2019-02-01T14:54:45+00:00"
        },
        [...]
    ],
    "links": {
        "first": "https://app.1pilot.io/api/v1/sites/1/extensions?page=1",
        "last": "https://app.1pilot.io/api/v1/sites/1/extensions?page=1",
        "prev": null,
        "next": null
    },
    "meta": {
        "current_page": 1,
        "from": 1,
        "last_page": 1,
        "path": "https://app.1pilot.io/api/v1/sites/1/extensions",
        "per_page": 15,
        "to": 11,
        "total": 11
    }
}