swiftenv-api
swiftenv-api copied to clipboard
API for swiftenv to return the available versions of Swift
Swift Version API
API for swiftenv 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.
$ python3 -m venv venv
$ source venv/bin/activate
$ pip install -r requirements.txt
$ pip install -r dev-requirements.txt
Running the tests
$ python -m unittest
Running the development server
$ python api.py
Updating versions
$ python extract.py