Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/kylef/swiftenv-api

API for swiftenv to return the available versions of Swift
https://github.com/kylef/swiftenv-api

Last synced: 14 days ago
JSON representation

API for swiftenv to return the available versions of Swift

Awesome Lists containing this project

README

        

# Swift Version API

API for [swiftenv](https://swiftenv.fuller.li/) to return the available
versions of Swift.

An instance of the API is deployed at https://swiftenv-api.fuller.li/.

## Versions [/versions{snapshots,platform}]

Returns the available versions of Swift.

+ Parameters
+ snapshots: false (boolean) - Used to filter for snapshot versions.
+ platform: osx - Filter for versions that have binary releases for the given platform.

+ Response 200 (text/plain)

2.2
2.2.1

## Development Environment

You can configure a development environment with the following:

**NOTE**: *These steps assume you have Python 3.6 (or newer) installed.*

```bash
$ python3 -m venv venv
$ source venv/bin/activate
$ pip install -r requirements.txt
$ pip install -r dev-requirements.txt
```

### Running the tests

```shell
$ python -m unittest
```

### Running the development server

```shell
$ python api.py
```

### Updating versions

```shell
$ python extract.py
```