Examples

GET https://bonsai.sensu.io/api/v1/assets
{
"start": 0,
"total": 2,
"next": "https://bonsai-asset-index.com/api/v1/assets?start=10",
"assets": [
    {
        "name": "gofullstack/acms-admin-wildcard-redirect",
        "description": "Average CMS Wildcard Admin Redirect WordPress Plugin",
        "url": "https://bonsai-asset-index.com/api/v1/assets/gofullstack/acms-admin-wildcard-redirect",
        "github_url": "https://github.com/gofullstack/acms-admin-wildcard-redirect",
        "download_url": "https://bonsai-asset-index.com/assets/gofullstack/acms-admin-wildcard-redirect/download",
        "builds": []
    },
    {
        "name": "demillir/maruku",
        "description": "A pure-Ruby Markdown-superset interpreter (Official Repo).",
        "url": "https://bonsai-asset-index.com/api/v1/assets/demillir/maruku",
        "github_url": "https://github.com/demillir/maruku",
        "download_url": "https://bonsai-asset-index.com/assets/demillir/maruku/download",
        "versions": [
          "0.1.1-20181030": {
            "assets": [
              {
                "platform": "linux",
                "arch": "x86_64",
                "version": "0.1.1-20181030",
                "asset_sha": "6f2121a6c8690f229e9cb962d8d71f60851684284755d4cdba4e77ef7ba20c03283795c4fccb9d6ac8308b248f2538bf7497d6467de0cf9e9f0814625b4c6f91",
                "asset_url": "http://srv2:3000/f60851684284755d4cdba4e77ef7ba2/test_asset-v0.1-20181030-linux-x86_64.tar.gz",
                "last_modified": "2019-01-01 12:00:00"
              },
              {
                "platform": "alpine",
                "arch": "x86_64",
                "version": "v0.1-20181030",
                "asset_sha": null,
                "asset_url": null,
                "last_modified": null
              }
            ]
          }
        ]
    }
]
}

Params

Param name Description
start
optional

zero-based index of the starting asset (default is 0)

Validations:

  • Must be a Integer

items
optional

zero-based index of the starting asset (default is 10, max is 100)

Validations:

  • Must be a Integer