{"id":110024,"date":"2020-11-11T11:00:54","date_gmt":"2020-11-11T08:00:54","guid":{"rendered":"https:\/\/en.buradabiliyorum.com\/how-to-debug-apis-with-postman-cloudsavvy-it\/"},"modified":"2020-11-11T11:00:54","modified_gmt":"2020-11-11T08:00:54","slug":"how-to-debug-apis-with-postman-cloudsavvy-it","status":"publish","type":"post","link":"https:\/\/buradabiliyorum.com\/en\/how-to-debug-apis-with-postman-cloudsavvy-it\/","title":{"rendered":"#How To Debug APIs With Postman \u2013 CloudSavvy IT"},"content":{"rendered":"<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_84 counter-hierarchy ez-toc-counter ez-toc-custom ez-toc-container-direction\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">Table of Contents<\/p>\n<label for=\"ez-toc-cssicon-toggle-item-6a297547d8581\" class=\"ez-toc-cssicon-toggle-label\"><span class=\"\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #dd3333;color:#dd3333\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #dd3333;color:#dd3333\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/label><input type=\"checkbox\"  id=\"ez-toc-cssicon-toggle-item-6a297547d8581\" checked aria-label=\"Toggle\" \/><nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/buradabiliyorum.com\/en\/how-to-debug-apis-with-postman-cloudsavvy-it\/#What_Is_Postman\" >What Is Postman?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/buradabiliyorum.com\/en\/how-to-debug-apis-with-postman-cloudsavvy-it\/#Using_Postman\" >Using Postman<\/a><\/li><\/ul><\/nav><\/div>\n<p><strong>&#8220;#How To Debug APIs With Postman \u2013 CloudSavvy IT&#8221;<\/strong><\/p>\n<div id=\"article-content-area\">\n<img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-7776\" src=\"https:\/\/www.cloudsavvyit.com\/thumbcache\/0\/0\/935295ccb1b5c9a4de14c892c1ad3785\/p\/uploads\/2020\/11\/e95d775a.png\" alt=\"\" width=\"700\" height=\"300\" onload=\"pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\" onerror=\"this.onerror=null;pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\"\/><\/p>\n<p>Postman is a program and toolkit that makes working with, developing, and debugging remote API services easier. It provides a platform for creating, managing, and working with GET and POST requests.<\/p>\n<h2 role=\"heading\" aria-level=\"2\"><span class=\"ez-toc-section\" id=\"What_Is_Postman\"><\/span>What Is Postman?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p><a rel=\"nofollow noopener noreferrer\" target=\"_blank\" href=\"https:\/\/www.postman.com\/\">Postman<\/a> describes itself as a \u201cPlatform for API Development.\u201d At its most basic level, it provides a simple GUI interface for interacting with remote APIs. It\u2019s essentially a state of the art REST client, designed for working with complex APIs.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-7775\" src=\"https:\/\/www.cloudsavvyit.com\/thumbcache\/0\/0\/07334e27475255a7bb8b36548e11fdec\/p\/uploads\/2020\/11\/ccbb3030.png\" alt=\"\" width=\"700\" height=\"293\" onload=\"pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\" onerror=\"this.onerror=null;pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\"\/><\/p>\n<p>On top of just being a great REST client, it also features tools for managing collections of requests. Using these collections, and a knowledge of the API schema, it can <a rel=\"nofollow noopener noreferrer\" target=\"_blank\" href=\"https:\/\/www.postman.com\/use-cases\/api-testing-automation\/\">run fully automated API tests<\/a>, which can be integrated in CI\/CD pipelines to ensure that any code changes don\u2019t break the API in production.<\/p>\n<h2 role=\"heading\" aria-level=\"2\"><span class=\"ez-toc-section\" id=\"Using_Postman\"><\/span>Using Postman<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>To get started, we\u2019ll test a basic request. You can save multiple requests into Collections, which can be reused and shared.<\/p>\n<p>In Postman, each request has its own tab in the workspace. You\u2019ll find controls for the request settings, as well as output from the server. If you\u2019re using it in full screen, you can swap it to side-by-side column mode with the button in the bottom right.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-7904\" src=\"https:\/\/www.cloudsavvyit.com\/thumbcache\/0\/0\/fc4d9896d0d5eab661b10219efc579b8\/p\/uploads\/2020\/11\/2473ea4f.png\" alt=\"\" width=\"700\" height=\"395\" onload=\"pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\" onerror=\"this.onerror=null;pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\"\/><\/p>\n<p>You can modify the request type from the dropdown on the URL bar. The most common methods are GET and POST, but all HTTP verbs are fully supported.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-7914\" src=\"https:\/\/www.cloudsavvyit.com\/thumbcache\/0\/0\/61182883b07aaedc742da9ccbe5cface\/p\/uploads\/2020\/11\/3dcf69ee.png\" alt=\"\" width=\"531\" height=\"303\" onload=\"pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\" onerror=\"this.onerror=null;pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\"\/><\/p>\n<p>Under the \u201cAuthentication\u201d tab, you\u2019ll need to set up the auth keys for the API you\u2019re using, unless it\u2019s public. Postman supports OAuth 1 and 2, as well as most other token types alongside Basic Auth.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-7915\" src=\"https:\/\/www.cloudsavvyit.com\/thumbcache\/0\/0\/603ff6a41cb77b842496e2df0e2ed913\/p\/uploads\/2020\/11\/baf4720b.png\" alt=\"\" width=\"514\" height=\"328\" onload=\"pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\" onerror=\"this.onerror=null;pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\"\/><\/p>\n<p>Under \u201cHeaders,\u201d you can set the headers of the message, such as Content-Type. Many of these will be set automatically, which you can view under the \u201cHidden\u201d button.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-7916\" src=\"https:\/\/www.cloudsavvyit.com\/thumbcache\/0\/0\/cf0852b1b6c368e6365da62890aac3e4\/p\/uploads\/2020\/11\/d9cdd72a.png\" alt=\"\" width=\"531\" height=\"248\" onload=\"pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\" onerror=\"this.onerror=null;pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\"\/><\/p>\n<p>For the body of the request, you can specify form data using key-value pairs, send a binary package, a GraphQL request, or just send raw JSON or text data. The editor includes a built-in JSON editor and validator.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-7917\" src=\"https:\/\/www.cloudsavvyit.com\/thumbcache\/0\/0\/f2c8a57bc6bd16091e99550c5b2c2ea7\/p\/uploads\/2020\/11\/b725726f.png\" alt=\"\" width=\"515\" height=\"291\" onload=\"pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\" onerror=\"this.onerror=null;pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\"\/><\/p>\n<p>One of the coolest things you can do with Postman is set up API tests\u2014these are coded in Java<a href=\"https:\/\/buradabiliyorum.com\/en\/category\/download-scripts-themes-apps\/\" data-internallinksmanager029f6b8e52c=\"9\" title=\"Download Scripts &amp; Themes &amp; Apps\" target=\"_blank\" rel=\"noopener\">Script<\/a>, and run after the result has been received. You can <a rel=\"nofollow noopener noreferrer\" target=\"_blank\" href=\"https:\/\/learning.postman.com\/docs\/writing-scripts\/test-scripts\/\">read more about setting them up from Postman\u2019s guide<\/a> to using them<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-7918\" src=\"https:\/\/www.cloudsavvyit.com\/thumbcache\/0\/0\/0fcda1501793049af8f7fb8bb4d045f0\/p\/uploads\/2020\/11\/dbc10644.png\" alt=\"\" width=\"700\" height=\"420\" onload=\"pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\" onerror=\"this.onerror=null;pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\"\/><\/p>\n<p>Once you\u2019ve prepared your request, you can test it with the \u201cSend\u201d button. You should get a response from the remote server, which you can view in Pretty-print, HTML preview, or just raw output. You can see various stats, like the HTML response code, payload size, and ping, in the status bar above the<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-7919\" src=\"https:\/\/www.cloudsavvyit.com\/thumbcache\/0\/0\/d31c5539ec9330a82b455389441a7730\/p\/uploads\/2020\/11\/0d0cf1af.png\" alt=\"\" width=\"700\" height=\"576\" onload=\"pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\" onerror=\"this.onerror=null;pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\"\/><\/p>\n<p>You can also change the dropdown from \u201cBody\u201d to \u201cHeader\u201d to view the headers that the API returned.<\/p>\n<p>Using the JavaScript testers, <a rel=\"nofollow noopener noreferrer\" target=\"_blank\" href=\"https:\/\/learning.postman.com\/docs\/sending-requests\/visualizer\/\">you can also create simple data visualizations<\/a>, like pie and bar charts, which can be useful for making sense out of a lot of data.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-7920\" src=\"https:\/\/www.cloudsavvyit.com\/thumbcache\/0\/0\/79ebf9dfedc0dad55ce646055627f854\/p\/uploads\/2020\/11\/766656d5.png\" alt=\"\" width=\"700\" height=\"266\" onload=\"pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\" onerror=\"this.onerror=null;pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\"\/><\/p>\n<p>If you\u2019d like to come back to it, or save the test, you can save it to a \u201cCollection.\u201d You can then use the Collection Runner from the top menu bar to run all the requests and tests in the collection, which can be used to unit test all API endpoints.\n<\/p><\/div>\n<blockquote>\n<p style=\"text-align: center;\">For forums sites go to <span style=\"color: #ff9900;\"><a style=\"color: #ff9900;\" href=\"https:\/\/forum.buradabiliyorum.com\/\" target=\"_blank\" rel=\"noopener noreferrer\">Forum.BuradaBiliyorum.Com<\/a><\/span><\/strong><\/p>\n<\/blockquote>\n<blockquote>\n<p style=\"text-align: center;\"><strong>If you want to read more like this article, you can visit our <span style=\"color: #ff9900;\"><a style=\"color: #ff9900;\" href=\"https:\/\/en.buradabiliyorum.com\/technology\/\" target=\"_blank\" rel=\"noopener noreferrer\">Technology category.<\/a><\/span><\/strong><\/p>\n<\/blockquote>\n<p><span style=\"color: black;\"><a style=\"color: #ff9900;\" href=\"https:\/\/www.cloudsavvyit.com\/7552\/how-to-debug-apis-with-postman\/\" target=\"_blank\" rel=\"noopener noreferrer\">Source<\/a><\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>&#8220;#How To Debug APIs With Postman \u2013 CloudSavvy IT&#8221; Postman is a program and toolkit that makes working with, developing, and debugging remote API services easier. It provides a platform for creating, managing, and working with GET and POST requests. What Is Postman? Postman describes itself as a \u201cPlatform for API Development.\u201d At its most&#8230;<\/p>\n","protected":false},"author":1,"featured_media":110025,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"fifu_image_url":"https:\/\/www.cloudsavvyit.com\/p\/uploads\/2020\/11\/e95d775a.png","fifu_image_alt":"","footnotes":""},"categories":[18],"tags":[],"class_list":["post-110024","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-technology"],"_links":{"self":[{"href":"https:\/\/buradabiliyorum.com\/en\/wp-json\/wp\/v2\/posts\/110024","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/buradabiliyorum.com\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/buradabiliyorum.com\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/buradabiliyorum.com\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/buradabiliyorum.com\/en\/wp-json\/wp\/v2\/comments?post=110024"}],"version-history":[{"count":0,"href":"https:\/\/buradabiliyorum.com\/en\/wp-json\/wp\/v2\/posts\/110024\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/buradabiliyorum.com\/en\/wp-json\/wp\/v2\/media\/110025"}],"wp:attachment":[{"href":"https:\/\/buradabiliyorum.com\/en\/wp-json\/wp\/v2\/media?parent=110024"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/buradabiliyorum.com\/en\/wp-json\/wp\/v2\/categories?post=110024"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/buradabiliyorum.com\/en\/wp-json\/wp\/v2\/tags?post=110024"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}