kevinmmartins / python-flask-connexion-example-openapi3

Basic REST project with Flask , Connexion by Zalando , OpenApi3, Docker and tox

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Basic project with Flask , Connexion and OpenApi 3

Build Status

Basic Python project using Flask and Connexion by Zalando

https://github.com/zalando/connexion

Requirements

  • Docker Compose 1.21.2+
  • Python 3.6 +

Run with Docker Compose

# building the container
sudo docker-compose build

# starting up a container
sudo docker-compose up

Build the virtual environment

virtualenv -p /usr/bin/python3.6 venv
source venv/bin/activate
pip3 install -r requirements.txt
pip3 install -r test-requirements.txt

Swagger definition

http://localhost:8081/v1/swagger.json

Health Check

http://localhost:8081/v1/basic/ping

Launch tests

source venv/bin/activate
tox

About

Basic REST project with Flask , Connexion by Zalando , OpenApi3, Docker and tox

License:Apache License 2.0


Languages

Language:Python 89.7%Language:Dockerfile 10.3%