- python 3.6
- Flask
- Tornado
- connexion
- OpenAPI
This application uses Zalando's connexion to make a Flask web app based on Swagger/OpenAPI .
url: https://github.com/zalando/connexion
Advantages:
- simplify the development process
- confirm expectations about what your API will look like
- Keeps Api documentation up to date
- Client code can be generated
- $ pipenv install --dev && pipenv shell
- $ python app.py
Open UI for swagger
from the application root directory
-
docker build -t connexionexampleapp .
-
docker run -d -p 8080:8080 connexionexampleapp
-
On linux application should be available on localhost
-
On Mac look for the ip address generated by Docker & use that
To use the api to detect ip address and return PM10 values
To pass ipv6 address as parameter to get corresponding PM10 values http://localhost:8080/getpm10values/
example