Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/kylef/swiftenv-api
- Owner: kylef
- License: bsd-2-clause
- Created: 2016-05-24T03:43:27.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2023-05-01T21:36:53.000Z (over 1 year ago)
- Last Synced: 2025-01-11T01:58:25.389Z (15 days ago)
- Language: Python
- Homepage: https://swiftenv-api.fuller.li/
- Size: 1.24 MB
- Stars: 25
- Watchers: 5
- Forks: 9
- Open Issues: 12
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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
```