Skip to main content

Converter from Swagger JSON to Markdown.

Project description

Swagger is an open specification for documenting REST APIs in JSON or YAML. Imperfect as it is, it’s de facto a standard for many API developers.

This extension lets you render your swagger.json file as a Markdown document. You can customize the output by providing your own Jinja2 template.

Installation

$ pip install swagger2markdown

Usage

usage: swagger2markdown-script.py [-h] [-i SWAGGER_LOCATION] [-o OUTPUT]
                                [-t TEMPLATE]

optional arguments:
  -h, --help            show this help message and exit
  -i SWAGGER_LOCATION, --input SWAGGER_LOCATION
                        path to or URL of the Swagger JSON file (default:
                        swagger.json)
  -o OUTPUT, --output OUTPUT
                        path to the output Markdown file (default: swagger.md)
  -t TEMPLATE, --template TEMPLATE
                        Jinja2 template used for conversion

Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

swagger2markdown-0.1.7-py3-none-any.whl (6.1 kB view details)

Uploaded Python 3

File details

Details for the file swagger2markdown-0.1.7-py3-none-any.whl.

File metadata

File hashes

Hashes for swagger2markdown-0.1.7-py3-none-any.whl
Algorithm Hash digest
SHA256 34cf983b49c5c7f79a5a2fb4e0bf4a7f3c663d68da8f531bf34cae13c62bd143
MD5 7b703f79d26ea52116fc7267ca3ff64f
BLAKE2b-256 2dab1fa6379e28963d07454c74fe4a6d15bf2f7bd9cdffa5f88f3f7251f35d6a

See more details on using hashes here.

Supported by

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