kylef / swiftenv-api

API for swiftenv to return the available versions of Swift

Home Page:https://swiftenv-api.fuller.li/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

API for swiftenv to return the available versions of Swift

https://swiftenv-api.fuller.li/

License:BSD 2-Clause "Simplified" License


Languages

Language:Python 99.7%Language:Procfile 0.3%