Skip to content

Yakiyo/dinx

Repository files navigation

dinx

CI

An index for the dart sdk versions.

This is mainly made for use in dsm, a version manager for the dart sdk. It scrapes google's storage api somewhat to get all available versions.

Endpoints

Every endpoint returns json content. The result is contained within the body field. That is, all results are

{
    "body": // the actual result
}

The type of the actual result depends on the endpoint used.

If there is any error, an error key is provided.

{
    "error": "error message"
}

/versions/all

Returns all version

Type: Map<string, string[]>

{
    "body": [
        "1.0.0",
        "1.1.0",
        ...
    ]
}

/versions/map

Returns all versions, but instead of all versions merged in an array, they are each separated by their channels Type: Map<string, Map<string, string[]>>

{
    "body": {
        "stable": [
            "1.0.0",
            "1.1.0",
            ...
        ],
        "beta": [
            "1.0.0-1.2.beta",
            "1.1.0-2.1.beta",
            ...
        ],
        "dev": [
            "1.0.0-1.0.dev",
            "1.1.0-2.6.dev",
            ...
        ],
    }
}

/versions/{channel}

Returns all versions of a specific channel. This will return an error if channel is invalid (not one of stable, beta, dev)

Type: Map<string, string[]>

{
    "body": [
        "1.0.0",
        "1.0.1",
        ...
    ]
}

versions/latest/{channel}

Returns info about the latest version of a specific channel. If channel is not provided, it defaults to stable. If provided, it must be valid, otherwise returns an error. Type: Map<string, Map<string, string>

{
    "body": {
        "date": "string",
        "revision": "string",
        "version": "string",
        "channel": "string",
    }
}

For any queries or bugs, please open a new issue

Author

dinx © Yakiyo. Authored and maintained by Yakiyo.

Released under MIT License

Releases

No releases published

Packages

No packages published