Generating html file from a postman collection file. it is useful for API documentation.
This library is available via Composer
composer require "bein-sports/postman2html=~1.0"
bin/markdown2html convert src/AppBundle/Resources/doc/Security/Roles.md src/AppBundle/Resources/views/Documentation/roles.html.twig
bin/postman2html render src/AppBundle/Resources/doc/Postman/postman-collection.json src/AppBundle/Resources/views/Documentation/index.html.twig
postman2html render location-of-postman-collection-file.json path/to/apidoc.html
postman2html help render
Output of postman2html help render
command
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.