{"id":742,"date":"2020-07-24T15:30:45","date_gmt":"2020-07-24T15:30:45","guid":{"rendered":"https:\/\/www.dhruvsoft.com\/blog\/?p=742"},"modified":"2024-07-26T09:40:43","modified_gmt":"2024-07-26T09:40:43","slug":"using-postman-for-api-documentation","status":"publish","type":"post","link":"https:\/\/www.dhruvsoft.com\/blog\/using-postman-for-api-documentation\/","title":{"rendered":"Using Postman for API Documentation"},"content":{"rendered":"\n<h3 class=\"wp-block-heading\">What is Postman?<\/h3>\n\n\n\n<p>Postman is a tool used to test, develop, and modify APIs. Also, it provides API monitoring and documentation. It&#8217;s widely used by most of the enterprise and software product companies.<\/p>\n\n\n\n<p>We can use <strong>Postman collections<\/strong> to share between different environments and to perform API assertion testing.&nbsp;<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1000\" height=\"417\" src=\"https:\/\/www.dhruvsoft.com\/blog\/wp-content\/uploads\/2020\/07\/Using-Postman-for-API-Documentation.jpg\" alt=\"Using Postman for API Documentation\" class=\"wp-image-752\" srcset=\"https:\/\/www.dhruvsoft.com\/blog\/wp-content\/uploads\/2020\/07\/Using-Postman-for-API-Documentation.jpg 1000w, https:\/\/www.dhruvsoft.com\/blog\/wp-content\/uploads\/2020\/07\/Using-Postman-for-API-Documentation-300x125.jpg 300w, https:\/\/www.dhruvsoft.com\/blog\/wp-content\/uploads\/2020\/07\/Using-Postman-for-API-Documentation-768x320.jpg 768w\" sizes=\"auto, (max-width: 1000px) 100vw, 1000px\" \/><\/figure>\n\n\n\n<!--more-->\n\n\n\n<h3 class=\"wp-block-heading\">Features and Pricing<\/h3>\n\n\n\n<p>Following are features of Postman<\/p>\n\n\n\n<ol class=\"wp-block-list\"><li>Design, develop, and test APIs<\/li><li>Collaborating with your team<\/li><li>Manage the API workflow in one place<\/li><\/ol>\n\n\n\n<p>There are three types of pricing plans. Recently they have removed the free plan which was very popular among integration developers.&nbsp;<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"676\" height=\"330\" src=\"https:\/\/www.dhruvsoft.com\/blog\/wp-content\/uploads\/2020\/07\/Postman-API-pricing.jpg\" alt=\"Postman API integration pricing\" class=\"wp-image-743\" srcset=\"https:\/\/www.dhruvsoft.com\/blog\/wp-content\/uploads\/2020\/07\/Postman-API-pricing.jpg 676w, https:\/\/www.dhruvsoft.com\/blog\/wp-content\/uploads\/2020\/07\/Postman-API-pricing-300x146.jpg 300w\" sizes=\"auto, (max-width: 676px) 100vw, 676px\" \/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">Why do we need Postman documentation?<\/h3>\n\n\n\n<p>It offers well organized, structured, and beautiful documentation. Without spending much time on design, it can generate from the API collection, which we used for extensive testing.<\/p>\n\n\n\n<p>It provides a secured URL to access publicly, and from that, users can Import and run those cases directly in the Postman tool.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Business scenario<\/h3>\n\n\n\n<p>Let&#8217;s take an example; your company has asked you to create documentation and share it publicly. Also, it would help if you created REST API test cases. In this post, we will explain this step by step-<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Step 1 &#8211; Creating a sample collection<\/h4>\n\n\n\n<p>Create a collection with the required information about your API. Postman accepts Markdown text formatting to beautify content.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"660\" height=\"344\" src=\"https:\/\/www.dhruvsoft.com\/blog\/wp-content\/uploads\/2020\/07\/Creating-a-sample-collection.jpg\" alt=\"Postman API - Creating a sample collection\" class=\"wp-image-744\" srcset=\"https:\/\/www.dhruvsoft.com\/blog\/wp-content\/uploads\/2020\/07\/Creating-a-sample-collection.jpg 660w, https:\/\/www.dhruvsoft.com\/blog\/wp-content\/uploads\/2020\/07\/Creating-a-sample-collection-300x156.jpg 300w\" sizes=\"auto, (max-width: 660px) 100vw, 660px\" \/><\/figure>\n\n\n\n<h4 class=\"wp-block-heading\">Step 2 &#8211; Adding requests<\/h4>\n\n\n\n<p>Add a request under the created collection and save the appropriate response.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"668\" height=\"380\" src=\"https:\/\/www.dhruvsoft.com\/blog\/wp-content\/uploads\/2020\/07\/Adding-requests.jpg\" alt=\"Postman API Add a request\" class=\"wp-image-745\" srcset=\"https:\/\/www.dhruvsoft.com\/blog\/wp-content\/uploads\/2020\/07\/Adding-requests.jpg 668w, https:\/\/www.dhruvsoft.com\/blog\/wp-content\/uploads\/2020\/07\/Adding-requests-300x171.jpg 300w\" sizes=\"auto, (max-width: 668px) 100vw, 668px\" \/><\/figure>\n\n\n\n<h4 class=\"wp-block-heading\">Step 3 &#8211; Publishing Docs<\/h4>\n\n\n\n<p>Publish docs using collection settings, as shown in the below Image.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"642\" height=\"437\" src=\"https:\/\/www.dhruvsoft.com\/blog\/wp-content\/uploads\/2020\/07\/Publishing-Docs.jpg\" alt=\"Postman API Publishing Docs\" class=\"wp-image-746\" srcset=\"https:\/\/www.dhruvsoft.com\/blog\/wp-content\/uploads\/2020\/07\/Publishing-Docs.jpg 642w, https:\/\/www.dhruvsoft.com\/blog\/wp-content\/uploads\/2020\/07\/Publishing-Docs-300x204.jpg 300w\" sizes=\"auto, (max-width: 642px) 100vw, 642px\" \/><\/figure>\n\n\n\n<p>After publishing the collection, you will get a URL to access, as shown below.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"623\" height=\"378\" src=\"https:\/\/www.dhruvsoft.com\/blog\/wp-content\/uploads\/2020\/07\/get-a-URL-to-access.jpg\" alt=\"Public documentation lik\" class=\"wp-image-747\" srcset=\"https:\/\/www.dhruvsoft.com\/blog\/wp-content\/uploads\/2020\/07\/get-a-URL-to-access.jpg 623w, https:\/\/www.dhruvsoft.com\/blog\/wp-content\/uploads\/2020\/07\/get-a-URL-to-access-300x182.jpg 300w\" sizes=\"auto, (max-width: 623px) 100vw, 623px\" \/><\/figure>\n\n\n\n<h4 class=\"wp-block-heading\">Step 4 &#8211; Document Overview&nbsp;<\/h4>\n\n\n\n<p>Users can set the preferred language for requests. In the documentation, the request&#8217;s saved responses will be shown right-hand side and required headers and body shown left-hand side. They can import from the &#8220;Run In Postman&#8221; button.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"665\" height=\"374\" src=\"https:\/\/www.dhruvsoft.com\/blog\/wp-content\/uploads\/2020\/07\/Document-Overview.jpg\" alt=\"Postman API Document overview\" class=\"wp-image-748\" srcset=\"https:\/\/www.dhruvsoft.com\/blog\/wp-content\/uploads\/2020\/07\/Document-Overview.jpg 665w, https:\/\/www.dhruvsoft.com\/blog\/wp-content\/uploads\/2020\/07\/Document-Overview-300x169.jpg 300w\" sizes=\"auto, (max-width: 665px) 100vw, 665px\" \/><\/figure>\n\n\n\n<h4 class=\"wp-block-heading\">Step 5 &#8211; Adding Custom Domain to the generated URL&nbsp;<\/h4>\n\n\n\n<p>To set up a custom domain, customers need a subscription. Follow the below screenshots to add a custom domain.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"678\" height=\"167\" src=\"https:\/\/www.dhruvsoft.com\/blog\/wp-content\/uploads\/2020\/07\/Adding-Custom-Domain.jpg\" alt=\"Postman API custom domain\" class=\"wp-image-749\" srcset=\"https:\/\/www.dhruvsoft.com\/blog\/wp-content\/uploads\/2020\/07\/Adding-Custom-Domain.jpg 678w, https:\/\/www.dhruvsoft.com\/blog\/wp-content\/uploads\/2020\/07\/Adding-Custom-Domain-300x74.jpg 300w\" sizes=\"auto, (max-width: 678px) 100vw, 678px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"422\" height=\"504\" src=\"https:\/\/www.dhruvsoft.com\/blog\/wp-content\/uploads\/2020\/07\/domain-veryfication.jpg\" alt=\"verify custom domain\" class=\"wp-image-750\" srcset=\"https:\/\/www.dhruvsoft.com\/blog\/wp-content\/uploads\/2020\/07\/domain-veryfication.jpg 422w, https:\/\/www.dhruvsoft.com\/blog\/wp-content\/uploads\/2020\/07\/domain-veryfication-251x300.jpg 251w\" sizes=\"auto, (max-width: 422px) 100vw, 422px\" \/><\/figure>\n\n\n\n<p>You can select a custom domain while publishing docs, as shown below.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"631\" height=\"421\" src=\"https:\/\/www.dhruvsoft.com\/blog\/wp-content\/uploads\/2020\/07\/select-a-custom-domain-while-publishing.jpg\" alt=\"how to add custom domain \" class=\"wp-image-751\" srcset=\"https:\/\/www.dhruvsoft.com\/blog\/wp-content\/uploads\/2020\/07\/select-a-custom-domain-while-publishing.jpg 631w, https:\/\/www.dhruvsoft.com\/blog\/wp-content\/uploads\/2020\/07\/select-a-custom-domain-while-publishing-300x200.jpg 300w\" sizes=\"auto, (max-width: 631px) 100vw, 631px\" \/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">Conclusion<\/h3>\n\n\n\n<p>API Documentation provides a perfect guide to access APIs. People spend a lot of time designing and updating on this. Postman is one of the best solutions to generate it by simple few clicks.<\/p>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>What is Postman? Postman is a tool used to test, develop, and modify APIs. Also, it provides API monitoring and documentation. It&#8217;s widely used by most of the enterprise and software product companies. We can use Postman collections to share between different environments and to perform API assertion testing.&nbsp;<\/p>\n","protected":false},"author":26,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[119],"tags":[],"class_list":["post-742","post","type-post","status-publish","format-standard","hentry","category-integration","entry"],"_links":{"self":[{"href":"https:\/\/www.dhruvsoft.com\/blog\/wp-json\/wp\/v2\/posts\/742","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.dhruvsoft.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.dhruvsoft.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.dhruvsoft.com\/blog\/wp-json\/wp\/v2\/users\/26"}],"replies":[{"embeddable":true,"href":"https:\/\/www.dhruvsoft.com\/blog\/wp-json\/wp\/v2\/comments?post=742"}],"version-history":[{"count":0,"href":"https:\/\/www.dhruvsoft.com\/blog\/wp-json\/wp\/v2\/posts\/742\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.dhruvsoft.com\/blog\/wp-json\/wp\/v2\/media?parent=742"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.dhruvsoft.com\/blog\/wp-json\/wp\/v2\/categories?post=742"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.dhruvsoft.com\/blog\/wp-json\/wp\/v2\/tags?post=742"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}