apidoc

LICENSE GoDoc Go Report Card

English | 简体中文

This is a tool and Golang package that uses swagger2.0 definitions to generate API static documents (such as pdf) based on template files.

Preconditions

The wkhtmltopdf package must be installed.

Installation

Source Code

go install github.com/zc2638/apidoc/cmd/[email protected]

Use

From File

apidoc --src <your-swagger-json> [--dest <your-output-dir>]

From URL

apidoc --src https://petstore.swagger.io/v2/swagger.json

Toolkit Example

Please visit the example

GitHub

View Github