alioygur/postman2html

将 Postman 集合转换为 HTML

v1.3 2014-12-09 12:51 UTC

This package is not auto-updated.

Last update: 2024-09-24 03:54:26 UTC


README

postman 集合文件生成 HTML 文件。这对于 API 文档很有用。

安装

此库通过 Composer 提供

composer global require "alioygur/postman2html=~1.0"

用法

使用示例

postman2html render location-of-postman-collection-file.json

自定义输出文件位置和名称,而不是默认设置

postman2html render location-of-postman-collection-file.json path/to/apidoc.html

帮助

postman2html help render

执行 postman2html help render 命令的输出

Usage:
 render inputfile [outputfile]

Arguments:
 inputfile             input file
 outputfile            output file (default: "output.html")

Options:
 --help (-h)           Display this help message.
 --quiet (-q)          Do not output any message.
 --verbose (-v|vv|vvv) Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug.
 --version (-V)        Display this application version.
 --ansi                Force ANSI output.
 --no-ansi             Disable ANSI output.
 --no-interaction (-n) Do not ask any interactive question.