Sphinx Contrib Openapi Save

OpenAPI (fka Swagger) spec renderer for Sphinx.

Project README

===================== sphinxcontrib-openapi

sphinxcontrib-openapi is a Sphinx_ extension to generate APIs docs from OpenAPI_ (fka Swagger) spec. It depends on sphinxcontrib-httpdomain_ that provides an HTTP domain for describing RESTful HTTP APIs, so we don't need to reinvent the wheel.

.. code:: bash

$ python3 -m pip install sphinxcontrib-openapi

Usage

Pass sphinxcontrib-openapi to extensions list in Sphinx's conf.py

.. code:: python

extensions = [ ... 'sphinxcontrib.openapi', ]

and feel free to use the openapi directive to render OpenAPI specs

.. code:: restructuredtext

.. openapi:: path/to/openapi.yml

Links

.. _Sphinx: https://www.sphinx-doc.org/en/master/ .. _OpenAPI: https://github.com/OAI/OpenAPI-Specification .. _sphinxcontrib-httpdomain: https://sphinxcontrib-httpdomain.readthedocs.io/

Open Source Agenda is not affiliated with "Sphinx Contrib Openapi" Project. README Source: sphinx-contrib/openapi

Open Source Agenda Badge

Open Source Agenda Rating