GithubHelp home page GithubHelp logo

jcbalmeida / django-rest-swagger Goto Github PK

View Code? Open in Web Editor NEW

This project forked from marcgibbons/django-rest-swagger

0.0 2.0 0.0 6.1 MB

Swagger Documentation Generator for Django REST Framework

Home Page: https://django-rest-swagger.readthedocs.io/

License: BSD 2-Clause "Simplified" License

Python 39.15% CSS 6.89% HTML 1.81% JavaScript 52.16%

django-rest-swagger's Introduction

Django REST Swagger

build-status-badge pypi-version license-badge docs-badge

####An API documentation generator for Swagger UI and Django REST Framework

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.

Quick start

  1. pip install django-rest-swagger

  2. Add rest_framework_swagger to your INSTALLED_APPS setting:

        INSTALLED_APPS = (
            ...
            'rest_framework_swagger',
        )
  3. Include the rest_framework_swagger URLs to a path of your choice

    patterns = ('',
        ...
        url(r'^docs/', include('rest_framework_swagger.urls')),
    )

for more information, see the documentation.

Requirements

  • Python (2.7, 3.3, 3.4, 3.5)
  • Django (1.8)
  • Django REST framework (2.3.8+)
  • PyYAML (3.10+)

Bugs & Contributions

Please report bugs by opening an issue

Contributions are welcome and are encouraged!

Special Thanks

Thanks to BNOTIONS for sponsoring initial development time.

Many thanks to Tom Christie & all the contributors who have developed Django REST Framework

Contributors

  • 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

Django REST Framework Docs contributors:

  • Scott Mountenay (@scottmx81)
  • @swistakm
  • Peter Baumgartner (@ipmb)
  • Marlon Bailey (@avinash240)

django-rest-swagger's People

Contributors

ariovistus avatar bakuutin avatar boekkooi avatar bradwhittington avatar cwirz avatar dmitry-krasilnikov avatar dnozay avatar duduklein avatar geraldoandradee avatar igorpejic avatar jaschilz avatar jasonpstewart avatar joneschi avatar jwilhelm-godaddy avatar luis-kaufmann avatar lukas-hetzenecker avatar marcgibbons avatar maryokhin avatar mrtam avatar mverteuil avatar nourspace avatar peleccom avatar pysilver avatar pzrq avatar respondcreate avatar rodcarroll avatar teeberg avatar ticosax avatar whit avatar zenoamaro avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.