{"id":3670,"date":"2017-11-03T11:01:20","date_gmt":"2017-11-03T05:31:20","guid":{"rendered":"https:\/\/www.innovationm.com\/blog\/?p=3670"},"modified":"2017-11-03T11:01:20","modified_gmt":"2017-11-03T05:31:20","slug":"postman-proxy-and-mock-server","status":"publish","type":"post","link":"https:\/\/www.innovationm.com\/blog\/postman-proxy-and-mock-server\/","title":{"rendered":"Postman &#8211; Proxy and Mock Server"},"content":{"rendered":"<h2>Introduction:<\/h2>\n<p>Postman is Google Chrome app to send HTTP request and get response. It provides a user friendly UI for creating request and reading response.<\/p>\n<h2>Features of postman:<\/h2>\n<ul>\n<li>It is simple and powerful tool with friendly interface.<\/li>\n<li>Saved the history of all API Request.<\/li>\n<li>Unlimited collections, environments, tests and shares.<\/li>\n<li>Automated testing with collection runner<\/li>\n<li>It\u00a0generates and hosts browser-based API documentation for your collections automatically in real-time.<\/li>\n<li>You can run collection periodically to check the performance and accuracy.<\/li>\n<li>Mock servers can simulate each endpoint to view the required response without changing in backend.<\/li>\n<\/ul>\n<h2>How to use Postman:<\/h2>\n<p>To use postman first you need to install postman from <strong>Google Chrome.\u00a0<\/strong><\/p>\n<h3>Installation:<\/h3>\n<ul>\n<li>Open Google Chrome and click on <strong>Apps\u00a0<\/strong>on right most corner.<\/li>\n<li>Now click on\u00a0<strong>Postman<\/strong>\u00a0or click\u00a0<a href=\"https:\/\/www.getpostman.com\/apps\" target=\"_blank\" rel=\"noopener\">here<\/a>.<\/li>\n<li>Select\u00a0<strong>Download\u00a0<\/strong>button.<\/li>\n<li>In mac, after installing the app drag it in\u00a0<strong>Applications.<\/strong><\/li>\n<li>Now sign in to your postman account. By doing this all the history and collection will sync with your app.<\/li>\n<\/ul>\n<p>Now Postman is ready to use. Here you can send request and do other given work.<\/p>\n<h3>Sending API Request:<\/h3>\n<p>Open\u00a0<strong>Builder\u00a0<\/strong>tab to send request. To get response you need to tell the postman following things:<\/p>\n<ol>\n<li>HTTP method<\/li>\n<li>URL<\/li>\n<li>Request Header<\/li>\n<li>Request Body<\/li>\n<\/ol>\n<p>Enter your URL in <em>request URL<\/em> field and select HTTP method and enter.<\/p>\n<p><img fetchpriority=\"high\" decoding=\"async\" class=\"alignnone wp-image-3697\" src=\"https:\/\/www.innovationm.com\/blog\/wp-content\/uploads\/2017\/10\/Screen-Shot-2017-10-27-at-2.12.13-PM.png\" alt=\"\" width=\"754\" height=\"414\" srcset=\"https:\/\/www.innovationm.com\/blog\/wp-content\/uploads\/2017\/10\/Screen-Shot-2017-10-27-at-2.12.13-PM.png 1235w, https:\/\/www.innovationm.com\/blog\/wp-content\/uploads\/2017\/10\/Screen-Shot-2017-10-27-at-2.12.13-PM-300x165.png 300w, https:\/\/www.innovationm.com\/blog\/wp-content\/uploads\/2017\/10\/Screen-Shot-2017-10-27-at-2.12.13-PM-768x422.png 768w, https:\/\/www.innovationm.com\/blog\/wp-content\/uploads\/2017\/10\/Screen-Shot-2017-10-27-at-2.12.13-PM-1024x562.png 1024w, https:\/\/www.innovationm.com\/blog\/wp-content\/uploads\/2017\/10\/Screen-Shot-2017-10-27-at-2.12.13-PM-624x343.png 624w\" sizes=\"(max-width: 754px) 100vw, 754px\" \/><\/p>\n<p>You will get your response in <em>response field\u00a0<\/em> as given below:<\/p>\n<p><img decoding=\"async\" class=\"aligncenter size-full wp-image-3705\" src=\"https:\/\/www.innovationm.com\/blog\/wp-content\/uploads\/2017\/10\/Screen-Shot-2017-10-27-at-3.14.42-PM-1.png\" alt=\"\" width=\"1032\" height=\"613\" srcset=\"https:\/\/www.innovationm.com\/blog\/wp-content\/uploads\/2017\/10\/Screen-Shot-2017-10-27-at-3.14.42-PM-1.png 1032w, https:\/\/www.innovationm.com\/blog\/wp-content\/uploads\/2017\/10\/Screen-Shot-2017-10-27-at-3.14.42-PM-1-300x178.png 300w, https:\/\/www.innovationm.com\/blog\/wp-content\/uploads\/2017\/10\/Screen-Shot-2017-10-27-at-3.14.42-PM-1-768x456.png 768w, https:\/\/www.innovationm.com\/blog\/wp-content\/uploads\/2017\/10\/Screen-Shot-2017-10-27-at-3.14.42-PM-1-1024x608.png 1024w, https:\/\/www.innovationm.com\/blog\/wp-content\/uploads\/2017\/10\/Screen-Shot-2017-10-27-at-3.14.42-PM-1-624x371.png 624w\" sizes=\"(max-width: 1032px) 100vw, 1032px\" \/><\/p>\n<p>If can also add any kind of authorization, headers, body etc below the Request URL field.<br \/>\nFor example, to add header, select section. If will show you Key-Value field. Enter you keys and values here.<\/p>\n<p><img decoding=\"async\" class=\"aligncenter size-full wp-image-3707\" src=\"https:\/\/www.innovationm.com\/blog\/wp-content\/uploads\/2017\/10\/Screen-Shot-2017-10-27-at-3.30.07-PM.png\" alt=\"\" width=\"1016\" height=\"374\" srcset=\"https:\/\/www.innovationm.com\/blog\/wp-content\/uploads\/2017\/10\/Screen-Shot-2017-10-27-at-3.30.07-PM.png 1016w, https:\/\/www.innovationm.com\/blog\/wp-content\/uploads\/2017\/10\/Screen-Shot-2017-10-27-at-3.30.07-PM-300x110.png 300w, https:\/\/www.innovationm.com\/blog\/wp-content\/uploads\/2017\/10\/Screen-Shot-2017-10-27-at-3.30.07-PM-768x283.png 768w, https:\/\/www.innovationm.com\/blog\/wp-content\/uploads\/2017\/10\/Screen-Shot-2017-10-27-at-3.30.07-PM-624x230.png 624w\" sizes=\"(max-width: 1016px) 100vw, 1016px\" \/><\/p>\n<p>If you wish to send POST request, Select POST instead of get. It will enable body field. In body field you can add all the parameter in which format you want to add. You can also send multipart request with the help of postman.<\/p>\n<p>To send data in simple key-value then select form data. It will show key value field to enter data.<br \/>\nIf you want to upload any file with data, then simply select the button\u00a0<strong>Text\u00a0<\/strong>and change it to file. It will give you option to choose your file. Now send the request.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-3715\" src=\"https:\/\/www.innovationm.com\/blog\/wp-content\/uploads\/2017\/10\/Screen-Shot-2017-10-27-at-4.38.24-PM.png\" alt=\"\" width=\"1028\" height=\"294\" srcset=\"https:\/\/www.innovationm.com\/blog\/wp-content\/uploads\/2017\/10\/Screen-Shot-2017-10-27-at-4.38.24-PM.png 1028w, https:\/\/www.innovationm.com\/blog\/wp-content\/uploads\/2017\/10\/Screen-Shot-2017-10-27-at-4.38.24-PM-300x86.png 300w, https:\/\/www.innovationm.com\/blog\/wp-content\/uploads\/2017\/10\/Screen-Shot-2017-10-27-at-4.38.24-PM-768x220.png 768w, https:\/\/www.innovationm.com\/blog\/wp-content\/uploads\/2017\/10\/Screen-Shot-2017-10-27-at-4.38.24-PM-1024x293.png 1024w, https:\/\/www.innovationm.com\/blog\/wp-content\/uploads\/2017\/10\/Screen-Shot-2017-10-27-at-4.38.24-PM-624x178.png 624w\" sizes=\"(max-width: 1028px) 100vw, 1028px\" \/><\/p>\n<p>But if you want to send data in other format like json, xml, javascript etc then select\u00a0<strong>raw\u00a0<\/strong>and then select the type. Now enter your data in field and send request. The response will be shown in response field.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-3712\" src=\"https:\/\/www.innovationm.com\/blog\/wp-content\/uploads\/2017\/10\/Screen-Shot-2017-10-27-at-4.27.20-PM-1.png\" alt=\"\" width=\"1022\" height=\"364\" srcset=\"https:\/\/www.innovationm.com\/blog\/wp-content\/uploads\/2017\/10\/Screen-Shot-2017-10-27-at-4.27.20-PM-1.png 1022w, https:\/\/www.innovationm.com\/blog\/wp-content\/uploads\/2017\/10\/Screen-Shot-2017-10-27-at-4.27.20-PM-1-300x107.png 300w, https:\/\/www.innovationm.com\/blog\/wp-content\/uploads\/2017\/10\/Screen-Shot-2017-10-27-at-4.27.20-PM-1-768x274.png 768w, https:\/\/www.innovationm.com\/blog\/wp-content\/uploads\/2017\/10\/Screen-Shot-2017-10-27-at-4.27.20-PM-1-624x222.png 624w\" sizes=\"(max-width: 1022px) 100vw, 1022px\" \/><\/p>\n<p>You can use\u00a0<strong>x-www-form-u<\/strong><strong>rlencoded\u00a0<\/strong>for parameter and values which are used with url. It append these key-values in url properly and send request.<\/p>\n<h3>Handling Response:<\/h3>\n<p>When you hit the send button you get response in response viewer. Response can be shown in any format and we can also save our response. Here you can get body and header of response, cookie, status and response time.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-3760\" src=\"https:\/\/www.innovationm.com\/blog\/wp-content\/uploads\/2017\/10\/Screen-Shot-2017-10-30-at-12.27.49-PM.png\" alt=\"\" width=\"892\" height=\"63\" srcset=\"https:\/\/www.innovationm.com\/blog\/wp-content\/uploads\/2017\/10\/Screen-Shot-2017-10-30-at-12.27.49-PM.png 892w, https:\/\/www.innovationm.com\/blog\/wp-content\/uploads\/2017\/10\/Screen-Shot-2017-10-30-at-12.27.49-PM-300x21.png 300w, https:\/\/www.innovationm.com\/blog\/wp-content\/uploads\/2017\/10\/Screen-Shot-2017-10-30-at-12.27.49-PM-768x54.png 768w, https:\/\/www.innovationm.com\/blog\/wp-content\/uploads\/2017\/10\/Screen-Shot-2017-10-30-at-12.27.49-PM-624x44.png 624w\" sizes=\"(max-width: 892px) 100vw, 892px\" \/><\/p>\n<p>You can view response in different formats like JSON, XML, HTML etc.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-3762\" src=\"https:\/\/www.innovationm.com\/blog\/wp-content\/uploads\/2017\/10\/Screen-Shot-2017-10-30-at-12.33.45-PM.png\" alt=\"\" width=\"360\" height=\"279\" srcset=\"https:\/\/www.innovationm.com\/blog\/wp-content\/uploads\/2017\/10\/Screen-Shot-2017-10-30-at-12.33.45-PM.png 360w, https:\/\/www.innovationm.com\/blog\/wp-content\/uploads\/2017\/10\/Screen-Shot-2017-10-30-at-12.33.45-PM-300x233.png 300w\" sizes=\"(max-width: 360px) 100vw, 360px\" \/><\/p>\n<p><strong>Pretty<\/strong>\u00a0shows the response more clean and easy to understand. It highlights the link given in response. If you click on URL in response, it will be opened in new tab in postman. To collapse large response you can select the little triangle with line number.<\/p>\n<p><strong>Raw\u00a0<\/strong>shows response as it received.<\/p>\n<p><strong>Preview<\/strong>\u00a0tab renders the response in a sandboxed iframe. In this, javaScript and images are disabled due to\u00a0iframe sandbox restrictions.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-3764\" src=\"https:\/\/www.innovationm.com\/blog\/wp-content\/uploads\/2017\/10\/Screen-Shot-2017-10-30-at-12.56.42-PM.png\" alt=\"\" width=\"890\" height=\"273\" srcset=\"https:\/\/www.innovationm.com\/blog\/wp-content\/uploads\/2017\/10\/Screen-Shot-2017-10-30-at-12.56.42-PM.png 890w, https:\/\/www.innovationm.com\/blog\/wp-content\/uploads\/2017\/10\/Screen-Shot-2017-10-30-at-12.56.42-PM-300x92.png 300w, https:\/\/www.innovationm.com\/blog\/wp-content\/uploads\/2017\/10\/Screen-Shot-2017-10-30-at-12.56.42-PM-768x236.png 768w, https:\/\/www.innovationm.com\/blog\/wp-content\/uploads\/2017\/10\/Screen-Shot-2017-10-30-at-12.56.42-PM-624x191.png 624w\" sizes=\"(max-width: 890px) 100vw, 890px\" \/><\/p>\n<p>If your request is saved in collections you can save and modify your response.\u00a0To save the response click on <strong>Save Response<\/strong> button.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-3758\" src=\"https:\/\/www.innovationm.com\/blog\/wp-content\/uploads\/2017\/10\/Screen-Shot-2017-10-30-at-12.19.27-PM.png\" alt=\"\" width=\"1028\" height=\"221\" srcset=\"https:\/\/www.innovationm.com\/blog\/wp-content\/uploads\/2017\/10\/Screen-Shot-2017-10-30-at-12.19.27-PM.png 1028w, https:\/\/www.innovationm.com\/blog\/wp-content\/uploads\/2017\/10\/Screen-Shot-2017-10-30-at-12.19.27-PM-300x64.png 300w, https:\/\/www.innovationm.com\/blog\/wp-content\/uploads\/2017\/10\/Screen-Shot-2017-10-30-at-12.19.27-PM-768x165.png 768w, https:\/\/www.innovationm.com\/blog\/wp-content\/uploads\/2017\/10\/Screen-Shot-2017-10-30-at-12.19.27-PM-1024x220.png 1024w, https:\/\/www.innovationm.com\/blog\/wp-content\/uploads\/2017\/10\/Screen-Shot-2017-10-30-at-12.19.27-PM-624x134.png 624w\" sizes=\"(max-width: 1028px) 100vw, 1028px\" \/><\/p>\n<p>To check that response later, click on\u00a0<strong>Example\u00a0<\/strong>and select your response.\u00a0 You can edit your response here.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-3759\" src=\"https:\/\/www.innovationm.com\/blog\/wp-content\/uploads\/2017\/10\/Screen-Shot-2017-10-30-at-12.24.25-PM.png\" alt=\"\" width=\"299\" height=\"144\" srcset=\"https:\/\/www.innovationm.com\/blog\/wp-content\/uploads\/2017\/10\/Screen-Shot-2017-10-30-at-12.24.25-PM.png 394w, https:\/\/www.innovationm.com\/blog\/wp-content\/uploads\/2017\/10\/Screen-Shot-2017-10-30-at-12.24.25-PM-300x145.png 300w\" sizes=\"(max-width: 299px) 100vw, 299px\" \/><\/p>\n<h3>History<\/h3>\n<p>It saves all the request you send. If you have an account on postman it will sync all request with postman server, backed up in realtime, and retrievable across your devices.<\/p>\n<p><em>NOTE:<\/em>\u00a0If you logout and login again, you will get only 10 request and if you have Pro and Enterprise account you will get 100 request in history.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-3766\" src=\"https:\/\/www.innovationm.com\/blog\/wp-content\/uploads\/2017\/10\/Screen-Shot-2017-10-30-at-1.14.56-PM.png\" alt=\"\" width=\"271\" height=\"447\" srcset=\"https:\/\/www.innovationm.com\/blog\/wp-content\/uploads\/2017\/10\/Screen-Shot-2017-10-30-at-1.14.56-PM.png 346w, https:\/\/www.innovationm.com\/blog\/wp-content\/uploads\/2017\/10\/Screen-Shot-2017-10-30-at-1.14.56-PM-182x300.png 182w\" sizes=\"(max-width: 271px) 100vw, 271px\" \/><\/p>\n<p>In history tab click on the request to execute it. To search any request type keyword in filter. History will filter all the request in history and show you all matched request.<\/p>\n<p>You can select multiple request by select request with <strong>CMD\u00a0<\/strong>button. now you can share, delete, save, monitor, and add in Collections.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-3767\" src=\"https:\/\/www.innovationm.com\/blog\/wp-content\/uploads\/2017\/10\/Screen-Shot-2017-10-30-at-1.33.51-PM.png\" alt=\"\" width=\"179\" height=\"243\" \/><\/p>\n<h3>Debugging and Logs:<\/h3>\n<p>If you are not getting expected response then you can also debug it in postman. To do so, you need to enable debugging in postman. Some easy steps to do that:<\/p>\n<ul>\n<li>Type\u00a0<em><strong>chrome:\/\/flags\/#debug-packed-apps<\/strong><\/em>\u00a0in your url bar in Chrome browser.<\/li>\n<li>Search for <strong>&#8220;packed&#8221;<\/strong> and enable <strong>&#8220;debugging for packed apps&#8221;\u00a0<\/strong><\/li>\n<li>Restart Chrome Browser<\/li>\n<li>Now right click on postman window and select\u00a0<strong>I<\/strong><strong>inspect<\/strong> option. It will open Inspect window. You can debug all your requests.<\/li>\n<\/ul>\n<p>Or you can debug it only typing\u00a0<em><strong>chrome:\/\/inspect\/#apps\u00a0<\/strong><\/em>and select <strong>Inspect\u00a0<\/strong>under postman.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-3771\" src=\"https:\/\/www.innovationm.com\/blog\/wp-content\/uploads\/2017\/10\/Screen-Shot-2017-10-30-at-2.03.00-PM.png\" alt=\"\" width=\"723\" height=\"384\" srcset=\"https:\/\/www.innovationm.com\/blog\/wp-content\/uploads\/2017\/10\/Screen-Shot-2017-10-30-at-2.03.00-PM.png 999w, https:\/\/www.innovationm.com\/blog\/wp-content\/uploads\/2017\/10\/Screen-Shot-2017-10-30-at-2.03.00-PM-300x159.png 300w, https:\/\/www.innovationm.com\/blog\/wp-content\/uploads\/2017\/10\/Screen-Shot-2017-10-30-at-2.03.00-PM-768x407.png 768w, https:\/\/www.innovationm.com\/blog\/wp-content\/uploads\/2017\/10\/Screen-Shot-2017-10-30-at-2.03.00-PM-624x331.png 624w\" sizes=\"(max-width: 723px) 100vw, 723px\" \/><\/p>\n<h2>Postman built-in proxy:<\/h2>\n<p>Postman has a proxy in the Postman app that captures the HTTP request.<\/p>\n<ol>\n<li>The Postman app listens for any calls made by the client app or device.<\/li>\n<li>The Postman proxy captures the request and forwards the request onward to the server.<\/li>\n<li>The server returns a response through the Postman proxy back to the client.<\/li>\n<\/ol>\n<p>To use postman proxy setting connect your device and system with same network. Here are some simple steps for proxy settings:<\/p>\n<ul>\n<li>Open proxy settings by clicking the icon given on top bar in Postman.<br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-3783\" src=\"https:\/\/www.innovationm.com\/blog\/wp-content\/uploads\/2017\/10\/Screen-Shot-2017-10-30-at-3.43.53-PM.png\" alt=\"\" width=\"645\" height=\"76\" srcset=\"https:\/\/www.innovationm.com\/blog\/wp-content\/uploads\/2017\/10\/Screen-Shot-2017-10-30-at-3.43.53-PM.png 645w, https:\/\/www.innovationm.com\/blog\/wp-content\/uploads\/2017\/10\/Screen-Shot-2017-10-30-at-3.43.53-PM-300x35.png 300w, https:\/\/www.innovationm.com\/blog\/wp-content\/uploads\/2017\/10\/Screen-Shot-2017-10-30-at-3.43.53-PM-624x74.png 624w\" sizes=\"(max-width: 645px) 100vw, 645px\" \/><\/li>\n<li>Enter port number and Collection on which you want to add proxy. Let&#8217;s keep port number default and select your collection. You also can apply filter on that. Let&#8217;s select history.<br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-3784\" src=\"https:\/\/www.innovationm.com\/blog\/wp-content\/uploads\/2017\/10\/Screen-Shot-2017-10-30-at-3.52.19-PM.png\" alt=\"\" width=\"428\" height=\"449\" srcset=\"https:\/\/www.innovationm.com\/blog\/wp-content\/uploads\/2017\/10\/Screen-Shot-2017-10-30-at-3.52.19-PM.png 498w, https:\/\/www.innovationm.com\/blog\/wp-content\/uploads\/2017\/10\/Screen-Shot-2017-10-30-at-3.52.19-PM-286x300.png 286w\" sizes=\"(max-width: 428px) 100vw, 428px\" \/><\/li>\n<li>Open wifi Settings in your device and select <strong><em>Manual<\/em><\/strong>\u00a0in <em><strong>HTTP Proxy .\u00a0<\/strong><\/em>Now enter your system&#8217;s IP address in server and Postman&#8217;s port number in port. Now all the request of your device will go through your system and will be logged in postman&#8217;s history.<br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"wp-image-3786 alignnone\" src=\"https:\/\/www.innovationm.com\/blog\/wp-content\/uploads\/2017\/10\/IMG_3194.jpg\" alt=\"\" width=\"273\" height=\"203\" srcset=\"https:\/\/www.innovationm.com\/blog\/wp-content\/uploads\/2017\/10\/IMG_3194.jpg 1242w, https:\/\/www.innovationm.com\/blog\/wp-content\/uploads\/2017\/10\/IMG_3194-300x223.jpg 300w, https:\/\/www.innovationm.com\/blog\/wp-content\/uploads\/2017\/10\/IMG_3194-768x572.jpg 768w, https:\/\/www.innovationm.com\/blog\/wp-content\/uploads\/2017\/10\/IMG_3194-1024x763.jpg 1024w, https:\/\/www.innovationm.com\/blog\/wp-content\/uploads\/2017\/10\/IMG_3194-624x465.jpg 624w\" sizes=\"(max-width: 273px) 100vw, 273px\" \/>\u00a0 \u00a0 \u00a0<img loading=\"lazy\" decoding=\"async\" class=\"wp-image-3787 alignnone\" src=\"https:\/\/www.innovationm.com\/blog\/wp-content\/uploads\/2017\/10\/IMG_3195.png\" alt=\"\" width=\"268\" height=\"230\" srcset=\"https:\/\/www.innovationm.com\/blog\/wp-content\/uploads\/2017\/10\/IMG_3195.png 1242w, https:\/\/www.innovationm.com\/blog\/wp-content\/uploads\/2017\/10\/IMG_3195-300x258.png 300w, https:\/\/www.innovationm.com\/blog\/wp-content\/uploads\/2017\/10\/IMG_3195-768x660.png 768w, https:\/\/www.innovationm.com\/blog\/wp-content\/uploads\/2017\/10\/IMG_3195-1024x881.png 1024w, https:\/\/www.innovationm.com\/blog\/wp-content\/uploads\/2017\/10\/IMG_3195-624x537.png 624w\" sizes=\"(max-width: 268px) 100vw, 268px\" \/><\/li>\n<\/ul>\n<h3>Generate code snippets:<\/h3>\n<p>You can also generate code to send request in any of given language. It will gives you complete code to send and receive request in any language.<\/p>\n<p>To do that click on\u00a0<strong>Code\u00a0<\/strong>button under Save button. It will open a window in which you need to choose your language and it will show you code for that. To copy that code click on\u00a0<em>Copy to Clipboard\u00a0<\/em>button.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-3791\" src=\"https:\/\/www.innovationm.com\/blog\/wp-content\/uploads\/2017\/10\/Screen-Shot-2017-10-30-at-4.53.19-PM.png\" alt=\"\" width=\"706\" height=\"548\" srcset=\"https:\/\/www.innovationm.com\/blog\/wp-content\/uploads\/2017\/10\/Screen-Shot-2017-10-30-at-4.53.19-PM.png 724w, https:\/\/www.innovationm.com\/blog\/wp-content\/uploads\/2017\/10\/Screen-Shot-2017-10-30-at-4.53.19-PM-300x233.png 300w, https:\/\/www.innovationm.com\/blog\/wp-content\/uploads\/2017\/10\/Screen-Shot-2017-10-30-at-4.53.19-PM-624x484.png 624w\" sizes=\"(max-width: 706px) 100vw, 706px\" \/><\/p>\n<h3>Collections:<\/h3>\n<p>Collections is a group of similar types of request. Collections are used for organization and\u00a0 documentation of API requests. There are many ways to make a new collection and save requests in it.<\/p>\n<ul>\n<li><strong>Create Collection:\u00a0<\/strong>Select Collections from side bar and click on add Collection icon.<br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-3793\" src=\"https:\/\/www.innovationm.com\/blog\/wp-content\/uploads\/2017\/10\/Screen-Shot-2017-10-30-at-5.03.56-PM.png\" alt=\"\" width=\"354\" height=\"107\" srcset=\"https:\/\/www.innovationm.com\/blog\/wp-content\/uploads\/2017\/10\/Screen-Shot-2017-10-30-at-5.03.56-PM.png 446w, https:\/\/www.innovationm.com\/blog\/wp-content\/uploads\/2017\/10\/Screen-Shot-2017-10-30-at-5.03.56-PM-300x91.png 300w\" sizes=\"(max-width: 354px) 100vw, 354px\" \/>A new window will open. Here you need to enter collection name and description and click on <strong>Create<\/strong>\u00a0button. Now you can see your collection under collection tab.<\/li>\n<li><strong>Save request in Collection:\u00a0<\/strong>Another way is click on Save button in request. It will ask you to select a collection or create new collection. This will save your request in selected Collection.<br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-3794\" src=\"https:\/\/www.innovationm.com\/blog\/wp-content\/uploads\/2017\/10\/Screen-Shot-2017-10-30-at-5.12.09-PM.png\" alt=\"\" width=\"392\" height=\"545\" srcset=\"https:\/\/www.innovationm.com\/blog\/wp-content\/uploads\/2017\/10\/Screen-Shot-2017-10-30-at-5.12.09-PM.png 484w, https:\/\/www.innovationm.com\/blog\/wp-content\/uploads\/2017\/10\/Screen-Shot-2017-10-30-at-5.12.09-PM-216x300.png 216w\" sizes=\"(max-width: 392px) 100vw, 392px\" \/><\/li>\n<li><strong>Share Collection:\u00a0<\/strong>To share any collection you need to click on option button in front of collection. You can share collection as link, run as postman button, share with team option or share as a file.<\/li>\n<li><strong>Add Folder:\u00a0<\/strong>You can add folder under collection. Select option button and click on add folder. Now enter folder name and detail in it and create.<\/li>\n<li>Other features: You can perform other operations on collections like, Duplicate, Export, Monitor Collection, Mock Collection, Publish Docs, Delete etc.<\/li>\n<\/ul>\n<h2>Mock Collections:<\/h2>\n<p>You can also use postman as a mock server. There are some easy steps for that:<\/p>\n<ol>\n<li>Save your api in collection.<\/li>\n<li>Save response for that api what you want to get.<\/li>\n<li>Select your collection&#8217;s arrow button.<\/li>\n<li>Now click on <strong>Mock<\/strong> Tab<\/li>\n<li>Click on\u00a0<strong>Add a Mock\u00a0<\/strong>button.<br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-3816\" src=\"https:\/\/www.innovationm.com\/blog\/wp-content\/uploads\/2017\/10\/MockServer.png\" alt=\"\" width=\"456\" height=\"424\" srcset=\"https:\/\/www.innovationm.com\/blog\/wp-content\/uploads\/2017\/10\/MockServer.png 663w, https:\/\/www.innovationm.com\/blog\/wp-content\/uploads\/2017\/10\/MockServer-300x279.png 300w, https:\/\/www.innovationm.com\/blog\/wp-content\/uploads\/2017\/10\/MockServer-624x581.png 624w\" sizes=\"(max-width: 456px) 100vw, 456px\" \/><\/li>\n<li>Now select your environment and click on\u00a0<strong>Mock this collection.\u00a0<\/strong>This will generate a link.<\/li>\n<\/ol>\n<p>Use this link as base URL something like &#8220;<em>https:\/\/1f2da592-0e62-4173-a224-d48cec37cca9.mock.pstmn.io<\/em>&#8220;. Add endpoint in it and check the response. If you have modify the response and status code, you will get modified response.<br \/>\nLet us suppose your Endpoint is\u00a0<em>\/feedbackapp\/feedbacks\u00a0<\/em>then your url will be<br \/>\n<strong>https:\/\/1f2da592-0e62-4173-a224-d48cec37cca9.mock.pstmn.io\/<em>feedbackapp\/feedbacks<br \/>\n<\/em><\/strong>If you have saved more than one example then give the name of example in the end of URL.<\/p>\n<p>Using Mock Server you can check all the possible cases in your app without changing in backend.<\/p>\n<p>For more details please visit:\u00a0<a href=\"https:\/\/www.getpostman.com\/docs\/\">https:\/\/www.getpostman.com\/docs\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Introduction: Postman is Google Chrome app to send HTTP request and get response. It provides a user friendly UI for creating request and reading response. Features of postman: It is simple and powerful tool with friendly interface. Saved the history of all API Request. Unlimited collections, environments, tests and shares. Automated testing with collection runner [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":3821,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[108,71,6,102],"tags":[203,213,214,212,205,211,206,103,59],"class_list":["post-3670","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-html5-css-js","category-mobile","category-mobile-web-app","category-web-service","tag-api","tag-debug","tag-logs","tag-mock-server","tag-postman","tag-proxy","tag-rest-api","tag-web-service-2","tag-webservice"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Postman - Proxy and Mock Server - InnovationM - Blog<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.innovationm.com\/blog\/postman-proxy-and-mock-server\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Postman - Proxy and Mock Server - InnovationM - Blog\" \/>\n<meta property=\"og:description\" content=\"Introduction: Postman is Google Chrome app to send HTTP request and get response. It provides a user friendly UI for creating request and reading response. Features of postman: It is simple and powerful tool with friendly interface. Saved the history of all API Request. Unlimited collections, environments, tests and shares. Automated testing with collection runner [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.innovationm.com\/blog\/postman-proxy-and-mock-server\/\" \/>\n<meta property=\"og:site_name\" content=\"InnovationM - Blog\" \/>\n<meta property=\"article:published_time\" content=\"2017-11-03T05:31:20+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.innovationm.com\/blog\/wp-content\/uploads\/2017\/10\/postman-proxy-and-mockserver-01.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"4584\" \/>\n\t<meta property=\"og:image:height\" content=\"2500\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"InnovationM Admin\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"InnovationM Admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"7 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.innovationm.com\\\/blog\\\/postman-proxy-and-mock-server\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.innovationm.com\\\/blog\\\/postman-proxy-and-mock-server\\\/\"},\"author\":{\"name\":\"InnovationM Admin\",\"@id\":\"https:\\\/\\\/www.innovationm.com\\\/blog\\\/#\\\/schema\\\/person\\\/a831bf4602d69d1fa452e3de0c8862ed\"},\"headline\":\"Postman &#8211; Proxy and Mock Server\",\"datePublished\":\"2017-11-03T05:31:20+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.innovationm.com\\\/blog\\\/postman-proxy-and-mock-server\\\/\"},\"wordCount\":1419,\"commentCount\":0,\"image\":{\"@id\":\"https:\\\/\\\/www.innovationm.com\\\/blog\\\/postman-proxy-and-mock-server\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.innovationm.com\\\/blog\\\/wp-content\\\/uploads\\\/2017\\\/10\\\/postman-proxy-and-mockserver-01.jpg\",\"keywords\":[\"API\",\"Debug\",\"Logs\",\"Mock Server\",\"Postman\",\"Proxy\",\"REST API\",\"web service\",\"WebService\"],\"articleSection\":[\"HTML5 \\\/ CSS \\\/ JS\",\"Mobile\",\"Mobile Web App\",\"Web service\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.innovationm.com\\\/blog\\\/postman-proxy-and-mock-server\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.innovationm.com\\\/blog\\\/postman-proxy-and-mock-server\\\/\",\"url\":\"https:\\\/\\\/www.innovationm.com\\\/blog\\\/postman-proxy-and-mock-server\\\/\",\"name\":\"Postman - Proxy and Mock Server - InnovationM - Blog\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.innovationm.com\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.innovationm.com\\\/blog\\\/postman-proxy-and-mock-server\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.innovationm.com\\\/blog\\\/postman-proxy-and-mock-server\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.innovationm.com\\\/blog\\\/wp-content\\\/uploads\\\/2017\\\/10\\\/postman-proxy-and-mockserver-01.jpg\",\"datePublished\":\"2017-11-03T05:31:20+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/www.innovationm.com\\\/blog\\\/#\\\/schema\\\/person\\\/a831bf4602d69d1fa452e3de0c8862ed\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.innovationm.com\\\/blog\\\/postman-proxy-and-mock-server\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.innovationm.com\\\/blog\\\/postman-proxy-and-mock-server\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.innovationm.com\\\/blog\\\/postman-proxy-and-mock-server\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.innovationm.com\\\/blog\\\/wp-content\\\/uploads\\\/2017\\\/10\\\/postman-proxy-and-mockserver-01.jpg\",\"contentUrl\":\"https:\\\/\\\/www.innovationm.com\\\/blog\\\/wp-content\\\/uploads\\\/2017\\\/10\\\/postman-proxy-and-mockserver-01.jpg\",\"width\":4584,\"height\":2500},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.innovationm.com\\\/blog\\\/postman-proxy-and-mock-server\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.innovationm.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Postman &#8211; Proxy and Mock Server\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.innovationm.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.innovationm.com\\\/blog\\\/\",\"name\":\"InnovationM - Blog\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.innovationm.com\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.innovationm.com\\\/blog\\\/#\\\/schema\\\/person\\\/a831bf4602d69d1fa452e3de0c8862ed\",\"name\":\"InnovationM Admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/5c99d9eece9dfbc82297cf34ddd58e9fe05bb52fe66c8f6bf6c0a45bfb6d7629?s=96&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/5c99d9eece9dfbc82297cf34ddd58e9fe05bb52fe66c8f6bf6c0a45bfb6d7629?s=96&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/5c99d9eece9dfbc82297cf34ddd58e9fe05bb52fe66c8f6bf6c0a45bfb6d7629?s=96&r=g\",\"caption\":\"InnovationM Admin\"},\"sameAs\":[\"http:\\\/\\\/www.innovationm.com\\\/\"],\"url\":\"https:\\\/\\\/www.innovationm.com\\\/blog\\\/author\\\/innovationmadmin\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Postman - Proxy and Mock Server - InnovationM - Blog","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.innovationm.com\/blog\/postman-proxy-and-mock-server\/","og_locale":"en_US","og_type":"article","og_title":"Postman - Proxy and Mock Server - InnovationM - Blog","og_description":"Introduction: Postman is Google Chrome app to send HTTP request and get response. It provides a user friendly UI for creating request and reading response. Features of postman: It is simple and powerful tool with friendly interface. Saved the history of all API Request. Unlimited collections, environments, tests and shares. Automated testing with collection runner [&hellip;]","og_url":"https:\/\/www.innovationm.com\/blog\/postman-proxy-and-mock-server\/","og_site_name":"InnovationM - Blog","article_published_time":"2017-11-03T05:31:20+00:00","og_image":[{"width":4584,"height":2500,"url":"https:\/\/www.innovationm.com\/blog\/wp-content\/uploads\/2017\/10\/postman-proxy-and-mockserver-01.jpg","type":"image\/jpeg"}],"author":"InnovationM Admin","twitter_misc":{"Written by":"InnovationM Admin","Est. reading time":"7 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.innovationm.com\/blog\/postman-proxy-and-mock-server\/#article","isPartOf":{"@id":"https:\/\/www.innovationm.com\/blog\/postman-proxy-and-mock-server\/"},"author":{"name":"InnovationM Admin","@id":"https:\/\/www.innovationm.com\/blog\/#\/schema\/person\/a831bf4602d69d1fa452e3de0c8862ed"},"headline":"Postman &#8211; Proxy and Mock Server","datePublished":"2017-11-03T05:31:20+00:00","mainEntityOfPage":{"@id":"https:\/\/www.innovationm.com\/blog\/postman-proxy-and-mock-server\/"},"wordCount":1419,"commentCount":0,"image":{"@id":"https:\/\/www.innovationm.com\/blog\/postman-proxy-and-mock-server\/#primaryimage"},"thumbnailUrl":"https:\/\/www.innovationm.com\/blog\/wp-content\/uploads\/2017\/10\/postman-proxy-and-mockserver-01.jpg","keywords":["API","Debug","Logs","Mock Server","Postman","Proxy","REST API","web service","WebService"],"articleSection":["HTML5 \/ CSS \/ JS","Mobile","Mobile Web App","Web service"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.innovationm.com\/blog\/postman-proxy-and-mock-server\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.innovationm.com\/blog\/postman-proxy-and-mock-server\/","url":"https:\/\/www.innovationm.com\/blog\/postman-proxy-and-mock-server\/","name":"Postman - Proxy and Mock Server - InnovationM - Blog","isPartOf":{"@id":"https:\/\/www.innovationm.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.innovationm.com\/blog\/postman-proxy-and-mock-server\/#primaryimage"},"image":{"@id":"https:\/\/www.innovationm.com\/blog\/postman-proxy-and-mock-server\/#primaryimage"},"thumbnailUrl":"https:\/\/www.innovationm.com\/blog\/wp-content\/uploads\/2017\/10\/postman-proxy-and-mockserver-01.jpg","datePublished":"2017-11-03T05:31:20+00:00","author":{"@id":"https:\/\/www.innovationm.com\/blog\/#\/schema\/person\/a831bf4602d69d1fa452e3de0c8862ed"},"breadcrumb":{"@id":"https:\/\/www.innovationm.com\/blog\/postman-proxy-and-mock-server\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.innovationm.com\/blog\/postman-proxy-and-mock-server\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.innovationm.com\/blog\/postman-proxy-and-mock-server\/#primaryimage","url":"https:\/\/www.innovationm.com\/blog\/wp-content\/uploads\/2017\/10\/postman-proxy-and-mockserver-01.jpg","contentUrl":"https:\/\/www.innovationm.com\/blog\/wp-content\/uploads\/2017\/10\/postman-proxy-and-mockserver-01.jpg","width":4584,"height":2500},{"@type":"BreadcrumbList","@id":"https:\/\/www.innovationm.com\/blog\/postman-proxy-and-mock-server\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.innovationm.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Postman &#8211; Proxy and Mock Server"}]},{"@type":"WebSite","@id":"https:\/\/www.innovationm.com\/blog\/#website","url":"https:\/\/www.innovationm.com\/blog\/","name":"InnovationM - Blog","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.innovationm.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/www.innovationm.com\/blog\/#\/schema\/person\/a831bf4602d69d1fa452e3de0c8862ed","name":"InnovationM Admin","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/5c99d9eece9dfbc82297cf34ddd58e9fe05bb52fe66c8f6bf6c0a45bfb6d7629?s=96&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/5c99d9eece9dfbc82297cf34ddd58e9fe05bb52fe66c8f6bf6c0a45bfb6d7629?s=96&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/5c99d9eece9dfbc82297cf34ddd58e9fe05bb52fe66c8f6bf6c0a45bfb6d7629?s=96&r=g","caption":"InnovationM Admin"},"sameAs":["http:\/\/www.innovationm.com\/"],"url":"https:\/\/www.innovationm.com\/blog\/author\/innovationmadmin\/"}]}},"_links":{"self":[{"href":"https:\/\/www.innovationm.com\/blog\/wp-json\/wp\/v2\/posts\/3670","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.innovationm.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.innovationm.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.innovationm.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.innovationm.com\/blog\/wp-json\/wp\/v2\/comments?post=3670"}],"version-history":[{"count":0,"href":"https:\/\/www.innovationm.com\/blog\/wp-json\/wp\/v2\/posts\/3670\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.innovationm.com\/blog\/wp-json\/wp\/v2\/media\/3821"}],"wp:attachment":[{"href":"https:\/\/www.innovationm.com\/blog\/wp-json\/wp\/v2\/media?parent=3670"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.innovationm.com\/blog\/wp-json\/wp\/v2\/categories?post=3670"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.innovationm.com\/blog\/wp-json\/wp\/v2\/tags?post=3670"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}