Skip to content

manoveg/connexionexampleapp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Example flask connexion application

Application tech stack

  • python 3.6
  • Flask
  • Tornado
  • connexion
  • OpenAPI

Description

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

Steps to run the application

Running locally

  • $ pipenv install --dev && pipenv shell
  • $ python app.py

Open UI for swagger

http://localhost:8080/ui/

Running with Docker

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

API endpoints

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

About

Example flask application using Zalando's connexion and swagger

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published