####An API documentation generator for Swagger UI and Django REST Framework version > 2.3.5
Documentation: http://django-rest-swagger.readthedocs.org/
This project is built on the Django REST Framework Docs and uses the lovely Swagger from Wordnik as an interface. This application introspectively generates documentation based on your Django REST Framework API code. Comments are generated in combination from code analysis and comment extraction. Here are some of the features that are documented:
- API title - taken from the class name
- Methods allowed
- Serializers & fields in use by a certain method
- Field default values, minimum, maximum, read-only and required attributes
- URL parameters (ie. /product/{id})
- Field
help_text
property is used to create the description from the serializer or model.
Please report bugs by opening an issue
Contributions are welcome and are encouraged!
Thanks to BNOTIONS for sponsoring initial development time.
Many thanks to Tom Christie & all the contributors who have developed Django REST Framework
- Marc Gibbons (@marcgibbons)
- Geraldo Andrade (@quein)
- Vítek Pliska (@whit)
- Falk Schuetzenmeister (@postfalk)
- Lukas Hetzenecker (@lukas-hetzenecker)
- David Wolever (@wolever)
- Brian Moe (@bmoe)
- Ian Martin (@aztechian)
- @pzrq
- @jfelectron
- Warnar Boekkooi (@boekkooi)
- Darren Thompson (@WhiteDawn)
- Lukasz Balcerzak (@lukaszb)
- David Newgas (@davidn)
- Bozidar Benko (@bbenko)
- @pySilver
- Scott Mountenay (@scottmx81)
- @swistakm
- Peter Baumgartner (@ipmb)
- Marlon Bailey (@avinash240)
- add readthedocs based documentation
- add request and response serializer spec to yaml
- preserve order of fields in serializers
- support nested serializers
- Added YAML Parser to docstring handling
- Fixed Python 3 bugs
- Fixed resource name truncation bug
- Fixed grouping bug
- Improved resource grouping
- Alphabetical sorting of resources
- Fixed CSRF headers
- Misc bug fixes & improvements
- Added proper unicode support for Python 2
- Compatibility fixes for Python 3
- Changed settings template var to avoid naming conflicts
- Fixed mapping dict constructor in introspectors for Python 2.6 support
- Upgraded Swagger UI version
- Now supports Django ViewSet method-level documentation
- Now supports ViewSet @action & @link method implementation
- Added blank HttpRequest to the callback for those who like to hack the get_serializer classes
- HTML Markdown supported in docstrings (use responsibly)
- Revisited doc algorithm
- Added support for APPEND_SLASH = False
- Fixed broken imports - Now supports DRF 2.3.8
- Added description on the model field
- URL flattening fixes
- API root prefix fix
- Improvments and bug fixes with relative imports in Python 3
- throbber.gif image is being pointed to local copy
- Added permission settings for Swagger docs. Default is now allow any, which will override REST Framework settings
- Fixed throbber.gif URL in the swagger-ui.min.js to point to Wordnik's resource