{"info":{"_postman_id":"35ba2ff3-ffdd-40df-b372-6bb7c35e38c6","name":"Mock Requests","description":"<html><head></head><body><p>To try mocking the responses in every possible way with use of headers and params.</p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"6034746","collectionId":"35ba2ff3-ffdd-40df-b372-6bb7c35e38c6","publishedId":"SWT8gK1f","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"EF5B25"},"publishDate":"2020-02-08T05:00:02.000Z"},"item":[{"name":"MockUrl with Param_1","event":[{"listen":"prerequest","script":{"id":"3f57bcfc-b7d6-4dd7-969c-b1af46677026","exec":[""],"type":"text/javascript"}},{"listen":"test","script":{"id":"317b1352-f59a-43a9-929e-b399b70b3cc7","exec":[""],"type":"text/javascript"}}],"id":"f9dab134-4ec1-450f-bd69-e822b714e261","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"body":{"mode":"raw","raw":""},"url":"https://2101142b-36a8-44b9-b791-3ce38327cca1.mock.pstmn.io/endpoint?x-mock-response-name=swagger","description":"<p>If you match the Query param according to what is saved in an example response, you'll be able to receive the required response.</p>\n<p>You can also try unchecking the Query param and send the request, this should provide you the default response.</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[]},"isInherited":true,"source":{"_postman_id":"35ba2ff3-ffdd-40df-b372-6bb7c35e38c6","id":"35ba2ff3-ffdd-40df-b372-6bb7c35e38c6","name":"Mock Requests","type":"collection"}},"urlObject":{"protocol":"https","path":["endpoint"],"host":["2101142b-36a8-44b9-b791-3ce38327cca1.mock.pstmn.io"],"query":[{"description":{"content":"<p>The params can be used to differentiate mocks with same endpoints</p>\n","type":"text/plain"},"key":"x-mock-response-name","value":"swagger"}],"variable":[]}},"response":[{"id":"49f8c2d6-f368-49d3-b4fc-25e3394bbe5d","name":"Example_One: Same endpoint_only_difference_is_the_Param","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://2101142b-36a8-44b9-b791-3ce38327cca1.mock.pstmn.io/endpoint?x-mock-response-name=swagger","protocol":"https","host":["2101142b-36a8-44b9-b791-3ce38327cca1.mock.pstmn.io"],"path":["endpoint"],"query":[{"key":"x-mock-response-name","value":"swagger"}]}},"code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"OK\",\n    \"data\": [\n    \t{\n    \t\"message\": \"You are receiving the first example response from the Mock_Url\",\n    \t\"Details\": \"Saved\";\n    \t\"timestampHeader\": \"data\";\n    \t}\n    ]\n}"},{"id":"a0b33c43-02e1-43cf-a870-b2ad68a4c6a7","name":"Example_Two: Same endpoint_only_difference_is_the_Param","originalRequest":{"method":"GET","header":[{"key":"x-mock-response-name","value":"first","type":"text"}],"url":{"raw":"https://2101142b-36a8-44b9-b791-3ce38327cca1.mock.pstmn.io/endpoint?x-mock-response-name=MockValue","protocol":"https","host":["2101142b-36a8-44b9-b791-3ce38327cca1.mock.pstmn.io"],"path":["endpoint"],"query":[{"key":"x-mock-response-name","value":"MockValue"}]}},"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n\t\"status\": \"OK\",\n\t\"data\": [\n\t\t{\n\t\t\t\"message-1\": \"You are receiving the second example response from the Mock_Url\",\n\t\t\t\"message-2\": \"The response is due to the change in the param value even though the endpoint is same\"\n\t\t}\n\t]\n}"},{"id":"ab15f050-7f10-4d9e-880f-66bc6263b622","name":"Mock API Data","originalRequest":{"method":"GET","header":[{"key":"header-value","value":"12345","type":"text"}],"url":"https://2101142b-36a8-44b9-b791-3ce38327cca1.mock.pstmn.io/endpoint"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n\t\"status\": \"OK\",\n\t\"data\": [\n\t\t{\n\t\t\t\"message-1\": \"You are receiving the third example response from the Mock_url\",\n\t\t\t\"message-2\": \"The only difference here is, you can name the \"Example name\" in the header to receive the response\",\n\t\t\t\"message-3\": \"Click On \"Header\"tab and check the name of third example from the first request\"\n\t\t}\n\t]\n}"},{"id":"e2938871-0271-4635-8921-d694013f29d9","name":"Mock Data with same header value","originalRequest":{"method":"GET","header":[{"key":"header-value","value":"defined","type":"text"}],"body":{"mode":"raw","raw":""},"url":"https://2101142b-36a8-44b9-b791-3ce38327cca1.mock.pstmn.io/endpoint"},"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n\t\"status\": \"OK\",\n\t\"data\": [\n\t\t{\n\t\t\t\"message-1\": \"You are receiving the fourth example response from the Mock_url\",\n\t\t\t\"message-2\": \"Even though you have 3rd and 4rth examples with same header variable\",\n\t\t\t\"message-3\": \"The response is derived only if the header value and the Param is used in your request\"\n\t\t}\n\t]\n}"},{"id":"c8baf568-69e0-4f1a-97eb-6db24d26ee5a","name":"Mock Data with same header value_2","originalRequest":{"method":"GET","header":[{"key":"header-value","value":"newly_defined","type":"text"}],"body":{"mode":"raw","raw":""},"url":"https://2101142b-36a8-44b9-b791-3ce38327cca1.mock.pstmn.io/endpoint"},"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n\t\"status\": \"OK\",\n\t\"data\": [\n\t\t{\n\t\t\t\"message-1\": \"You are receiving the fifth example response from the Mock_url\",\n\t\t\t\"message-2\": \"Identify that this change was due to the header value in particular\"\n\t\t\t\n\t\t\t\"Additionally\": \"When nothing is passed in the header then all examples become equal candidates for a response and one of them is chosen. This happens because when the x-mock-match-request-headers header is not sent (or no value is set there in), the headers set in the example requests are ignored\"\n\t\t\t\n\t\t\t\t\"All 3 examples are identical if their headers are ignored. The headers are ignored if the x-mock-match-request-headers header is not sent (or is empty). Hence any one of the 3 may be chosen (though the same one will be chosen every time). There is no construct of 'priority' or 'ordering' or 'default' among identical examples in Postman currently.\n\t\t}\n\t]\n}"},{"id":"005f6763-878d-4889-89ae-ef6a158f8314","name":" Mock match request body","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n\t\"customerid\": 789,\n\t\"body\": \"Should match exactly\"\n}","options":{"raw":{"language":"json"}}},"url":"/login"},"status":"Locked (WebDAV) (RFC 4918)","code":423,"_postman_previewlanguage":"json","header":[{"key":"x-mock-match-request-body","value":"true","description":"","type":"text"},{"key":"Content-Type","value":"application/json","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n\t\"customerid\": 789,\n\t\"permission\": \"Login Granted\"\n}"},{"id":"cd679aed-e250-4ac0-90c7-bf9ce20be891","name":"Random generator","originalRequest":{"method":"GET","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":""},"url":"https://2101142b-36a8-44b9-b791-3ce38327cca1.mock.pstmn.io/randomsandbox"},"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"timestamp\": 1781407456,\n    \"playerId\": \"PlayerWithRandomBalance\",\n    \"operatorToken\": \"3J9Z7RhTiA1GPLtyeTjrFvPRda4z6F\",\n    \"data\": \"Math.random().toString().slice(2,11)\"\n}"}],"_postman_id":"f9dab134-4ec1-450f-bd69-e822b714e261"},{"name":"MockUrl with Param_2","id":"c2421da4-686f-456a-94d2-d4c757748247","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://2101142b-36a8-44b9-b791-3ce38327cca1.mock.pstmn.io/endpoint?x-mock-response-name=MockValue","description":"<p>If you match the Query param according to what is saved in example response, you'll be able to receive the required second response.</p>\n<p>You will see that even if the endpoints saved are the same, to retrieve the required response - query params can help you do the work.</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[]},"isInherited":true,"source":{"_postman_id":"35ba2ff3-ffdd-40df-b372-6bb7c35e38c6","id":"35ba2ff3-ffdd-40df-b372-6bb7c35e38c6","name":"Mock Requests","type":"collection"}},"urlObject":{"protocol":"https","path":["endpoint"],"host":["2101142b-36a8-44b9-b791-3ce38327cca1.mock.pstmn.io"],"query":[{"key":"x-mock-response-name","value":"MockValue"}],"variable":[]}},"response":[],"_postman_id":"c2421da4-686f-456a-94d2-d4c757748247"},{"name":"MockUrl_with_Headers","event":[{"listen":"test","script":{"id":"bd5b1303-8372-44c3-a8be-594d372bc8c6","exec":["//To check if either the response is 200 or 201","","pm.test('Check status code', function() {","    pm.expect(pm.response.code).to.be.oneOf([200, 201])","})"],"type":"text/javascript"}}],"id":"69331f77-8e17-4b5f-b109-0ae9dd95a372","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"x-mock-match-request-headers","type":"text","value":"header-value"},{"key":"header-value","type":"text","value":"defined"}],"url":"https://2101142b-36a8-44b9-b791-3ce38327cca1.mock.pstmn.io/endpoint","description":"<p>In addition, if you want to mock a particular response even with examples having the same endpoints, you can also use the \"Headers\" by specifying the header value. The header required to be used here is: x-mock-match-request-headers. This should point to the header name defined in your example responses.</p>\n<p>Change the header-value under <em>Header section</em> to newly_defined to check the change in the response.</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[]},"isInherited":true,"source":{"_postman_id":"35ba2ff3-ffdd-40df-b372-6bb7c35e38c6","id":"35ba2ff3-ffdd-40df-b372-6bb7c35e38c6","name":"Mock Requests","type":"collection"}},"urlObject":{"protocol":"https","path":["endpoint"],"host":["2101142b-36a8-44b9-b791-3ce38327cca1.mock.pstmn.io"],"query":[],"variable":[]}},"response":[],"_postman_id":"69331f77-8e17-4b5f-b109-0ae9dd95a372"},{"name":"MockUrl_with_ResponseName","event":[{"listen":"test","script":{"id":"bd5b1303-8372-44c3-a8be-594d372bc8c6","exec":["//To check if either the response is 200 or 201","","pm.test('Check status code', function() {","    pm.expect(pm.response.code).to.be.oneOf([200, 201])","})"],"type":"text/javascript"}}],"id":"46b9c175-e3b6-4b09-8b87-e1e6c476704e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"x-mock-response-name","value":"Mock API Data","type":"text"}],"url":"https://2101142b-36a8-44b9-b791-3ce38327cca1.mock.pstmn.io/endpoint","description":"<p>If you want to mock a particular response even with examples having same endpoints, you can also use the \"Headers\" by specifying the name of the example. The header required to be used here is: x-mock-response-name</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[]},"isInherited":true,"source":{"_postman_id":"35ba2ff3-ffdd-40df-b372-6bb7c35e38c6","id":"35ba2ff3-ffdd-40df-b372-6bb7c35e38c6","name":"Mock Requests","type":"collection"}},"urlObject":{"protocol":"https","path":["endpoint"],"host":["2101142b-36a8-44b9-b791-3ce38327cca1.mock.pstmn.io"],"query":[],"variable":[]}},"response":[],"_postman_id":"46b9c175-e3b6-4b09-8b87-e1e6c476704e"},{"name":"Mock Response","event":[{"listen":"test","script":{"id":"9f86de8d-8f9b-4b13-95a1-3a0f46380ac2","exec":["var jsonData = JSON.parse(responseBody);","console.log(jsonData.data[0].id);","pm.environment.set(\"datid\", jsonData.data[0].id);","pm.globals.set(\"datid\", jsonData.data[0].id);"],"type":"text/javascript"}}],"id":"7506670a-719f-4d39-ae95-736aece51860","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"url":"https://2101142b-36a8-44b9-b791-3ce38327cca1.mock.pstmn.io/response","description":"<p>To check how the response is recorded when a test script is used to extract the data out of the JSON response.</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[]},"isInherited":true,"source":{"_postman_id":"35ba2ff3-ffdd-40df-b372-6bb7c35e38c6","id":"35ba2ff3-ffdd-40df-b372-6bb7c35e38c6","name":"Mock Requests","type":"collection"}},"urlObject":{"protocol":"https","path":["response"],"host":["2101142b-36a8-44b9-b791-3ce38327cca1.mock.pstmn.io"],"query":[],"variable":[]}},"response":[{"id":"1f5300ee-4830-4eac-8f26-1fdc017e1f60","name":"Response Mock","originalRequest":{"method":"POST","header":[],"url":"https://2101142b-36a8-44b9-b791-3ce38327cca1.mock.pstmn.io/response"},"status":"Multiple Choices","code":300,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"OK\",\n    \"data\": [\n        {\n            \"id\": \"789\",\n            \"customid\": \"07-Tyler-Durden\",\n            \"customid1\": \"Jacks-Aching-Pain\",\n            \"customid2\": \"05-Marla-Singer\",\n            \"mobile\": \"0987654321\",\n            \"status\": \"BLR\"\n        }\n    ],\n    \"message\": \"Response Initiated\"\n}"},{"id":"3a63df07-fe69-4ba5-959f-cbb79e497e37","name":"Response Parse","originalRequest":{"method":"PUT","header":[],"url":"https://2101142b-36a8-44b9-b791-3ce38327cca1.mock.pstmn.io/parse"},"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"OK\",\n    \"data\": [\n        {\n            \"id\": \"789\",\n            \"customid\": \"07-Tyler-Durden\",\n            \"customid1\": \"Jacks-Aching-Pain\",\n            \"customid2\": \"05-Marla-Singer\",\n            \"mobile\": \"0987654321\",\n            \"status\": \"BLR\",\n            \"idc_company_25\": [\n            \t{\n            \t\"Company_total\": \"555\",\t\n            \t\"idc_company_25_Assesment0\":[\n            \t\t{\n            \t\t\"daily_data_limit\":\"111\",\t\n            \t\t\"surely_daily_ground_amoeba\":[\n            \t\t\t{\n            \t\t\t\"invitations\": \"Payload data\",\n            \t\t\t\"id\": \"45\",\n            \t\t\t\"develop_output\": \"check\"\n            \t\t\t}]\n            \t}]\n            }]\n        }\n    ],\n    \"message\": \"Response Initiated\"\n}"}],"_postman_id":"7506670a-719f-4d39-ae95-736aece51860"},{"name":"Parse Response","event":[{"listen":"test","script":{"id":"e96965fb-4ecb-4668-a7ce-96593365f0a2","exec":["//JSON response","//Issue with the scripts *Need to check ASAP*","","var $ = JSON.parse(responseBody);","console.log($.data[0].id);","var env_path = pm.environment.get('derive_from_env');","var temp = pm.environment.get('derive_from_env');","pm.environment.set(\"1_payload0\", $.data[env_path].id);","pm.environment.set(\"Payload_Val_new\", $.data[0].idc_company_25[0].idc_company_25_Assesment0[0].surely_daily_ground_amoeba[0].invitations);","","console.log(\"Environment value is \" + pm.environment.get(\"Payload_Val_new\"));"],"type":"text/javascript"}}],"id":"839b6956-e213-4abf-8053-14524bd36b90","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[],"url":"https://2101142b-36a8-44b9-b791-3ce38327cca1.mock.pstmn.io/parse","description":"<p>Check how the values can be retrieved from an environment and be saved to a variable. And this variable is inturn used to set new Environment variable.</p>\n<p>Also, on how the environment values can be set using the path.</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[]},"isInherited":true,"source":{"_postman_id":"35ba2ff3-ffdd-40df-b372-6bb7c35e38c6","id":"35ba2ff3-ffdd-40df-b372-6bb7c35e38c6","name":"Mock Requests","type":"collection"}},"urlObject":{"protocol":"https","path":["parse"],"host":["2101142b-36a8-44b9-b791-3ce38327cca1.mock.pstmn.io"],"query":[],"variable":[]}},"response":[],"_postman_id":"839b6956-e213-4abf-8053-14524bd36b90"},{"name":"TestScripts","event":[{"listen":"prerequest","script":{"id":"df071d16-8062-4336-9bda-a972e63b51e9","exec":["function generateCodeVerifier(){","    return generateRandomString(96);","}","","function generateRandomString(length){","    var text = \"\";","    var possible =\"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789\";","    for (var i=0;i<length;i++){","        text += possible.charAt(Math.floor(Math.random() * possible.length));","    }","    return text;","}","","function generateCodeChallenge(code_verifier){","    return CryptoJS.SHA256(code_verifier);","}","","function base64URL(string){","    return string.toString(CryptoJS.enc.Base64).replace(/=/g, '').replace(/\\+/g, '-').replace(/\\//g, '_')","}","","var verifier = base64URL(generateCodeVerifier());","var challenge = base64URL(generateCodeChallenge(verifier));","","pm.collectionVariables.set(\"READONLY_CODE_VERIFIER\", verifier);","pm.collectionVariables.set(\"READONLY_CODE_CHALLENGE\", challenge);","console.log('challenge should be ', challenge);","pm.environment.set('challenge', challenge);"],"type":"text/javascript"}},{"listen":"test","script":{"id":"9ca2fa5f-8677-456f-8752-b36ddcccbb49","exec":["//The idea here is to set the challenge environment from pre-request script, you are supposed to receive the fourth mock","//Due to precedence : Check GitHub discussion thread from link below","//https://github.com/postmanlabs/postman-app-support/issues/8065"],"type":"text/javascript"}}],"id":"0797cdd3-7935-402e-8f28-6d5275cb6261","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://2101142b-36a8-44b9-b791-3ce38327cca1.mock.pstmn.io/endpoint?client_id={{CLIENT_ID}}&redirect_url={{REDIRECT_URL}}&response_type=code&scope=openid&code_challenge={{challenge}}&code_challenge_method=S256","auth":{"type":"oauth2","oauth2":{"basicConfig":[]},"isInherited":true,"source":{"_postman_id":"35ba2ff3-ffdd-40df-b372-6bb7c35e38c6","id":"35ba2ff3-ffdd-40df-b372-6bb7c35e38c6","name":"Mock Requests","type":"collection"}},"urlObject":{"protocol":"https","path":["endpoint"],"host":["2101142b-36a8-44b9-b791-3ce38327cca1.mock.pstmn.io"],"query":[{"key":"client_id","value":"{{CLIENT_ID}}"},{"key":"redirect_url","value":"{{REDIRECT_URL}}"},{"key":"response_type","value":"code"},{"key":"scope","value":"openid"},{"key":"code_challenge","value":"{{challenge}}"},{"key":"code_challenge_method","value":"S256"}],"variable":[]}},"response":[],"_postman_id":"0797cdd3-7935-402e-8f28-6d5275cb6261"},{"name":"Mock match request Body","event":[{"listen":"prerequest","script":{"id":"c9e49d18-3814-41b7-b1f3-f34f1bb850e2","exec":["//Here methiod can be set using the Method variable, try using \"get\" next and see the method deduced by clicking on Postman console - third icon in the left of the footer bar","","pm.variables.set('METHOD', 'POST');"],"type":"text/javascript"}}],"id":"92c6cdb9-682a-4dd2-8b78-907a92504ba7","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"{{METHOD}}","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"},{"key":"x-mock-match-request-body","type":"text","value":"true"}],"body":{"mode":"raw","raw":"{\n\t\"customerid\": 789,\n\t\"body\": \"Should match exactly\"\n}","options":{"raw":{"language":"json"}}},"url":"https://2101142b-36a8-44b9-b791-3ce38327cca1.mock.pstmn.io/login","description":"<p><a href=\"https://community.postman.com/t/mock-server-and-regular-expression/11245/9\">https://community.postman.com/t/mock-server-and-regular-expression/11245/9</a></p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[]},"isInherited":true,"source":{"_postman_id":"35ba2ff3-ffdd-40df-b372-6bb7c35e38c6","id":"35ba2ff3-ffdd-40df-b372-6bb7c35e38c6","name":"Mock Requests","type":"collection"}},"urlObject":{"protocol":"https","path":["login"],"host":["2101142b-36a8-44b9-b791-3ce38327cca1.mock.pstmn.io"],"query":[],"variable":[]}},"response":[],"_postman_id":"92c6cdb9-682a-4dd2-8b78-907a92504ba7"},{"name":"Random generator - Sandbox ","id":"e80a72d0-1ae4-4672-9051-9a266453c06c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://2101142b-36a8-44b9-b791-3ce38327cca1.mock.pstmn.io/randomsandbox","auth":{"type":"oauth2","oauth2":{"basicConfig":[]},"isInherited":true,"source":{"_postman_id":"35ba2ff3-ffdd-40df-b372-6bb7c35e38c6","id":"35ba2ff3-ffdd-40df-b372-6bb7c35e38c6","name":"Mock Requests","type":"collection"}},"urlObject":{"protocol":"https","path":["randomsandbox"],"host":["2101142b-36a8-44b9-b791-3ce38327cca1.mock.pstmn.io"],"query":[],"variable":[]}},"response":[],"_postman_id":"e80a72d0-1ae4-4672-9051-9a266453c06c"},{"name":"Match_Mock_response_code","id":"281d2ea6-e522-45a4-919b-0497f2a42e8a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"x-mock-response-code","type":"text","value":"400"}],"url":"https://2101142b-36a8-44b9-b791-3ce38327cca1.mock.pstmn.io/code","auth":{"type":"oauth2","oauth2":{"basicConfig":[]},"isInherited":true,"source":{"_postman_id":"35ba2ff3-ffdd-40df-b372-6bb7c35e38c6","id":"35ba2ff3-ffdd-40df-b372-6bb7c35e38c6","name":"Mock Requests","type":"collection"}},"urlObject":{"protocol":"https","path":["code"],"host":["2101142b-36a8-44b9-b791-3ce38327cca1.mock.pstmn.io"],"query":[],"variable":[]}},"response":[{"id":"3513b737-6e83-4a30-8135-f2b49b726c54","name":"One_Match_Mock_response_code","originalRequest":{"method":"GET","header":[{"key":"x-mock-response-code","value":"true","type":"text"}],"url":"https://2101142b-36a8-44b9-b791-3ce38327cca1.mock.pstmn.io/code"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n\t\"response\": \"received\"\n}"},{"id":"5056007f-0130-40f3-8f46-ff569390a463","name":"Two_Match_Mock_response_code","originalRequest":{"method":"GET","header":[{"key":"x-mock-response-code","value":"true","type":"text"}],"url":"https://2101142b-36a8-44b9-b791-3ce38327cca1.mock.pstmn.io/code"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n\t\"Mission\": \"Abort!\"\n}"}],"_postman_id":"281d2ea6-e522-45a4-919b-0497f2a42e8a"}],"auth":{"type":"oauth2","oauth2":{"basicConfig":[]}},"event":[{"listen":"prerequest","script":{"id":"3af80f20-c1e3-4e95-8875-c3b5cbb83961","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"794d8299-19a2-4178-8c3f-70d89c94f853","type":"text/javascript","exec":[""]}}],"variable":[{"key":"mock-url","value":"2101142b-36a8-44b9-b791-3ce38327cca1.mock.pstmn.io"},{"key":"READONLY_CODE_CHALLENGE","value":"lPjBSwohx-f-aeXHDWUluESWdebMMsNETQA371a4mTw"},{"key":"READONLY_CODE_VERIFIER","value":"wmoizH9SSwn90TQm0Dwhxa3Th5IFSNWOn3iIX0piAETNslLdZHMe75lnPYSfuY08AJsTvMc9cF8Z5ptgbegjKpc960tyz8FN"}]}