Postman collection to api doc pdf
Ref:
- https://apievangelist.com/2020/06/08/the-open-source-community-tooling-built-on-postman/
Tools
- https://github.com/thedevsaddam/docgen
curl https://raw.githubusercontent.com/thedevsaddam/docgen/v3/install.sh -o install.sh \ && sudo chmod +x install.sh \ && sudo ./install.sh \ && rm install.sh
- Sublime
- https://packagecontrol.io/packages/MarkdownEditing
- https://packagecontrol.io/packages/MarkdownPreview
Steps
- Convert collection to markdown
docgen build -i input-postman-collection.json -o ~/Downloads/index.md -m
- Open generated markdown
- Open “Markdown Preview: Preview in browser”
- Ctrl + P to print to PDF