Flask Restx api real world example that helps to create scalable rest api with swagger documentation in flask https://github.com/python-restx/flask-restx
$ python3 -m venv venv
$ . venv/bin/activate
$ docker build -t anishdhanka/flask_restx_api -f docker/Dockerfile .
$ docker run -d -p 5000:5000 --name flask_restx_api --restart=always -td anishdhanka/flask_restx_api
$ export PYTHONPATH=$(pwd)
$ pytest .
$ python3 run.py
Swagger api docs
$ curl -i localhost:5000/v1/
$ curl -i localhost:5000/v1/cat/
$ curl -i localhost:5000/v1/cat/1
$ curl -i localhost:5000/v1/dog/
$ curl -i localhost:5000/v1/dog/1