Skip to content

riddhi89/simple-flask-project

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 

simple-flask-project

Setup: create a python virtual environment and install the requirements:

virtualenv --python=python3.6 .venv
source .venv/bin/activate
pip install -r requirements.txt

Generate OpenAPI spec from Flask routes:

python generate_openapi_spec.py

View the OpenAPI spec using Swagger-UI:

docker run --rm -p 9000:8080 --name swagger-ui -e SWAGGER_JSON=/api_docs/openapi.json -v $(PWD)/api_docs:/api_docs swaggerapi/swagger-ui

About

Generate OpenAPI spec from Flask routes

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages