Generate Markdown from an openapi JSON file.
Project description
OpenAPI Readme Generator
Generates Markdown suitable for a README file from a local openapi.json
file.
Usage
Run this in the same directory as your openapi.json
file. By default the
Markdown output will be printed to the console, but you can redirect it out to
a file too.
The particular styling of the generated Markdown is currently hardcoded, though plans are afoot to implement some sort of themeing.
Options
--help
Show application usage hints and help.
--route-level
Specify the heading level for each Route in the generated documentation. This defaults to 4 if not specified, ie:
#### **`GET`** _/user/list_
--inject
Injects the new Markdown directly into a README.md
file in the current
directory, if it is found.
You need to add the placeholder comment <!-- openapi-schema -->
to your markdown where you want it to be injected:
This is some preceeding text
### API Schema description
<!-- openapi-schema -->
### Next section
The document continues unaffected after the injection.
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
Built Distribution
Hashes for openapi_readme-0.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0f20c57b6619391f2b421e1a8a660834cd1b3d87b8b164ef1bfede2c458107eb |
|
MD5 | 1d615464357b05fe399ca2fae8ea5fa0 |
|
BLAKE2b-256 | 81a9ddbfe6c853acf37adc3c3400d3edd568412742e7e315c3e157bb83a1c2a0 |