Flasgger is a Flask extension to extract OpenAPI-Specification from all Flask views registered in your API. Flasgger also comes with SwaggerUI embedded so you can access it and visualize and interact with your API resources. Flasgger also provides validation of the incoming data, using the same specification it can validate if the data received as a POST, PUT, PATCH is valid against the schema defined using YAML, Python dictionaries or Marshmallow Schemas. Flasgger can work with simple function views or MethodViews using docstring as specification, or using @swag_from decorator to get specification from YAML or dict and also provides SwaggerView which can use Marshmallow Schemas as specification. Flasgger is compatible with Flask-RESTful so you can use Resources and swag specifications together, take a look at the restful example. Flasgger also supports Marshmallow APISpec as base template for specification.

Features

  • Auto-parse external YAML docs and MethodViews
  • Handle multiple http methods and routes for a single function
  • Use docstrings as specification
  • Use dictionaries as raw specs
  • Use Flask RESTful Resources
  • Use the same data to validate your API POST body

Project Samples

Project Activity

See All Activity >

License

MIT License

Follow Flasgger

Flasgger Web Site

Other Useful Business Software
All-in-One Inspection Software Icon
All-in-One Inspection Software

flowdit is a connected worker platform tailored for industry needs in commissioning, quality, maintenance, and EHS management.

Optimize Frontline Operations: Elevate Equipment Uptime, Operational Excellence, and Safety with Connected Teams and Data, Including Issue Capture and Corrective Action.
Learn More
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of Flasgger!

Additional Project Details

Programming Language

Python

Related Categories

Python Software Development Software, Python User Interface (UI) Software

Registered

2022-03-16