Convert Postman Collection to PDF

40.7k Views Asked by At

I've developed a pretty extense API, and I have it on Postman, which works pretty nice. Now I have to generate an html doc to keep it versioned inside /docs along with my sources.

Is there a tool or a way to achieve this? I really don't want to write all this documentation.I don't want to use Postman publish docs also. Sharing the postman collection is not an option How can we convert Postman Collection to PDF/Word document?

5

There are 5 best solutions below

1
On

You can also get the PDF version by clicking :

enter image description here

0
On

The best I've found is Postman to HTML (properly, not file > save)

  1. Install this anywhere in your PATH: https://github.com/aubm/postmanerator
  2. Right click on your collection in Postman and click export, which will give you a JSON file
  3. Run postmanerator -output=/var/www/public/api.html -collection=/var/www/my-collection.json in cli

You can create your own themes too which collectively is what we all want to be able to do straight out of Postman

3
On

You can publish the documentation of your collection through postman :

  1. Click on the ... -> Publish Docs.

enter image description here

This will open a new page to postman website in which you can preview your documentationenter image description here.

  1. Click on Preview Documentation, it will open a new page as the html version of the documentation.

  2. Right click to display chrome option Print it enter image description here

This will provide you the option to save it as a pdf

enter image description here

This answer was inspired from here for Creating html doc from postman collection.

1
On

For newer versions of postman try this

  1. Go to your collection
  2. Right click the collection and go to "View Documentation"
  3. Then top right hand corner, press "Publish"

enter image description here

0
On

I was trying for ever to get this in the desktop app, preview is not there. But It is there when I log into the postman web app.