Giter Site home page Giter Site logo

assem-ch / django-swagger-ui Goto Github PK

View Code? Open in Web Editor NEW
26.0 4.0 9.0 173 KB

Django swagger UI is a viewer for Swagger YAML files as html.

License: BSD 3-Clause "New" or "Revised" License

Python 40.24% HTML 59.76%
django swagger swagger-ui api-documentation-tool

django-swagger-ui's Introduction

Django Swagger UI

Django swagger UI is a viewer for Swagger YAML files as html. based on swagger-yaml-to-html.py.

Quick start

  1. Install the lib:

    pip install django-swagger-ui

  2. Add "swagger_ui" to your INSTALLED_APPS setting like this:

    INSTALLED_APPS = [
        ...
        'swagger_ui',
        ...
    ]
  3. Include the swagger ui URLconf in your project urls.py like this:

    path('', include('swagger_ui.urls')),
  4. Add this variable SWAGGER_YAML_FILE to settings.py pointing to your YAML file
  5. You will find the swagger api documentation in /api-doc/.

image

django-swagger-ui's People

Contributors

assem-ch avatar sousatg avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

django-swagger-ui's Issues

External refs not working

Whenever I define ref like this $ref: "./test.yaml#/definitions/TestSchema" I am getting this error message:

Could not resolve reference: Tried to resolve a relative URL, without having a basePath. path: './test.yaml' basePath: 'undefined'

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.