api-documenter is a simple script that allows you to generate beautiful HTML documentation from a JSON description file easily.
You can find a nice demo here.
- Python >= 3
- python-slugify >= 1.2.6
- dominate >= 2.3.5
| Library | Autor | License | Website |
|---|---|---|---|
| dominate | Tom Flanagan and Jake Wharton | LGPL v3.0 | https://github.com/Knio/dominate |
| slugify | Val Neekman | MIT | https://github.com/un33k/python-slugify |
pip3 install python-slugify
chmod +x install.sh
./install.sh
apidoc --helpNote: all the keys should be double quoted and the values should be replaced. See the example for more information.
{title: string,description: string|string[],host: string,requests: Request[],statusCodes: StatusCode[]}{title: string,method: string,description: string|string[],url: string,parameters: Parameter[],examples: Example[]}{name: string,type: string,optional: boolean,description: string}{description: string|string[],type: 'request',protocol: string='HTTP/1.1',headers: Header[],body: string|string[]}{description: string,type: 'response',protocol: string='HTTP/1.1',status: string,headers: Header[],body: string[]}{key: string,value: string}{code: number,reason: string,meaning: string}api-documenter Copyright (C) 2018 Ivan Avalos <ivan.avalos.diaz@hotmail.com>
This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
This is free software, and you are welcome to redistribute it
under certain conditions; type `show c' for details.