{"id":1926,"date":"2022-06-17T06:00:58","date_gmt":"2022-06-17T06:00:58","guid":{"rendered":"https:\/\/rahulshettyacademy.com\/blog\/index.php\/2022\/06\/17\/clone-of-api-basics-and-architecture\/"},"modified":"2022-06-19T16:16:38","modified_gmt":"2022-06-19T16:16:38","slug":"hitting-api-get-requests-with-postman","status":"publish","type":"post","link":"https:\/\/rahulshettyacademy.com\/blog\/index.php\/2022\/06\/17\/hitting-api-get-requests-with-postman\/","title":{"rendered":"Hitting API GET Requests with Postman"},"content":{"rendered":"<h3 id=\"t-1655554066552\"><b>Hitting API GET Requests with Postman<\/b><\/h3>\n<p>Welcome you all to the brand new \u2018API Testing\u2019 blog series! In the previous blog, we had learnt how to setup Postman. In this tutorial, we will learn how to hit a GET request using Postman!! So let us begin!!!&nbsp;<\/p>\n<h3 id=\"t-1655554066553\"><b><b>1. What you will Learn in this blog ?<\/b><\/b><\/h3>\n<ul>\n<li>Quick glance of workspace<\/li>\n<li>Hit GET request using Postman<\/li>\n<li>Brief understanding of response data output<\/li>\n<li>Brief understanding of Response Headers<\/li>\n<li>Brief understanding of Request Headers<\/li>\n<li>Send query parameter as part of GET request<\/li>\n<li>Add query parameter in the \u2018Params\u2019 section<\/li>\n<li>Remove query parameter from the \u2018Params\u2019 section<\/li>\n<li>History of Requests<\/li>\n<li>Save the API calls<\/li>\n<li>Create Collection of GET Requests<\/li>\n<\/ul>\n<h3 id=\"t-1655554066554\"><b><b>2. Quick glance of workspace<\/b><\/b><\/h3>\n<p>Let us open postman app and sign-in (in case you signed out in the previous blog). We can see the new workspace \u2018Postman WS\u2019 that we had created in our last blog&nbsp;<\/p>\n<p><span><img decoding=\"async\" alt=\"\" data-id=\"2123\" width=\"535\" data-init-width=\"300\" height=\"203\" data-init-height=\"114\" title=\"Image 1\" loading=\"lazy\" src=\"https:\/\/rahulshettyacademy.com\/blog\/wp-content\/uploads\/2022\/06\/Image-1-4-300x114.jpg\" data-width=\"535\" data-height=\"203\" style=\"\"><\/span><\/p>\n<p>To create a new tab, click + icon as shown below<\/p>\n<p><span><img decoding=\"async\" alt=\"\" data-id=\"2124\" width=\"540\" data-init-width=\"300\" height=\"283\" data-init-height=\"157\" title=\"Image 2\" loading=\"lazy\" src=\"https:\/\/rahulshettyacademy.com\/blog\/wp-content\/uploads\/2022\/06\/Image-2-4-300x157.jpg\" data-width=\"540\" data-height=\"283\" style=\"\"><\/span><\/p>\n<p>A new tab \u2018Untitled GET Request\u2019 gets created<\/p>\n<p><span><img decoding=\"async\" alt=\"\" data-id=\"2125\" width=\"499\" data-init-width=\"300\" height=\"191\" data-init-height=\"115\" title=\"Image 3\" loading=\"lazy\" src=\"https:\/\/rahulshettyacademy.com\/blog\/wp-content\/uploads\/2022\/06\/Image-3-4-300x115.jpg\" data-width=\"499\" data-height=\"191\" style=\"\"><\/span><\/p>\n<p>Also notice below that \u2018GET\u2019 is default method in the dropdown<\/p>\n<p><span><img decoding=\"async\" alt=\"\" data-id=\"2126\" width=\"447\" data-init-width=\"228\" height=\"327\" data-init-height=\"167\" title=\"Image 4\" loading=\"lazy\" src=\"https:\/\/rahulshettyacademy.com\/blog\/wp-content\/uploads\/2022\/06\/Image-4-4.jpg\" data-width=\"447\" data-height=\"327\" style=\"\"><\/span><\/p>\n<p>If you click this dropdown, you would see other HTTP methods as well (example, POST, DELETE etc)<\/p>\n<p><span><img decoding=\"async\" alt=\"\" data-id=\"2127\" width=\"349\" data-init-width=\"189\" height=\"554\" data-init-height=\"300\" title=\"Image 5\" loading=\"lazy\" src=\"https:\/\/rahulshettyacademy.com\/blog\/wp-content\/uploads\/2022\/06\/Image-5-4-189x300.jpg\" data-width=\"349\" data-height=\"554\" style=\"\"><\/span><\/p>\n<p>We use the address bar to enter the URI that we would like to hit<\/p>\n<p><span><img decoding=\"async\" alt=\"\" data-id=\"2128\" width=\"489\" data-init-width=\"300\" height=\"238\" data-init-height=\"146\" title=\"Image 6\" loading=\"lazy\" src=\"https:\/\/rahulshettyacademy.com\/blog\/wp-content\/uploads\/2022\/06\/Image-6-4-300x146.jpg\" data-width=\"489\" data-height=\"238\" style=\"\"><\/span><\/p>\n<p>To submit the request, we have to click the \u2018Send\u2019 button<\/p>\n<p><span><img decoding=\"async\" alt=\"\" data-id=\"2129\" width=\"489\" data-init-width=\"300\" height=\"288\" data-init-height=\"177\" title=\"Image 7\" loading=\"lazy\" src=\"https:\/\/rahulshettyacademy.com\/blog\/wp-content\/uploads\/2022\/06\/Image-7-4-300x177.jpg\" data-width=\"489\" data-height=\"288\" style=\"\"><\/span><\/p>\n<h3 id=\"t-1655554066555\"><b><b>3. <b>Hit GET request using Postman<\/b><\/b><\/b><\/h3>\n<p>We will now see how to hit a GET request using Postman. Let us enter the URI <a href=\"https:\/\/httpbin.org\" style=\"outline: none;\" target=\"_blank\" rel=\"noopener\">https:\/\/httpbin.org<\/a> in the request url field<\/p>\n<p><span><img decoding=\"async\" alt=\"\" data-id=\"2130\" width=\"529\" data-init-width=\"300\" height=\"123\" data-init-height=\"70\" title=\"Image 8\" loading=\"lazy\" src=\"https:\/\/rahulshettyacademy.com\/blog\/wp-content\/uploads\/2022\/06\/Image-8-4-300x70.jpg\" data-width=\"529\" data-height=\"123\" style=\"\"><\/span><\/p>\n<p>Click Send button.<\/p>\n<p>Notice below that we get the response data output (response body) from the server<\/p>\n<p><span><img decoding=\"async\" alt=\"\" data-id=\"2131\" width=\"521\" data-init-width=\"300\" height=\"505\" data-init-height=\"291\" title=\"Image 9\" loading=\"lazy\" src=\"https:\/\/rahulshettyacademy.com\/blog\/wp-content\/uploads\/2022\/06\/Image-9-4-300x291.jpg\" data-width=\"521\" data-height=\"505\" style=\"\"><\/span><\/p>\n<h3 id=\"t-1655554066556\"><b><b>4. <b><b>Brief understanding of response data output<\/b><\/b><\/b><\/b><\/h3>\n<p>By default, response data is of type HTML as shown below<\/p>\n<p><span><img decoding=\"async\" alt=\"\" data-id=\"2132\" width=\"494\" data-init-width=\"300\" height=\"321\" data-init-height=\"195\" title=\"Image 10\" loading=\"lazy\" src=\"https:\/\/rahulshettyacademy.com\/blog\/wp-content\/uploads\/2022\/06\/Image-10-4-300x195.jpg\" data-width=\"494\" data-height=\"321\" style=\"\"><\/span><\/p>\n<p>We can also see the status code 200 since the GET request is successfully processed by the server and the server was able to send us the response<\/p>\n<p><span><img decoding=\"async\" alt=\"\" data-id=\"2133\" width=\"553\" data-init-width=\"300\" height=\"88\" data-init-height=\"48\" title=\"Image 11\" loading=\"lazy\" src=\"https:\/\/rahulshettyacademy.com\/blog\/wp-content\/uploads\/2022\/06\/Image-11-4-300x48.jpg\" data-width=\"553\" data-height=\"88\" style=\"\"><\/span><\/p>\n<p>As seen below, we can also see the total processing time of the API request alongwith the categorization of the processing time (example, Socket initialization took 62.22 ms and so on)<\/p>\n<p><span><img decoding=\"async\" alt=\"\" data-id=\"2134\" width=\"539\" data-init-width=\"300\" height=\"392\" data-init-height=\"218\" title=\"Image 12\" loading=\"lazy\" src=\"https:\/\/rahulshettyacademy.com\/blog\/wp-content\/uploads\/2022\/06\/Image-12-4-300x218.jpg\" data-width=\"539\" data-height=\"392\" style=\"\"><\/span><\/p>\n<p>Next, see below diagram. We can see the size of data which is being transferred as part of this request viz we can see the size of \u2018Response\u2019 body\/headers. This is the resource size which server sends back as a response<\/p>\n<p><span><img decoding=\"async\" alt=\"\" data-id=\"2135\" width=\"514\" data-init-width=\"293\" height=\"526\" data-init-height=\"300\" title=\"Image 13\" loading=\"lazy\" src=\"https:\/\/rahulshettyacademy.com\/blog\/wp-content\/uploads\/2022\/06\/Image-13-4-293x300.jpg\" data-width=\"514\" data-height=\"526\" style=\"\"><\/span><\/p>\n<p>We can also see the size of \u2018Request\u2019 headers as can be seen above.<\/p>\n<p>Click \u2018Preview\u2019. This tab shows the page preview as shown below<\/p>\n<p><span><img decoding=\"async\" alt=\"\" data-id=\"2136\" width=\"497\" data-init-width=\"274\" height=\"544\" data-init-height=\"300\" title=\"Image 14\" loading=\"lazy\" src=\"https:\/\/rahulshettyacademy.com\/blog\/wp-content\/uploads\/2022\/06\/Image-14-4-274x300.jpg\" data-width=\"497\" data-height=\"544\" style=\"\"><\/span><\/p>\n<p>Click \u2018Raw\u2019. This section shows the data in raw format<\/p>\n<p><span><img decoding=\"async\" alt=\"\" data-id=\"2137\" width=\"552\" data-init-width=\"300\" height=\"344\" data-init-height=\"187\" title=\"Image 15\" loading=\"lazy\" src=\"https:\/\/rahulshettyacademy.com\/blog\/wp-content\/uploads\/2022\/06\/Image-15-4-300x187.jpg\" data-width=\"552\" data-height=\"344\" style=\"\"><\/span><\/p>\n<p>We generally use \u2018Pretty\u2019 format as shown below<\/p>\n<p><span><img decoding=\"async\" alt=\"\" data-id=\"2140\" width=\"532\" data-init-width=\"300\" height=\"330\" data-init-height=\"186\" title=\"Image 16\" loading=\"lazy\" src=\"https:\/\/rahulshettyacademy.com\/blog\/wp-content\/uploads\/2022\/06\/Image-16-3-300x186.jpg\" data-width=\"532\" data-height=\"330\" style=\"\"><\/span><\/p>\n<p>In the Pretty format, we can see the data in HTML, JSON, XML etc formats<\/p>\n<p><span><img decoding=\"async\" alt=\"\" data-id=\"2141\" width=\"526\" data-init-width=\"300\" height=\"293\" data-init-height=\"167\" title=\"Image 17\" loading=\"lazy\" src=\"https:\/\/rahulshettyacademy.com\/blog\/wp-content\/uploads\/2022\/06\/Image-17-2-300x167.jpg\" data-width=\"526\" data-height=\"293\" style=\"\"><\/span><\/p>\n<h3 id=\"t-1655554066557\"><b><b>5. <b><b><b>Brief understanding of Response Headers<\/b><\/b><\/b><\/b><\/b><\/h3>\n<p>The below diagram shows the \u2018Headers\u2019 of the response, example the \u2018Date\u2019 the request was created, content-type of the request which is text\/html etc<\/p>\n<p><span><img decoding=\"async\" alt=\"\" data-id=\"2142\" width=\"559\" data-init-width=\"300\" height=\"263\" data-init-height=\"141\" title=\"Image 18\" loading=\"lazy\" src=\"https:\/\/rahulshettyacademy.com\/blog\/wp-content\/uploads\/2022\/06\/Image-18-2-300x141.jpg\" data-width=\"559\" data-height=\"263\" style=\"\"><\/span><\/p>\n<h3 id=\"t-1655554066558\"><b><b>6. <b><b><b><b>Brief understanding of Request Headers<\/b><\/b><\/b><\/b><\/b><\/b><\/h3>\n<p>We know that some headers are automatically sent as part of request that we send to the server.<\/p>\n<p>See below, we can see 7 hidden headers that are being sent as part of the GET request<\/p>\n<p><span><img decoding=\"async\" alt=\"\" data-id=\"2143\" width=\"541\" data-init-width=\"300\" height=\"325\" data-init-height=\"180\" title=\"Image 19\" loading=\"lazy\" src=\"https:\/\/rahulshettyacademy.com\/blog\/wp-content\/uploads\/2022\/06\/Image-19-2-300x180.jpg\" data-width=\"541\" data-height=\"325\" style=\"\"><\/span><\/p>\n<p>Let us click \u20187 hidden\u2019 to see the request headers, example User-Agent etc<\/p>\n<p><span><img decoding=\"async\" alt=\"\" data-id=\"2144\" width=\"544\" data-init-width=\"300\" height=\"305\" data-init-height=\"168\" title=\"Image 20\" loading=\"lazy\" src=\"https:\/\/rahulshettyacademy.com\/blog\/wp-content\/uploads\/2022\/06\/Image-20-1-300x168.jpg\" data-width=\"544\" data-height=\"305\" style=\"\"><\/span><\/p>\n<p>Let us copy the below URI<\/p>\n<p><span><img decoding=\"async\" alt=\"\" data-id=\"2145\" width=\"519\" data-init-width=\"300\" height=\"114\" data-init-height=\"66\" title=\"Image 21\" loading=\"lazy\" src=\"https:\/\/rahulshettyacademy.com\/blog\/wp-content\/uploads\/2022\/06\/Image-21-1-300x66.jpg\" data-width=\"519\" data-height=\"114\" style=\"\"><\/span><\/p>\n<p>Open the browser and launch the above URI, see below<\/p>\n<p><span><img decoding=\"async\" alt=\"\" data-id=\"2146\" width=\"423\" data-init-width=\"205\" height=\"619\" data-init-height=\"300\" title=\"Image 22\" loading=\"lazy\" src=\"https:\/\/rahulshettyacademy.com\/blog\/wp-content\/uploads\/2022\/06\/Image-22-1-205x300.jpg\" data-width=\"423\" data-height=\"619\" style=\"\"><\/span><\/p>\n<p>We can see \u2018HTTP Methods\u2019 section as seen above.<\/p>\n<p>Let us click \u2018HTTP Methods\u2019. We can see various methods listed as can be seen below<\/p>\n<p><span><img decoding=\"async\" alt=\"\" data-id=\"2147\" width=\"502\" data-init-width=\"300\" height=\"460\" data-init-height=\"275\" title=\"Image 23\" loading=\"lazy\" src=\"https:\/\/rahulshettyacademy.com\/blog\/wp-content\/uploads\/2022\/06\/Image-23-1-300x275.jpg\" data-width=\"502\" data-height=\"460\" style=\"\"><\/span><\/p>\n<p>Let us click GET method and expand its description. Notice below that we see a <b>\/get<\/b> method that we can use in our query<\/p>\n<p><span><img decoding=\"async\" alt=\"\" data-id=\"2148\" width=\"519\" data-init-width=\"300\" height=\"213\" data-init-height=\"123\" title=\"Image 24\" loading=\"lazy\" src=\"https:\/\/rahulshettyacademy.com\/blog\/wp-content\/uploads\/2022\/06\/Image-24-1-300x123.jpg\" data-width=\"519\" data-height=\"213\" style=\"\"><\/span><\/p>\n<p>Let us go to the postman, open a new tab and append the \/get method to our GET request<\/p>\n<p><span><img decoding=\"async\" alt=\"\" data-id=\"2149\" width=\"540\" data-init-width=\"300\" height=\"99\" data-init-height=\"55\" title=\"Image 25\" loading=\"lazy\" src=\"https:\/\/rahulshettyacademy.com\/blog\/wp-content\/uploads\/2022\/06\/Image-25-1-300x55.jpg\" data-width=\"540\" data-height=\"99\" style=\"\"><\/span><\/p>\n<p>Click \u2018Send\u2019 to hit this request. The response of the GET request is as below. We can see arguments (which are currently zero), headers, url etc<\/p>\n<p><span><img decoding=\"async\" alt=\"\" data-id=\"2150\" width=\"519\" data-init-width=\"251\" height=\"620\" data-init-height=\"300\" title=\"Image 26\" loading=\"lazy\" src=\"https:\/\/rahulshettyacademy.com\/blog\/wp-content\/uploads\/2022\/06\/Image-26-1-251x300.jpg\" data-width=\"519\" data-height=\"620\" style=\"\"><\/span><\/p>\n<h3 id=\"t-1655554066559\"><b><b>7. <b><b><b><b><b>Send query parameter as part of GET request<\/b><\/b><\/b><\/b><\/b><\/b><\/b><\/h3>\n<p>Let us now send some dummy query parameter as part of GET request. We have studied in previous blog that the query parameter starts with <b>?<\/b><\/p>\n<p>Let the append the dummy query parameter <b>?dummyparam=TestUser1<\/b><\/p>\n<p><span><img decoding=\"async\" alt=\"\" data-id=\"2151\" width=\"549\" data-init-width=\"300\" height=\"75\" data-init-height=\"41\" title=\"Image 27\" loading=\"lazy\" src=\"https:\/\/rahulshettyacademy.com\/blog\/wp-content\/uploads\/2022\/06\/Image-27-1-300x41.jpg\" data-width=\"549\" data-height=\"75\" style=\"\"><\/span><\/p>\n<p>Hit Send. Notice below that we are getting the parameter as an argument in the response body<\/p>\n<p><span><img decoding=\"async\" alt=\"\" data-id=\"2152\" width=\"548\" data-init-width=\"300\" height=\"300\" data-init-height=\"164\" title=\"Image 28\" loading=\"lazy\" src=\"https:\/\/rahulshettyacademy.com\/blog\/wp-content\/uploads\/2022\/06\/Image-28-1-300x164.jpg\" data-width=\"548\" data-height=\"300\" style=\"\"><\/span><\/p>\n<p>Let us append another query parameter as part of the request<\/p>\n<p><span><img decoding=\"async\" alt=\"\" data-id=\"2153\" width=\"534\" data-init-width=\"300\" height=\"46\" data-init-height=\"26\" title=\"Image 29\" loading=\"lazy\" src=\"https:\/\/rahulshettyacademy.com\/blog\/wp-content\/uploads\/2022\/06\/Image-29-1-300x26.jpg\" data-width=\"534\" data-height=\"46\" style=\"\"><\/span><\/p>\n<p>Click Send. Notice now that we are getting both the parameters as an argument in the response body<\/p>\n<p><span><img decoding=\"async\" alt=\"\" data-id=\"2154\" width=\"527\" data-init-width=\"300\" height=\"278\" data-init-height=\"158\" title=\"Image 30\" loading=\"lazy\" src=\"https:\/\/rahulshettyacademy.com\/blog\/wp-content\/uploads\/2022\/06\/Image-30-1-300x158.jpg\" data-width=\"527\" data-height=\"278\" style=\"\"><\/span><\/p>\n<p>Also see below. Whatever query parameters we are sending as part of request, the same parameters get automatically created in the \u2018Params\u2019 section<\/p>\n<p><span><img decoding=\"async\" alt=\"\" data-id=\"2157\" width=\"563\" data-init-width=\"300\" height=\"225\" data-init-height=\"120\" title=\"Image 31\" loading=\"lazy\" src=\"https:\/\/rahulshettyacademy.com\/blog\/wp-content\/uploads\/2022\/06\/Image-31-1-300x120.jpg\" data-width=\"563\" data-height=\"225\" style=\"\"><\/span><\/p>\n<h3 id=\"t-1655554066560\"><b><b>&nbsp;8<\/b><\/b><b><b>. <b><b><b><b><b><b>Add query parameter in the \u2018Params\u2019 section<\/b><\/b><\/b><\/b><\/b><\/b><\/b><\/b><\/h3>\n<p>The vice versa is also true. Let us add the 3<sup>rd<\/sup> query parameter in the \u2018Params\u2019 section as shown below<\/p>\n<p><span><img decoding=\"async\" alt=\"\" data-id=\"2158\" width=\"559\" data-init-width=\"300\" height=\"250\" data-init-height=\"134\" title=\"Image 32\" loading=\"lazy\" src=\"https:\/\/rahulshettyacademy.com\/blog\/wp-content\/uploads\/2022\/06\/Image-32-300x134.jpg\" data-width=\"559\" data-height=\"250\" style=\"\"><\/span><\/p>\n<p>Notice that this 3<sup>rd<\/sup> query parameter gets automatically appended to the request URI<\/p>\n<p><span><img decoding=\"async\" alt=\"\" data-id=\"2159\" width=\"547\" data-init-width=\"300\" height=\"31\" data-init-height=\"17\" title=\"Image 33\" loading=\"lazy\" src=\"https:\/\/rahulshettyacademy.com\/blog\/wp-content\/uploads\/2022\/06\/Image-33-300x17.jpg\" data-width=\"547\" data-height=\"31\" style=\"\"><\/span><\/p>\n<p>Hit Send and notice the expected output shown below<\/p>\n<p><span><img decoding=\"async\" alt=\"\" data-id=\"2160\" width=\"533\" data-init-width=\"300\" height=\"288\" data-init-height=\"162\" title=\"Image 34\" loading=\"lazy\" src=\"https:\/\/rahulshettyacademy.com\/blog\/wp-content\/uploads\/2022\/06\/Image-34-300x162.jpg\" data-width=\"533\" data-height=\"288\" style=\"\"><\/span><\/p>\n<p>So this way, we can add the query parameters in the \u2018Params\u2019 section as well.This way, we can test our API manually with different sets of query parameters.<\/p>\n<h3 id=\"t-1655554066561\"><b><b>9<\/b><\/b><b><b>.&nbsp;<b><b><b><b><b><b><b>Remove query parameter from the \u2018Params\u2019 section<\/b><\/b><\/b><\/b><\/b><\/b><\/b><\/b><\/b><\/h3>\n<p>We can easily remove the query parameters by de-selecting the checkbox in the \u2018Params\u2019 section.<\/p>\n<p>Let us de-select dummyparam2<\/p>\n<p><span><img decoding=\"async\" alt=\"\" data-id=\"2163\" width=\"379\" data-init-width=\"173\" height=\"357\" data-init-height=\"163\" title=\"Image 35\" loading=\"lazy\" src=\"https:\/\/rahulshettyacademy.com\/blog\/wp-content\/uploads\/2022\/06\/Image-35.jpg\" data-width=\"379\" data-height=\"357\" style=\"\"><\/span><\/p>\n<p>Notice that dummyparam2 gets automatically removed from the URI as well<\/p>\n<p><span><img decoding=\"async\" alt=\"\" data-id=\"2164\" width=\"511\" data-init-width=\"300\" height=\"54\" data-init-height=\"32\" title=\"Image 36\" loading=\"lazy\" src=\"https:\/\/rahulshettyacademy.com\/blog\/wp-content\/uploads\/2022\/06\/Image-36-300x32.jpg\" data-width=\"511\" data-height=\"54\" style=\"\"><\/span><\/p>\n<p>Click Send. Notice the response output. The dummyparam2 is not a part of arguments<\/p>\n<p><span><img decoding=\"async\" alt=\"\" data-id=\"2165\" width=\"574\" data-init-width=\"300\" height=\"302\" data-init-height=\"158\" title=\"Image 37\" loading=\"lazy\" src=\"https:\/\/rahulshettyacademy.com\/blog\/wp-content\/uploads\/2022\/06\/Image-37-300x158.jpg\" data-width=\"574\" data-height=\"302\" style=\"\"><\/span><\/p>\n<h3 id=\"t-1655554066562\"><b><b>10<\/b><\/b><b><b>.&nbsp;<b><b><b><b><b><b><b><b>History of Requests<\/b><\/b><\/b><\/b><\/b><\/b><\/b><\/b><\/b><\/b><\/h3>\n<p>We can see all the requests that we have executed in the \u2018History\u2019 section, see below. We can execute any of these if we want to<\/p>\n<p><span><img decoding=\"async\" alt=\"\" data-id=\"2166\" width=\"397\" data-init-width=\"247\" height=\"482\" data-init-height=\"300\" title=\"Image 38\" loading=\"lazy\" src=\"https:\/\/rahulshettyacademy.com\/blog\/wp-content\/uploads\/2022\/06\/Image-38-247x300.jpg\" data-width=\"397\" data-height=\"482\" style=\"\"><\/span><\/p>\n<h3 id=\"t-1655554066563\"><b><b>11<\/b><\/b><b><b>.&nbsp;<b><b><b><b><b><b><b><b><b>Save the API calls<\/b><\/b><\/b><\/b><\/b><\/b><\/b><\/b><\/b><\/b><\/b><\/h3>\n<p>The red colored small circles means that the API request has not yet been saved<\/p>\n<p><span><img decoding=\"async\" alt=\"\" data-id=\"2167\" width=\"464\" data-init-width=\"300\" height=\"63\" data-init-height=\"41\" title=\"Image 39\" loading=\"lazy\" src=\"https:\/\/rahulshettyacademy.com\/blog\/wp-content\/uploads\/2022\/06\/Image-39-300x41.jpg\" data-width=\"464\" data-height=\"63\" style=\"\"><\/span><\/p>\n<p>To save any request, we have to click the \u2018Save\u2019 button<\/p>\n<p><span><img decoding=\"async\" alt=\"\" data-id=\"2168\" width=\"512\" data-init-width=\"300\" height=\"133\" data-init-height=\"78\" title=\"Image 40\" loading=\"lazy\" src=\"https:\/\/rahulshettyacademy.com\/blog\/wp-content\/uploads\/2022\/06\/Image-40-300x78.jpg\" data-width=\"512\" data-height=\"133\" style=\"\"><\/span><\/p>\n<p>So let us click \u2018Save\u2019.<\/p>\n<p>The below window comes up showing the default \u2018Request name\u2019<\/p>\n<p><span><img decoding=\"async\" alt=\"\" data-id=\"2169\" width=\"477\" data-init-width=\"300\" height=\"437\" data-init-height=\"275\" title=\"Image 41\" loading=\"lazy\" src=\"https:\/\/rahulshettyacademy.com\/blog\/wp-content\/uploads\/2022\/06\/Image-41-300x275.jpg\" data-width=\"477\" data-height=\"437\" style=\"\"><\/span><\/p>\n<p>Let us write some meaningful \u2018Request name\u2019, example \u2018GETRequestWithQueryParams\u2019<\/p>\n<p><span><img decoding=\"async\" alt=\"\" data-id=\"2170\" width=\"484\" data-init-width=\"300\" height=\"437\" data-init-height=\"271\" title=\"Image 42\" loading=\"lazy\" src=\"https:\/\/rahulshettyacademy.com\/blog\/wp-content\/uploads\/2022\/06\/Image-42-300x271.jpg\" data-width=\"484\" data-height=\"437\" style=\"\"><\/span><\/p>\n<p>Notice above that the \u2018Save\u2019 button is still disabled. The reason being, this request is not yet part of any collection.<\/p>\n<h3 id=\"t-1655554066564\"><b><b>12<\/b><\/b><b><b>.&nbsp;<b><b><b><b><b><b><b><b><b><b>Create Collection of GET Requests<\/b><\/b><\/b><\/b><\/b><\/b><\/b><\/b><\/b><\/b><\/b><\/b><\/h3>\n<p>Click \u2018Create a collection\u2019 button seen in the above figure. The below window would come up<\/p>\n<p><span><img decoding=\"async\" alt=\"\" data-id=\"2171\" width=\"503\" data-init-width=\"300\" height=\"490\" data-init-height=\"292\" title=\"Image 43\" loading=\"lazy\" src=\"https:\/\/rahulshettyacademy.com\/blog\/wp-content\/uploads\/2022\/06\/Image-43-300x292.jpg\" data-width=\"503\" data-height=\"490\" style=\"\"><\/span><\/p>\n<p>Enter some meaningful name in the \u2018Name your collection\u2019 text field<\/p>\n<p><span><img decoding=\"async\" alt=\"\" data-id=\"2172\" width=\"517\" data-init-width=\"300\" height=\"286\" data-init-height=\"166\" title=\"Image 44\" loading=\"lazy\" src=\"https:\/\/rahulshettyacademy.com\/blog\/wp-content\/uploads\/2022\/06\/Image-44-300x166.jpg\" data-width=\"517\" data-height=\"286\" style=\"\"><\/span><\/p>\n<p>Click \u2018Create\u2019 button seen next to the collection name text field (see above figure). The below window would come up<\/p>\n<p><span><img decoding=\"async\" alt=\"\" data-id=\"2173\" width=\"523\" data-init-width=\"300\" height=\"354\" data-init-height=\"203\" title=\"Image 45\" loading=\"lazy\" src=\"https:\/\/rahulshettyacademy.com\/blog\/wp-content\/uploads\/2022\/06\/Image-45-300x203.jpg\" data-width=\"523\" data-height=\"354\" style=\"\"><\/span><span><img decoding=\"async\" alt=\"\" data-id=\"2174\" width=\"474\" data-init-width=\"300\" height=\"460\" data-init-height=\"291\" title=\"Image 46\" loading=\"lazy\" src=\"https:\/\/rahulshettyacademy.com\/blog\/wp-content\/uploads\/2022\/06\/Image-46-300x291.jpg\" data-width=\"474\" data-height=\"460\" style=\"\"><\/span><\/p>\n<p>Now we can see that \u2018Save\u2019 button is enabled.<\/p>\n<p>Click \u2018Save\u2019. Notice below that red circle is not seen and the request gets saved<\/p>\n<p><span><img decoding=\"async\" alt=\"\" data-id=\"2175\" width=\"499\" data-init-width=\"239\" height=\"132\" data-init-height=\"63\" title=\"Image 47\" loading=\"lazy\" src=\"https:\/\/rahulshettyacademy.com\/blog\/wp-content\/uploads\/2022\/06\/Image-47.jpg\" data-width=\"499\" data-height=\"132\" style=\"\"><\/span><\/p>\n<p>We can see our collection in the \u2018Collections\u2019 section<\/p>\n<p><span><img decoding=\"async\" alt=\"\" data-id=\"2176\" width=\"482\" data-init-width=\"300\" height=\"204\" data-init-height=\"127\" title=\"Image 48\" loading=\"lazy\" src=\"https:\/\/rahulshettyacademy.com\/blog\/wp-content\/uploads\/2022\/06\/Image-48-300x127.jpg\" data-width=\"482\" data-height=\"204\" style=\"\"><\/span><\/p>\n<p>&nbsp;When we expand this collection, we can see our saved request(s)<\/p>\n<p><span><img decoding=\"async\" alt=\"\" data-id=\"2177\" width=\"524\" data-init-width=\"300\" height=\"136\" data-init-height=\"78\" title=\"Image 49\" loading=\"lazy\" src=\"https:\/\/rahulshettyacademy.com\/blog\/wp-content\/uploads\/2022\/06\/Image-49-300x78.jpg\" data-width=\"524\" data-height=\"136\" style=\"\"><\/span><\/p>\n<p>Similarly let us save below request<\/p>\n<p><span><img decoding=\"async\" alt=\"\" data-id=\"2180\" width=\"509\" data-init-width=\"300\" height=\"283\" data-init-height=\"167\" title=\"Image 50\" loading=\"lazy\" src=\"https:\/\/rahulshettyacademy.com\/blog\/wp-content\/uploads\/2022\/06\/Image-50-300x167.jpg\" data-width=\"509\" data-height=\"283\" style=\"\"><\/span><\/p>\n<p>Let us give some name<\/p>\n<p><span><img decoding=\"async\" alt=\"\" data-id=\"2181\" width=\"479\" data-init-width=\"300\" height=\"463\" data-init-height=\"290\" title=\"Image 51\" loading=\"lazy\" src=\"https:\/\/rahulshettyacademy.com\/blog\/wp-content\/uploads\/2022\/06\/Image-51-300x290.jpg\" data-width=\"479\" data-height=\"463\" style=\"\"><\/span><\/p>\n<p>Save.<\/p>\n<p>Notice below that we now have 2 requests saved in a single collection<\/p>\n<p><span><img decoding=\"async\" alt=\"\" data-id=\"2182\" width=\"500\" data-init-width=\"300\" height=\"203\" data-init-height=\"122\" title=\"Image 52\" loading=\"lazy\" src=\"https:\/\/rahulshettyacademy.com\/blog\/wp-content\/uploads\/2022\/06\/Image-52-300x122.jpg\" data-width=\"500\" data-height=\"203\" style=\"\"><\/span><\/p>\n<p>We can now click any of the above requests and hit the \u2018Send\u2019 button to execute the request.<\/p>\n<p>Below shows execution of \u2018GETRequestWithoutParams\u2019 request<\/p>\n<p><span><img decoding=\"async\" alt=\"\" data-id=\"2183\" width=\"554\" data-init-width=\"300\" height=\"225\" data-init-height=\"122\" title=\"Image 53\" loading=\"lazy\" src=\"https:\/\/rahulshettyacademy.com\/blog\/wp-content\/uploads\/2022\/06\/Image-53-300x122.jpg\" data-width=\"554\" data-height=\"225\" style=\"\"><\/span><\/p>\n<p>Below shows execution of \u2018GETRequestWithQueryParams\u2019 request<\/p>\n<p><span><img decoding=\"async\" alt=\"\" data-id=\"2184\" width=\"544\" data-init-width=\"300\" height=\"281\" data-init-height=\"155\" title=\"Image 54\" loading=\"lazy\" src=\"https:\/\/rahulshettyacademy.com\/blog\/wp-content\/uploads\/2022\/06\/Image-54-300x155.jpg\" data-width=\"544\" data-height=\"281\" style=\"\"><\/span><\/p>\n<p>So this is how we execute the GET Requests in Postman. In the next blog, we will see how to work with POST requests. We will also see how to chain GET and POST requests.<\/p>\n<p>Thank you for reading!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Hitting API GET Requests with Postman Welcome you all to the brand new \u2018API Testing\u2019 blog series! In the previous blog, we had learnt how to setup Postman. In this tutorial, we will learn how to hit a GET request using Postman!! So let us begin!!!&nbsp; 1. What you will Learn in this blog ? [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":2293,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-1926","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-uncategorized","post-wrapper","thrv_wrapper"],"_links":{"self":[{"href":"https:\/\/rahulshettyacademy.com\/blog\/index.php\/wp-json\/wp\/v2\/posts\/1926","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/rahulshettyacademy.com\/blog\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/rahulshettyacademy.com\/blog\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/rahulshettyacademy.com\/blog\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/rahulshettyacademy.com\/blog\/index.php\/wp-json\/wp\/v2\/comments?post=1926"}],"version-history":[{"count":18,"href":"https:\/\/rahulshettyacademy.com\/blog\/index.php\/wp-json\/wp\/v2\/posts\/1926\/revisions"}],"predecessor-version":[{"id":2305,"href":"https:\/\/rahulshettyacademy.com\/blog\/index.php\/wp-json\/wp\/v2\/posts\/1926\/revisions\/2305"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/rahulshettyacademy.com\/blog\/index.php\/wp-json\/wp\/v2\/media\/2293"}],"wp:attachment":[{"href":"https:\/\/rahulshettyacademy.com\/blog\/index.php\/wp-json\/wp\/v2\/media?parent=1926"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/rahulshettyacademy.com\/blog\/index.php\/wp-json\/wp\/v2\/categories?post=1926"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/rahulshettyacademy.com\/blog\/index.php\/wp-json\/wp\/v2\/tags?post=1926"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}