sphinxcontrib-swaggersphinx

Convert swagger JSON files to tables in Sphinx


Keywords
sphinx, swagger, documentation
License
MIT
Install
pip install sphinxcontrib-swaggersphinx==0.1.0

Documentation

sphinxcontrib-swaggersphinx

A Sphinx extension for documenting Swagger APIs.

pip install sphinxcontrib-swaggersphinx

Requirements

  • python >= 3.3

Installation

This package can be installed using pip:

pip install sphinxcontrib-swaggersphinx

Usage

Include this an extension in your Sphinx conf.py:

extensions = ['sphinxcontrib.swaggersphinx']

Then you can use it in your .rst files to include Swagger documentation:

.. swaggersphinx:: /path/to/swagger.json

You can include local files (relative to the .rst), local files (full path), or URLs:

.. swaggersphinx:: /full/path/swagger.json

.. swaggersphinx:: relative/swagger.json

.. swaggersphinx:: http://localhost/api/swagger.json