Skip to content
/ apidoc Public

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

License

Notifications You must be signed in to change notification settings

zc2638/apidoc

Repository files navigation

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.

Installation

1、Source Code

Preconditions

The wkhtmltopdf package must be installed.

Install Command

go install github.com/zc2638/apidoc/cmd/apidoc@latest

2、Docker

docker pull zc2638/apidoc:latest

Use In Docker

docker run --rm zc2638/apidoc:latest --src https://petstore.swagger.io/v2/swagger.json --data > petstore.pdf

Use In Command

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

About

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

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published