Skip to main content

OpenAPI (fka Swagger) spec renderer for Sphinx

Project description

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.

pip install sphinxcontrib-openapi

Usage

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

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

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

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

sphinxcontrib-openapi-0.2.0.tar.gz (7.9 kB view details)

Uploaded Source

File details

Details for the file sphinxcontrib-openapi-0.2.0.tar.gz.

File metadata

File hashes

Hashes for sphinxcontrib-openapi-0.2.0.tar.gz
Algorithm Hash digest
SHA256 beb9701d37a55abeb1c4e65cc12ddb8ae6f53a142068779f3680d8af32c0fafb
MD5 547cb5494a4b392452885772271cab3b
BLAKE2b-256 a37bc775976700bc7af7c81057c896394207c39984e4dd2f9feee749157b447f

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page