{"id":1929,"date":"2022-06-17T06:01:34","date_gmt":"2022-06-17T06:01:34","guid":{"rendered":"https:\/\/rahulshettyacademy.com\/blog\/index.php\/2022\/06\/17\/clone-of-api-basics-and-architecture\/"},"modified":"2022-06-19T16:17:12","modified_gmt":"2022-06-19T16:17:12","slug":"hittingpostrequests-chainrequests-using-postman","status":"publish","type":"post","link":"https:\/\/rahulshettyacademy.com\/blog\/index.php\/2022\/06\/17\/hittingpostrequests-chainrequests-using-postman\/","title":{"rendered":"HittingPOSTRequests &#038; ChainRequests using Postman"},"content":{"rendered":"<h3 id=\"t-1655567889007\"><b>Hitting POST Requests and chain 2 requests using Postman<\/b><\/h3>\n<p>Welcome you all to the brand new \u2018API Testing\u2019 blog series! In the previous blog, we had studied how to execute GET requests using Postman. In this tutorial, we will look at POST requests. We will also see how to chain GET and POST requests!! So let us begin!!!&nbsp;<\/p>\n<h3 id=\"t-1655567889008\"><b>1. <b>What you will Learn in this blog?<\/b><\/b><\/h3>\n<ul>\n<li>Hit POST request without parameters<\/li>\n<li>Hit POST request with parameters<\/li>\n<li>Save the POST Request<\/li>\n<li>Generate random unique IDs<\/li>\n<li>Capture static id and use it in another POST request<\/li>\n<li>Generate random id and use it in another POST request<\/li>\n<\/ul>\n<h3 id=\"t-1655567889009\"><b>2. <b><\/b><\/b><b>&nbsp;<b><\/b><\/b><b><b><b>Hit POST request without parameters<\/b><\/b><\/b><\/h3>\n<p>Let us now look at POST request. See below, we have <b>\/post<\/b> method that we can append with URI<\/p>\n<p><span><img decoding=\"async\" alt=\"\" data-id=\"2193\" width=\"497\" data-init-width=\"300\" height=\"348\" data-init-height=\"210\" title=\"Image 1\" loading=\"lazy\" src=\"https:\/\/rahulshettyacademy.com\/blog\/wp-content\/uploads\/2022\/06\/Image-1-5-300x210.jpg\" data-width=\"497\" data-height=\"348\" style=\"\"><\/span><\/p>\n<p>So, let us create a new request, select POST from dropdown, enter the URI and append it with <b>\/post<\/b> as shown below<\/p>\n<p><span><img decoding=\"async\" alt=\"\" data-id=\"2194\" width=\"523\" data-init-width=\"300\" height=\"228\" data-init-height=\"131\" title=\"Image 2\" loading=\"lazy\" src=\"https:\/\/rahulshettyacademy.com\/blog\/wp-content\/uploads\/2022\/06\/Image-2-5-300x131.jpg\" data-width=\"523\" data-height=\"228\" style=\"\"><\/span><\/p>\n<p>Since this is a POST request, we have to send some body (data) as part of this request. When we execute this request, the data will be posted(created) on the server viz a new record will get created on the server side.<\/p>\n<p>To add the body, see below. Go to the \u2018Body\u2019 section, select \u2018raw\u2019 radio button and further select JSON from the dropdown<\/p>\n<p><span><img decoding=\"async\" alt=\"\" data-id=\"2195\" width=\"551\" data-init-width=\"300\" height=\"121\" data-init-height=\"66\" title=\"Image 3\" loading=\"lazy\" src=\"https:\/\/rahulshettyacademy.com\/blog\/wp-content\/uploads\/2022\/06\/Image-3-5-300x66.jpg\" data-width=\"551\" data-height=\"121\" style=\"\"><\/span><\/p>\n<p>Add a very simple json body<\/p>\n<p><span><img decoding=\"async\" alt=\"\" data-id=\"2196\" width=\"502\" data-init-width=\"300\" height=\"301\" data-init-height=\"180\" title=\"Image 4\" loading=\"lazy\" src=\"https:\/\/rahulshettyacademy.com\/blog\/wp-content\/uploads\/2022\/06\/Image-4-5-300x180.jpg\" data-width=\"502\" data-height=\"301\" style=\"\"><\/span><\/p>\n<p>Click Send.<\/p>\n<p>The server sends the response in the form of json data output. The status code is 200<\/p>\n<p><span><img decoding=\"async\" alt=\"\" data-id=\"2198\" width=\"576\" data-init-width=\"300\" height=\"221\" data-init-height=\"115\" title=\"Image 5\" loading=\"lazy\" src=\"https:\/\/rahulshettyacademy.com\/blog\/wp-content\/uploads\/2022\/06\/Image-5-5-300x115.jpg\" data-width=\"576\" data-height=\"221\" style=\"\"><\/span><\/p>\n<h3 id=\"t-1655567889010\"><b>3.&nbsp;<\/b><b>\u200b<\/b><b><b><b><b>Hit POST request with parameters<\/b><\/b><\/b><\/b><\/h3>\n<p>Let us now add 2 parameters as part of our POST request<\/p>\n<p><span><img decoding=\"async\" alt=\"\" data-id=\"2201\" width=\"528\" data-init-width=\"300\" height=\"241\" data-init-height=\"137\" title=\"Image 6\" loading=\"lazy\" src=\"https:\/\/rahulshettyacademy.com\/blog\/wp-content\/uploads\/2022\/06\/Image-6-5-300x137.jpg\" data-width=\"528\" data-height=\"241\" style=\"\"><\/span><\/p>\n<p>Click Send.<\/p>\n<p>As expected, the 2 parameters are seen as arguments in the response body, see below<\/p>\n<p><span><img decoding=\"async\" alt=\"\" data-id=\"2202\" width=\"527\" data-init-width=\"300\" height=\"339\" data-init-height=\"193\" title=\"Image 7\" loading=\"lazy\" src=\"https:\/\/rahulshettyacademy.com\/blog\/wp-content\/uploads\/2022\/06\/Image-7-5-300x193.jpg\" data-width=\"527\" data-height=\"339\" style=\"\"><\/span><\/p>\n<p>The complete response body is as shown below<\/p>\n<p><span><img decoding=\"async\" alt=\"\" data-id=\"2203\" width=\"488\" data-init-width=\"300\" height=\"395\" data-init-height=\"243\" title=\"Image 8\" loading=\"lazy\" src=\"https:\/\/rahulshettyacademy.com\/blog\/wp-content\/uploads\/2022\/06\/Image-8-5-300x243.jpg\" data-width=\"488\" data-height=\"395\" style=\"\"><\/span><\/p>\n<h3 id=\"t-1655567889011\"><b>4.&nbsp;<\/b><b><b><b><b><b>Save the POST Request<\/b><\/b><\/b><\/b><\/b><\/h3>\n<p>Let us save this POST request by giving it some name and adding it to the same collection that we had created in our last blog<\/p>\n<p><span><img decoding=\"async\" alt=\"\" data-id=\"2204\" width=\"497\" data-init-width=\"300\" height=\"268\" data-init-height=\"162\" title=\"Image 9\" loading=\"lazy\" src=\"https:\/\/rahulshettyacademy.com\/blog\/wp-content\/uploads\/2022\/06\/Image-9-5-300x162.jpg\" data-width=\"497\" data-height=\"268\" style=\"\"><\/span><\/p>\n<p>Our collection now has 3 requests (2 GET requests and a single POST request)<\/p>\n<p><span><img decoding=\"async\" alt=\"\" data-id=\"2205\" width=\"540\" data-init-width=\"300\" height=\"265\" data-init-height=\"147\" title=\"Image 10\" loading=\"lazy\" src=\"https:\/\/rahulshettyacademy.com\/blog\/wp-content\/uploads\/2022\/06\/Image-10-5-300x147.jpg\" data-width=\"540\" data-height=\"265\" style=\"\"><\/span><\/p>\n<h3 id=\"t-1655567889012\"><b>5.&nbsp;<\/b><b><b><b><b><b><b>Generate random unique IDs<\/b><\/b><\/b><\/b><\/b><\/b><\/h3>\n<p>Let us see how to generate random unique IDs using the <b>\/uuid<\/b> method. This method can be seen in the website as shown below<\/p>\n<p><span><img decoding=\"async\" alt=\"\" data-id=\"2206\" width=\"539\" data-init-width=\"300\" height=\"221\" data-init-height=\"123\" title=\"Image 11\" loading=\"lazy\" src=\"https:\/\/rahulshettyacademy.com\/blog\/wp-content\/uploads\/2022\/06\/Image-11-5-300x123.jpg\" data-width=\"539\" data-height=\"221\" style=\"\"><\/span><\/p>\n<p>Copy the URI <a href=\"https:\/\/httpbin.org\/uuid\" style=\"outline: none;\" target=\"_blank\" rel=\"noopener\">https:\/\/httpbin.org<b>\/uuid<\/b><\/a><\/p>\n<p>Paste it as shown below (this is a GET request)<\/p>\n<p><span><img decoding=\"async\" alt=\"\" data-id=\"2207\" width=\"456\" data-init-width=\"300\" height=\"73\" data-init-height=\"48\" title=\"Image 12\" loading=\"lazy\" src=\"https:\/\/rahulshettyacademy.com\/blog\/wp-content\/uploads\/2022\/06\/Image-12-5-300x48.jpg\" data-width=\"456\" data-height=\"73\" style=\"\"><\/span><\/p>\n<p>Click Send.<\/p>\n<p>Notice below that a unique id is generated in the response body<\/p>\n<p><span><img decoding=\"async\" alt=\"\" data-id=\"2208\" width=\"522\" data-init-width=\"300\" height=\"162\" data-init-height=\"93\" title=\"Image 13\" loading=\"lazy\" src=\"https:\/\/rahulshettyacademy.com\/blog\/wp-content\/uploads\/2022\/06\/Image-13-5-300x93.jpg\" data-width=\"522\" data-height=\"162\" style=\"\"><\/span><\/p>\n<p>Click \u2018Send\u2019 again.<\/p>\n<p>Notice below that another unique id is generated and is different from the above id<\/p>\n<p><span><img decoding=\"async\" alt=\"\" data-id=\"2209\" width=\"542\" data-init-width=\"300\" height=\"126\" data-init-height=\"70\" title=\"Image 14\" loading=\"lazy\" src=\"https:\/\/rahulshettyacademy.com\/blog\/wp-content\/uploads\/2022\/06\/Image-14-5-300x70.jpg\" data-width=\"542\" data-height=\"126\" style=\"\"><\/span><\/p>\n<p>This way, we can keep generating different unique random IDs.<\/p>\n<h3 id=\"t-1655567889013\"><b>6.&nbsp;<\/b><b><b><b><b><b><b><b>Capture static id and use it in another POST request<\/b><\/b><\/b><\/b><\/b><\/b><\/b><\/h3>\n<p>Sometimes, we have a requirement to capture response of 1st request and send that response as an input to the 2<sup>nd<\/sup> request.&nbsp;<\/p>\n<p>Another similar requirement can be: to generate a random id (uuid), capture this id and send it as part of another POST request. The below diagram depicts this scenario<\/p>\n<p><span><img decoding=\"async\" alt=\"\" data-id=\"2226\" width=\"538\" data-init-width=\"300\" height=\"99\" data-init-height=\"55\" title=\"Image 15\" loading=\"lazy\" src=\"https:\/\/rahulshettyacademy.com\/blog\/wp-content\/uploads\/2022\/06\/Image-15-5-300x55.jpg\" data-width=\"538\" data-height=\"99\" style=\"\"><\/span><\/p>\n<p>Let us first see how to capture the <u>static<\/u> id from one request and use it in another request.<\/p>\n<p>Click \u2018Tests\u2019 section<\/p>\n<p><span><img decoding=\"async\" alt=\"\" data-id=\"2227\" width=\"555\" data-init-width=\"300\" height=\"109\" data-init-height=\"59\" title=\"Image 16\" loading=\"lazy\" src=\"https:\/\/rahulshettyacademy.com\/blog\/wp-content\/uploads\/2022\/06\/Image-16-4-300x59.jpg\" data-width=\"555\" data-height=\"109\" style=\"\"><\/span><\/p>\n<p>Under \u2018Tests\u2019 section, we see a snippet \u2018Set a global variable\u2019. We can use this snippet to work with the variables<\/p>\n<p><span><img decoding=\"async\" alt=\"\" data-id=\"2230\" width=\"566\" data-init-width=\"300\" height=\"187\" data-init-height=\"99\" title=\"Image 17\" loading=\"lazy\" src=\"https:\/\/rahulshettyacademy.com\/blog\/wp-content\/uploads\/2022\/06\/Image-17-3-300x99.jpg\" data-width=\"566\" data-height=\"187\" style=\"\"><\/span><\/p>\n<p>Click this function \u2018Set a global variable\u2019. The below code gets generated<\/p>\n<p><span><img decoding=\"async\" alt=\"\" data-id=\"2231\" width=\"577\" data-init-width=\"300\" height=\"125\" data-init-height=\"65\" title=\"Image 18\" loading=\"lazy\" src=\"https:\/\/rahulshettyacademy.com\/blog\/wp-content\/uploads\/2022\/06\/Image-18-3-300x65.jpg\" data-width=\"577\" data-height=\"125\" style=\"\"><\/span><\/p>\n<p>In the above sample code, we can see 2 <u>global<\/u> variables: \u2018variable_key\u2019 and \u2018variable_value\u2019.<\/p>\n<p>Since these are global variables, we can call and use them in other requests as well.<\/p>\n<p>Let us suppose the value of the variable \u2018variable_key\u2019 is uuid<\/p>\n<p><span><img decoding=\"async\" alt=\"\" data-id=\"2232\" width=\"572\" data-init-width=\"300\" height=\"92\" data-init-height=\"48\" title=\"Image 19\" loading=\"lazy\" src=\"https:\/\/rahulshettyacademy.com\/blog\/wp-content\/uploads\/2022\/06\/Image-19-3-300x48.jpg\" data-width=\"572\" data-height=\"92\" style=\"\"><\/span><\/p>\n<p>Let us hard code the value of the variable \u2018variable_value\u2019 as t123, see below<\/p>\n<p><span><img decoding=\"async\" alt=\"\" data-id=\"2233\" width=\"534\" data-init-width=\"300\" height=\"87\" data-init-height=\"49\" title=\"Image 20\" loading=\"lazy\" src=\"https:\/\/rahulshettyacademy.com\/blog\/wp-content\/uploads\/2022\/06\/Image-20-2-300x49.jpg\" data-width=\"534\" data-height=\"87\" style=\"\"><\/span><\/p>\n<p>Click \u2018Send\u2019 to execute the GET request<\/p>\n<p><span><img decoding=\"async\" alt=\"\" data-id=\"2234\" width=\"523\" data-init-width=\"300\" height=\"314\" data-init-height=\"180\" title=\"Image 21\" loading=\"lazy\" src=\"https:\/\/rahulshettyacademy.com\/blog\/wp-content\/uploads\/2022\/06\/Image-21-2-300x180.jpg\" data-width=\"523\" data-height=\"314\" style=\"\"><\/span><\/p>\n<p>Now we would like to send the above global \u2018uuid\u2019 variable in another POST request.<\/p>\n<p>We have one POST request saved in our collection<\/p>\n<p><span><img decoding=\"async\" alt=\"\" data-id=\"2235\" width=\"524\" data-init-width=\"300\" height=\"332\" data-init-height=\"190\" title=\"Image 22\" loading=\"lazy\" src=\"https:\/\/rahulshettyacademy.com\/blog\/wp-content\/uploads\/2022\/06\/Image-22-2-300x190.jpg\" data-width=\"524\" data-height=\"332\" style=\"\"><\/span><\/p>\n<p>Open this POST request. Make sure \u2018Body\u2019 and \u2018raw\u2019 section are selected as shown below<\/p>\n<p><span><img decoding=\"async\" alt=\"\" data-id=\"2236\" width=\"554\" data-init-width=\"300\" height=\"294\" data-init-height=\"159\" title=\"Image 23\" loading=\"lazy\" src=\"https:\/\/rahulshettyacademy.com\/blog\/wp-content\/uploads\/2022\/06\/Image-23-2-300x159.jpg\" data-width=\"554\" data-height=\"294\" style=\"\"><\/span><\/p>\n<p>To capture the value of global \u2018uuid\u2019 variable (from our GET request), we need to mention the \u2018uuid\u2019 variable in double curly braces {{}} as shown below<\/p>\n<p><span><img decoding=\"async\" alt=\"\" data-id=\"2237\" width=\"479\" data-init-width=\"300\" height=\"431\" data-init-height=\"270\" title=\"Image 24\" loading=\"lazy\" src=\"https:\/\/rahulshettyacademy.com\/blog\/wp-content\/uploads\/2022\/06\/Image-24-2-300x270.jpg\" data-width=\"479\" data-height=\"431\" style=\"\"><\/span><\/p>\n<p>So basically, we have created a variable \u2018id\u2019 as shown above and the value of this \u2018id\u2019 variable would be the value of \u2018uuid\u2019 variable that would be fetched from the GET request.<\/p>\n<p>Click \u2018Send\u2019 to execute this POST request.<\/p>\n<p>Notice the json response below. The value of \u2018uuid\u2019 variable (t123) gets fetched from the GET request &nbsp;<\/p>\n<p><span><img decoding=\"async\" alt=\"\" data-id=\"2238\" width=\"523\" data-init-width=\"223\" height=\"704\" data-init-height=\"300\" title=\"Image 25\" loading=\"lazy\" src=\"https:\/\/rahulshettyacademy.com\/blog\/wp-content\/uploads\/2022\/06\/Image-25-2-223x300.jpg\" data-width=\"523\" data-height=\"704\" style=\"\"><\/span><\/p>\n<h3 id=\"t-1655567889014\"><b>7.&nbsp;<\/b><b><b><b><b><b><b><b><b>Generate random id and use it in another POST request<\/b><\/b><\/b><\/b><\/b><\/b><\/b><\/b><\/h3>\n<p>In the above scenario, we captured the hard coded value of uuid from GET request and used it in another POST request.<\/p>\n<p>Our actual requirement is to capture the random (dynamic) uuid from one request and use it in another request.<\/p>\n<p>Recall that, below is the sample random uuid as part of json response<\/p>\n<p><span><img decoding=\"async\" alt=\"\" data-id=\"2239\" width=\"527\" data-init-width=\"300\" height=\"337\" data-init-height=\"192\" title=\"Image 26\" loading=\"lazy\" src=\"https:\/\/rahulshettyacademy.com\/blog\/wp-content\/uploads\/2022\/06\/Image-26-2-300x192.jpg\" data-width=\"527\" data-height=\"337\" style=\"\"><\/span><\/p>\n<p>To capture this json response, we can use the below code snippet. We are defining a variable jsn_response and inside this variable we are capturing the json response at runtime. Notice that we have pm.response.<b>json()<\/b> method available<\/p>\n<p><span><img decoding=\"async\" alt=\"\" data-id=\"2240\" width=\"549\" data-init-width=\"300\" height=\"220\" data-init-height=\"120\" title=\"Image 27\" loading=\"lazy\" src=\"https:\/\/rahulshettyacademy.com\/blog\/wp-content\/uploads\/2022\/06\/Image-27-2-300x120.jpg\" data-width=\"549\" data-height=\"220\" style=\"\"><\/span><\/p>\n<p>So we can write<\/p>\n<p><span><img decoding=\"async\" alt=\"\" data-id=\"2241\" width=\"509\" data-init-width=\"300\" height=\"190\" data-init-height=\"112\" title=\"Image 28\" loading=\"lazy\" src=\"https:\/\/rahulshettyacademy.com\/blog\/wp-content\/uploads\/2022\/06\/Image-28-2-300x112.jpg\" data-width=\"509\" data-height=\"190\" style=\"\"><\/span><\/p>\n<p>So the variable <b>jsn_response <\/b>holds the entire json response, including the value of uuid that gets generated during runtime, example, ec7e14f4-ef6e-47c9-9ec0-63b6524d7a94.<\/p>\n<p>Next, we will remove the hard coded value \u2018t123\u2019. Instead of that, we will write <b>jsn_response.uuid<\/b><\/p>\n<p><span><img decoding=\"async\" alt=\"\" data-id=\"2242\" width=\"556\" data-init-width=\"300\" height=\"228\" data-init-height=\"123\" title=\"Image 29\" loading=\"lazy\" src=\"https:\/\/rahulshettyacademy.com\/blog\/wp-content\/uploads\/2022\/06\/Image-29-2-300x123.jpg\" data-width=\"556\" data-height=\"228\" style=\"\"><\/span><\/p>\n<p><b>&nbsp;<\/b>So we have<\/p>\n<p><span><img decoding=\"async\" alt=\"\" data-id=\"2243\" width=\"509\" data-init-width=\"300\" height=\"195\" data-init-height=\"115\" title=\"Image 30\" loading=\"lazy\" src=\"https:\/\/rahulshettyacademy.com\/blog\/wp-content\/uploads\/2022\/06\/Image-30-2-300x115.jpg\" data-width=\"509\" data-height=\"195\" style=\"\"><\/span><\/p>\n<p>Let us now hit the \u2018Send\u2019 button of this GET request. The random uuid gets generated<\/p>\n<p><span><img decoding=\"async\" alt=\"\" data-id=\"2246\" width=\"535\" data-init-width=\"300\" height=\"335\" data-init-height=\"188\" title=\"Image 31\" loading=\"lazy\" src=\"https:\/\/rahulshettyacademy.com\/blog\/wp-content\/uploads\/2022\/06\/Image-31-2-300x188.jpg\" data-width=\"535\" data-height=\"335\" style=\"\"><\/span><\/p>\n<p>Let us now go to the POST request and hit the \u2018Send\u2019 button. Notice below that the value of \u2018id\u2019 is same as the value of uuid that was generated in the above screenshot<\/p>\n<p><span><img decoding=\"async\" alt=\"\" data-id=\"2247\" width=\"530\" data-init-width=\"300\" height=\"348\" data-init-height=\"197\" title=\"Image 32\" loading=\"lazy\" src=\"https:\/\/rahulshettyacademy.com\/blog\/wp-content\/uploads\/2022\/06\/Image-32-1-300x197.jpg\" data-width=\"530\" data-height=\"348\" style=\"\"><\/span><\/p>\n<p>Go to the GET request and let us hit the \u2018Send\u2019 button one more time. Note down the value of uuid, see below<\/p>\n<p><span><img decoding=\"async\" alt=\"\" data-id=\"2248\" width=\"503\" data-init-width=\"300\" height=\"334\" data-init-height=\"199\" title=\"Image 33\" loading=\"lazy\" src=\"https:\/\/rahulshettyacademy.com\/blog\/wp-content\/uploads\/2022\/06\/Image-33-1-300x199.jpg\" data-width=\"503\" data-height=\"334\" style=\"\"><\/span><\/p>\n<p>Go to the POST request and hit the \u2018Send\u2019 button.<\/p>\n<p>Notice that the value of \u2018id\u2019 is same as the value of \u2018uuid\u2019 generated above<\/p>\n<p><span><img decoding=\"async\" alt=\"\" data-id=\"2249\" width=\"517\" data-init-width=\"300\" height=\"307\" data-init-height=\"178\" title=\"Image 34\" loading=\"lazy\" src=\"https:\/\/rahulshettyacademy.com\/blog\/wp-content\/uploads\/2022\/06\/Image-34-1-300x178.jpg\" data-width=\"517\" data-height=\"307\" style=\"\"><\/span><\/p>\n<p>Save the requests<\/p>\n<p><span><img decoding=\"async\" alt=\"\" data-id=\"2250\" width=\"524\" data-init-width=\"300\" height=\"276\" data-init-height=\"158\" title=\"Image 35\" loading=\"lazy\" src=\"https:\/\/rahulshettyacademy.com\/blog\/wp-content\/uploads\/2022\/06\/Image-35-1-300x158.jpg\" data-width=\"524\" data-height=\"276\" style=\"\"><\/span><\/p>\n<p>Let us drag \u2018GET_uuid\u2019 request above \u2018POSTwithParams\u2019, see below<\/p>\n<p><span><img decoding=\"async\" alt=\"\" data-id=\"2251\" width=\"545\" data-init-width=\"300\" height=\"322\" data-init-height=\"177\" title=\"Image 36\" loading=\"lazy\" src=\"https:\/\/rahulshettyacademy.com\/blog\/wp-content\/uploads\/2022\/06\/Image-36-1-300x177.jpg\" data-width=\"545\" data-height=\"322\" style=\"\"><\/span><\/p>\n<p>So this is how we can chain the GET and POST requests.<\/p>\n<p>In the next article, we will perform some Test validations in the POST request. We will also see how to handle cookies.<\/p>\n<p>Thank you for reading!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Hitting POST Requests and chain 2 requests using Postman Welcome you all to the brand new \u2018API Testing\u2019 blog series! In the previous blog, we had studied how to execute GET requests using Postman. In this tutorial, we will look at POST requests. We will also see how to chain GET and POST requests!! So [&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-1929","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\/1929","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=1929"}],"version-history":[{"count":32,"href":"https:\/\/rahulshettyacademy.com\/blog\/index.php\/wp-json\/wp\/v2\/posts\/1929\/revisions"}],"predecessor-version":[{"id":2307,"href":"https:\/\/rahulshettyacademy.com\/blog\/index.php\/wp-json\/wp\/v2\/posts\/1929\/revisions\/2307"}],"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=1929"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/rahulshettyacademy.com\/blog\/index.php\/wp-json\/wp\/v2\/categories?post=1929"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/rahulshettyacademy.com\/blog\/index.php\/wp-json\/wp\/v2\/tags?post=1929"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}