https://github.com/yakiyo/dinx
An index for dart sdk versions
https://github.com/yakiyo/dinx
dart dart-sdk index rest-api
Last synced: about 1 month ago
JSON representation
An index for dart sdk versions
- Host: GitHub
- URL: https://github.com/yakiyo/dinx
- Owner: Yakiyo
- License: mit
- Created: 2023-07-30T05:11:43.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2024-04-12T01:04:03.000Z (about 2 years ago)
- Last Synced: 2024-04-12T09:01:43.756Z (about 2 years ago)
- Topics: dart, dart-sdk, index, rest-api
- Language: Go
- Homepage: https://dinx.onrender.com/
- Size: 96.7 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# dinx
[](https://github.com/Yakiyo/dinx/actions/workflows/ci.yml)
An index for the dart sdk versions.
This is mainly made for use in [dsm](https://github.com/Yakiyo/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
```json
{
"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.
```json
{
"error": "error message"
}
```
## `/versions/all`
Returns all version
Type: `Map`
```json
{
"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>`
```json
{
"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`
```json
{
"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`
```json
{
"body": {
"date": "string",
"revision": "string",
"version": "string",
"channel": "string",
}
}
```
For any queries or bugs, please open a new [issue](https://github.com/Yakiyo/dinx/issues)
## Author
**dinx** © [Yakiyo](https://github.com/Yakiyo). Authored and maintained by Yakiyo.
Released under [MIT](https://opensource.org/licenses/MIT) License