Skip to content

donofden/python-flask-auto-generated-swagger-doc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

python-flask-auto-generated-swagger-doc

Python Flask automatically generated Swagger 2.0 / 3.0 / openapi documents

How to use it!

Python Flask automatically generated Swagger 2.0 Document

Blog to Read: Swagger 2.0 Document

To install flask:

pip install flask

To install flask-restx:

pip install flask-restx

To Run:

python swagger_2.py

Flask will start and access the endpoint http://localhost:5000/swagger will generate yamldoc.yml.

Python Flask automatically generated Swagger 3.0/Openapi Document

Blog to Read: Swagger 3.0/Openapi Document

To install flask:

pip install flask

To install apispec:

pip install -U apispec

To install with YAML support:

pip install -U 'apispec[yaml]'

To Run:

python swagger_3.py

check the generated doc swagger_3.json

About

Python Flask automatically generated Swagger 2.0 / 3.0 / openapi documents

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages