{"info":{"_postman_id":"8c1e15ff-3454-44ca-a65a-f73a9189337c","name":"Traffic Parrot APIs (version 5.x.x)","description":"<html><head></head><body><h1 id=\"important-information-about-these-apis\">Important Information about these APIs</h1>\n<p>Please keep in mind these APIs were not designed to be used externally, they are our internal API.<br>That is the reason, they might be sometimes unintuitive or difficult to use.</p>\n<p>If you have any issues with these APIs please email us at <a href=\"https://mailto:support@trafficparrot.com\">support@trafficparrot.com</a>.</p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[{"content":"Important Information about these APIs","slug":"important-information-about-these-apis"}],"owner":"8460952","collectionId":"8c1e15ff-3454-44ca-a65a-f73a9189337c","publishedId":"SVYxob59","public":true,"customColor":{"top-bar":"F0F0F0","right-sidebar":"303030","highlight":"428BCA"},"publishDate":"2019-08-15T12:05:43.000Z"},"item":[{"name":"Scenario APIs","item":[{"name":"Get all scenarios","id":"964a6ea9-a838-4f79-ae3c-6fa9eaaf3715","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Accept","value":"application/vnd.trafficparrot.scenarios.v1+json","type":"text"}],"url":"http://localhost:8080/api/scenarios","urlObject":{"path":["api","scenarios"],"host":["http://localhost:8080"],"query":[],"variable":[]}},"response":[],"_postman_id":"964a6ea9-a838-4f79-ae3c-6fa9eaaf3715"},{"name":"Create or update scenario","id":"721ca94b-a012-4408-83d4-9b0899d58c31","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"Accept","type":"text","value":"application/vnd.trafficparrot.scenarios.v1+json"},{"key":"Content-Type","name":"Content-Type","value":"application/vnd.trafficparrot.scenarios.v1+json","type":"text"}],"body":{"mode":"raw","raw":"{\n\t\"enabled\": true\n}"},"url":"http://localhost:8080/api/scenarios/:name","urlObject":{"path":["api","scenarios",":name"],"host":["http://localhost:8080"],"query":[],"variable":[{"id":"0b1568a8-19bb-4a18-9c26-3aa15647d6a6","type":"string","value":"example","key":"name"}]}},"response":[],"_postman_id":"721ca94b-a012-4408-83d4-9b0899d58c31"}],"id":"12be2bbb-9555-409e-aaf8-de23536a00dd","_postman_id":"12be2bbb-9555-409e-aaf8-de23536a00dd","description":""},{"name":"State APIs","item":[{"name":"Get global state","id":"546919a4-cfef-4434-8ae0-1dfe8ae4b991","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Accept","type":"text","value":"application/vnd.trafficparrot.state.v1+json"}],"url":"http://localhost:8080/api/state/global/:name","urlObject":{"path":["api","state","global",":name"],"host":["http://localhost:8080"],"query":[],"variable":[{"id":"a2e7e4a1-f087-4f6b-ba66-779726665eba","type":"string","value":"example","key":"name"}]}},"response":[],"_postman_id":"546919a4-cfef-4434-8ae0-1dfe8ae4b991"},{"name":"Create or update global state","id":"74662968-d976-4dba-9a03-bc593dd7d11e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"Accept","type":"text","value":"application/vnd.trafficparrot.state.v1+json"},{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/vnd.trafficparrot.state.v1+json"}],"body":{"mode":"raw","raw":"{\n\t\"value\": 1234\n}"},"url":"http://localhost:8080/api/state/global/:name","urlObject":{"path":["api","state","global",":name"],"host":["http://localhost:8080"],"query":[],"variable":[{"id":"22d6d6fb-cd81-45f0-861e-56adf3b2f4c4","type":"string","value":"example","key":"name"}]}},"response":[],"_postman_id":"74662968-d976-4dba-9a03-bc593dd7d11e"},{"name":"Delete all state","id":"77b22b3f-2b08-4996-967d-078898f0e527","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"Accept","type":"text","value":"application/vnd.trafficparrot.state.v1+json"}],"url":"http://localhost:8080/api/state","urlObject":{"path":["api","state"],"host":["http://localhost:8080"],"query":[],"variable":[]}},"response":[],"_postman_id":"77b22b3f-2b08-4996-967d-078898f0e527"}],"id":"d3a35612-f2e2-45b7-a7bc-f511e84dad5c","_postman_id":"d3a35612-f2e2-45b7-a7bc-f511e84dad5c","description":""},{"name":"HTTP APIs","item":[{"name":"HTTP APIs","item":[{"name":"Count requests in journal","id":"05bd5912-25ba-4f80-9bb0-ded887d092d9","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"method\": \"POST\",\n    \"url\": \"/resource/to/count\",\n    \"headers\": {\n        \"Content-Type\": {\n            \"matches\": \".*json\"\n        }\n    },\n    \"bodyPatterns\": [ {\n\t\t\"matchesJsonPath\" : \"$.name\"\n\t} ]\n}"},"url":"http://localhost:8080/api/http/requests/count","urlObject":{"path":["api","http","requests","count"],"host":["http://localhost:8080"],"query":[],"variable":[]}},"response":[],"_postman_id":"05bd5912-25ba-4f80-9bb0-ded887d092d9"},{"name":"Delete requests in journal","id":"9b4b86b7-b2c3-4e78-94d3-8d8a770c83ec","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"http://localhost:8080/api/http/requests","urlObject":{"path":["api","http","requests"],"host":["http://localhost:8080"],"query":[],"variable":[]}},"response":[],"_postman_id":"9b4b86b7-b2c3-4e78-94d3-8d8a770c83ec"},{"name":"Get all mappings","id":"72a47183-8abd-4592-8b22-b94ee2894bb4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:8080/api/http/__admin/","urlObject":{"path":["api","http","__admin",""],"host":["http://localhost:8080"],"query":[],"variable":[]}},"response":[],"_postman_id":"72a47183-8abd-4592-8b22-b94ee2894bb4"},{"name":"Export mappings as ZIP","id":"a912f217-4fba-468d-b972-a7f9e9c12c8e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:8080/http/management/exportMappings","urlObject":{"path":["http","management","exportMappings"],"host":["http://localhost:8080"],"query":[],"variable":[]}},"response":[],"_postman_id":"a912f217-4fba-468d-b972-a7f9e9c12c8e"},{"name":"Import mappings from ZIP","id":"edf63776-3001-4742-af75-35e893479c47","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"files","type":"file","src":"0AIbeWqt-/http-mappings-2021-02-18--18-38-35.zip"}]},"url":"http://localhost:8080/http/management/importMappings","urlObject":{"path":["http","management","importMappings"],"host":["http://localhost:8080"],"query":[],"variable":[]}},"response":[],"_postman_id":"edf63776-3001-4742-af75-35e893479c47"},{"name":"Import OpenAPI or RAML","id":"ed7c2326-d491-4594-8d83-2ddc0a275e11","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"files","type":"file","src":"Fiw9BzM2c/petstore.yaml"}]},"url":"http://localhost:8080/http/management/importMappings","urlObject":{"path":["http","management","importMappings"],"host":["http://localhost:8080"],"query":[],"variable":[]}},"response":[],"_postman_id":"ed7c2326-d491-4594-8d83-2ddc0a275e11"},{"name":"Add mapping","id":"aebdfc9e-cb93-4f01-9e99-089da5d76ecf","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n  \"request\": {\n    \"method\": \"GET\",\n    \"url\": \"/healthCheck\"\n  },\n  \"response\": {\n    \"status\": 200,\n    \"jsonBody\": {\"status\":\"Success\",\"message\":\"All services runnong well!\"},\n    \"headers\": {\n      \"Content-Type\": \"application/json\"\n    }\n  }\n}"},"url":"http://localhost:8080/api/http/__admin/mappings","urlObject":{"path":["api","http","__admin","mappings"],"host":["http://localhost:8080"],"query":[],"variable":[]}},"response":[],"_postman_id":"aebdfc9e-cb93-4f01-9e99-089da5d76ecf"},{"name":"Reset mappings","id":"62151d39-d610-4589-8955-13bfde2a9391","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":""},"url":"http://localhost:8080/api/http/__admin/mappings/reset","urlObject":{"path":["api","http","__admin","mappings","reset"],"host":["http://localhost:8080"],"query":[],"variable":[]}},"response":[],"_postman_id":"62151d39-d610-4589-8955-13bfde2a9391"},{"name":"Delete mappings","id":"d27c4c98-88ff-4957-a30e-f3288e5aed03","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"body":{"mode":"raw","raw":""},"url":"http://localhost:8080/api/http/__admin/mappings","urlObject":{"path":["api","http","__admin","mappings"],"host":["http://localhost:8080"],"query":[],"variable":[]}},"response":[],"_postman_id":"d27c4c98-88ff-4957-a30e-f3288e5aed03"},{"name":"Get mapping","id":"737a6a13-d86b-4ddf-a87c-cfc8356da778","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:8080/api/http/__admin/mappings/9fb714df-3c5f-49ca-9049-ee565ad934e1","urlObject":{"path":["api","http","__admin","mappings","9fb714df-3c5f-49ca-9049-ee565ad934e1"],"host":["http://localhost:8080"],"query":[],"variable":[]}},"response":[],"_postman_id":"737a6a13-d86b-4ddf-a87c-cfc8356da778"},{"name":"Update mapping","id":"139292f7-beac-4029-b8d2-19f47b023fae","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\n    \"id\": \"9fb714df-3c5f-49ca-9049-ee565ad934e1\",\n    \"name\": \"file:/C:/Users/Traffic%20Parrot/Downloads/trafficparrot-enterprise-release-4.2.0-DEV-SNAPSHOT/./mappings/test-9fb714df-3c5f-49ca-9049-ee565ad934e1.json\",\n    \"request\": {\n        \"url\": \"/test2\",\n        \"method\": \"ANY\"\n    },\n    \"response\": {\n        \"status\": 200\n    },\n    \"uuid\": \"9fb714df-3c5f-49ca-9049-ee565ad934e1\"\n}"},"url":"http://localhost:8080/api/http/__admin/mappings/9fb714df-3c5f-49ca-9049-ee565ad934e1","urlObject":{"path":["api","http","__admin","mappings","9fb714df-3c5f-49ca-9049-ee565ad934e1"],"host":["http://localhost:8080"],"query":[],"variable":[]}},"response":[],"_postman_id":"139292f7-beac-4029-b8d2-19f47b023fae"},{"name":"Delete mapping","id":"c2640e67-b693-4b35-b6b7-f0dc3e47e321","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"body":{"mode":"raw","raw":""},"url":"http://localhost:8080/api/http/__admin/mappings/64f3f741-30f3-4797-a1e4-2f44c91f941b","urlObject":{"path":["api","http","__admin","mappings","64f3f741-30f3-4797-a1e4-2f44c91f941b"],"host":["http://localhost:8080"],"query":[],"variable":[]}},"response":[],"_postman_id":"c2640e67-b693-4b35-b6b7-f0dc3e47e321"},{"name":"Delete bulk mappings","id":"0f9f1394-0563-4ed7-ad7c-61cd778fb138","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"body":{"mode":"raw","raw":""},"url":"http://localhost:8080/api/http/mappings/bulk/UUID1,UUID2,...,UUIDN","urlObject":{"path":["api","http","mappings","bulk","UUID1,UUID2,...,UUIDN"],"host":["http://localhost:8080"],"query":[],"variable":[]}},"response":[],"_postman_id":"0f9f1394-0563-4ed7-ad7c-61cd778fb138"},{"name":"Create body file","id":"a6e7bab1-46cd-4daa-918b-23fb606aa13d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"hello 2"},"url":"http://localhost:8080/api/http/__admin/files/example.txt","urlObject":{"path":["api","http","__admin","files","example.txt"],"host":["http://localhost:8080"],"query":[],"variable":[]}},"response":[],"_postman_id":"a6e7bab1-46cd-4daa-918b-23fb606aa13d"},{"name":"Get all body file paths","id":"4acaef78-eac6-43a3-a64b-9610c240b066","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:8080/api/http/__admin/files","urlObject":{"path":["api","http","__admin","files"],"host":["http://localhost:8080"],"query":[],"variable":[]}},"response":[],"_postman_id":"4acaef78-eac6-43a3-a64b-9610c240b066"},{"name":"Delete body file","id":"78dfb60b-d575-40ae-9f5e-19e15bef25e4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"body":{"mode":"raw","raw":"hello 2"},"url":"http://localhost:8080/api/http/__admin/files/example.txt","urlObject":{"path":["api","http","__admin","files","example.txt"],"host":["http://localhost:8080"],"query":[],"variable":[]}},"response":[],"_postman_id":"78dfb60b-d575-40ae-9f5e-19e15bef25e4"},{"name":"Get body file","id":"c9efb11d-4095-41ef-b28e-2ca870c34fca","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:8080/api/http/getBodyFile?bodyFileName=example.txt","urlObject":{"path":["api","http","getBodyFile"],"host":["http://localhost:8080"],"query":[{"key":"bodyFileName","value":"example.txt"}],"variable":[]}},"response":[],"_postman_id":"c9efb11d-4095-41ef-b28e-2ca870c34fca"}],"id":"1374a727-b37d-4cf9-a05a-4e552befbb36","event":[{"listen":"prerequest","script":{"id":"17079435-64cd-44a3-a19a-cf03c347f6c7","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"57cd0af0-f8cf-4d00-9b29-3f19e575a7c7","type":"text/javascript","exec":[""]}}],"_postman_id":"1374a727-b37d-4cf9-a05a-4e552befbb36","description":""},{"name":"HTTP APIs usage examples","item":[{"name":"Stock price example","item":[{"name":"1. Create stock mapping","id":"8e9eb633-09a3-4f87-a7f1-47a5c4be169a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n  \"id\" : \"786221eb-c2de-4288-ad72-4af52f900aba\",\r\n  \"request\" : {\r\n    \"urlPath\" : \"/stockRequest\",\r\n    \"method\" : \"ANY\",\r\n    \"bodyPatterns\" : [ {\r\n      \"matchesXPath\" : \"/stockRequest\"\r\n    } ]\r\n  },\r\n  \"response\" : {\r\n    \"status\" : 200,\r\n    \"bodyFileName\" : \"stockRequest.xml\"\r\n  },\r\n  \"uuid\" : \"786221eb-c2de-4288-ad72-4af52f900aba\"\r\n}"},"url":"http://localhost:8080/api/http/__admin/mappings","urlObject":{"path":["api","http","__admin","mappings"],"host":["http://localhost:8080"],"query":[],"variable":[]}},"response":[],"_postman_id":"8e9eb633-09a3-4f87-a7f1-47a5c4be169a"},{"name":"2. Create stock request body file","id":"846ab3a5-b04a-4829-a7d7-b24dd3c788ac","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"<stockResponse>\r\n    <checkId>{{xPath request.body '/stockRequest/checkId/text()'}}</checkId>\r\n    <date>{{now format=\"yyyy-MM-dd'T'HH:mm:ssZ\"}}</date>\r\n    <item>{{xPath request.body '/stockRequest/item/text()'}}</item>\r\n    <available>{{#ifEven (xPath request.body '/stockRequest/checkId/text()')}}0{{else}}5{{/ifEven}}</available>\r\n</stockResponse>"},"url":"http://localhost:8080/api/http/__admin/files/stockRequest.xml","urlObject":{"path":["api","http","__admin","files","stockRequest.xml"],"host":["http://localhost:8080"],"query":[],"variable":[]}},"response":[],"_postman_id":"846ab3a5-b04a-4829-a7d7-b24dd3c788ac"},{"name":"3. Test stock virtual service","id":"1be5afce-bdd3-4dfa-86b3-6a3aaeda48d2","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"<stockRequest>\r\n    <checkId>2</checkId>\r\n    <item>apple</item>\r\n</stockRequest>"},"url":"http://localhost:8081/stockRequest","urlObject":{"path":["stockRequest"],"host":["http://localhost:8081"],"query":[],"variable":[]}},"response":[],"_postman_id":"1be5afce-bdd3-4dfa-86b3-6a3aaeda48d2"}],"id":"195c96d8-7887-46f6-b90b-1e4d3e591eff","event":[{"listen":"prerequest","script":{"id":"a7af1f3c-6ed0-40e9-ba5c-fe80b97d6169","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"64e9e046-9b23-43bb-b341-218a88e39db1","type":"text/javascript","exec":[""]}}],"_postman_id":"195c96d8-7887-46f6-b90b-1e4d3e591eff","description":""},{"name":"xPathList helper example","item":[{"name":"1. Create xPathList mapping","id":"4541b477-3af4-43f7-8b98-dc94da656704","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n  \"id\" : \"3a995e78-5cf3-4d96-96bd-58136e4081ba\",\r\n  \"request\" : {\r\n    \"urlPath\" : \"/requestXPathList\",\r\n    \"method\" : \"ANY\",\r\n    \"bodyPatterns\" : [ {\r\n      \"matchesXPath\" : \"/request\"\r\n    } ]\r\n  },\r\n  \"response\" : {\r\n    \"status\" : 200,\r\n    \"bodyFileName\" : \"requestXPathList.xml\"\r\n  },\r\n  \"uuid\" : \"3a995e78-5cf3-4d96-96bd-58136e4081ba\"\r\n}"},"url":"http://localhost:8080/api/http/__admin/mappings","urlObject":{"path":["api","http","__admin","mappings"],"host":["http://localhost:8080"],"query":[],"variable":[]}},"response":[],"_postman_id":"4541b477-3af4-43f7-8b98-dc94da656704"},{"name":"2. Create xPathList mapping body file","id":"0c4796fc-902e-402a-bd47-34bf92714b59","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"<response>\r\n    {{#each (xPathList request.body '/request') }}\r\n    <item id=\"{{ xPath this '/item/@id' }}\" status=\"OK\"/>\r\n    {{/each}}\r\n</response>"},"url":"http://localhost:8080/api/http/__admin/files/requestXPathList.xml","urlObject":{"path":["api","http","__admin","files","requestXPathList.xml"],"host":["http://localhost:8080"],"query":[],"variable":[]}},"response":[],"_postman_id":"0c4796fc-902e-402a-bd47-34bf92714b59"},{"name":"3. Test xPathList mock","id":"6e1d0fdf-e65f-43f8-8683-4b05f8964876","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"<request>\r\n\t<item id=\"1\"/>\r\n\t<item id=\"2\"/>\r\n\t<item id=\"3\"/>\r\n</request>"},"url":"http://localhost:8081/requestXPathList","urlObject":{"path":["requestXPathList"],"host":["http://localhost:8081"],"query":[],"variable":[]}},"response":[],"_postman_id":"6e1d0fdf-e65f-43f8-8683-4b05f8964876"}],"id":"bf3fcd28-66b9-4ce1-b450-3966457bd87b","event":[{"listen":"prerequest","script":{"id":"72f41d4d-9f45-45ad-8c74-c0896c26c227","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"411e526b-2f3f-4f68-8a3a-cc2e20cd41d4","type":"text/javascript","exec":[""]}}],"_postman_id":"bf3fcd28-66b9-4ce1-b450-3966457bd87b","description":""},{"name":"jsonPathList helper example","item":[{"name":"1. Create jsonPathList mapping","id":"dd25ed14-983c-4670-86b8-d00ae5be8952","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n  \"id\" : \"5e39d0c7-039c-4c34-8d6b-07c7460e93bc\",\r\n  \"request\" : {\r\n    \"urlPath\" : \"/requestJsonPathList\",\r\n    \"method\" : \"ANY\",\r\n    \"bodyPatterns\" : [ {\r\n      \"matchesJsonPath\" : \"$.items\"\r\n    } ]\r\n  },\r\n  \"response\" : {\r\n    \"status\" : 200,\r\n    \"bodyFileName\" : \"requestJsonPathList.json\"\r\n  },\r\n  \"uuid\" : \"5e39d0c7-039c-4c34-8d6b-07c7460e93bc\"\r\n}"},"url":"http://localhost:8080/api/http/__admin/mappings","urlObject":{"path":["api","http","__admin","mappings"],"host":["http://localhost:8080"],"query":[],"variable":[]}},"response":[],"_postman_id":"dd25ed14-983c-4670-86b8-d00ae5be8952"},{"name":"2. Create jsonPathList body file mapping","id":"4f0c3c42-7ab0-4793-a073-8b70d8db958d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\r\n    \"type\": \"response\",\r\n    \"items\": [\r\n        {{#each (jsonPathList request.body '$.items') }}\r\n        { \"id\": {{ jsonPath this '$.id' }}, \"status\": \"OK\" }{{#unless @last}},{{/unless}}\r\n        {{/each}}\r\n    ]\r\n}"},"url":"http://localhost:8080/api/http/__admin/files/requestJsonPathList.json","urlObject":{"path":["api","http","__admin","files","requestJsonPathList.json"],"host":["http://localhost:8080"],"query":[],"variable":[]}},"response":[],"_postman_id":"4f0c3c42-7ab0-4793-a073-8b70d8db958d"},{"name":"3. Test jsonPathList mock","id":"4a710c00-7e73-405d-93e9-106c22107b3f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n\t\"type\": \"request\",\r\n\t\"items\": [\r\n    \t{ \"id\": 1 },\r\n    \t{ \"id\": 2 },\r\n    \t{ \"id\": 3 }\r\n\t]\r\n}\r\n"},"url":"http://localhost:8081/requestJsonPathList","urlObject":{"path":["requestJsonPathList"],"host":["http://localhost:8081"],"query":[],"variable":[]}},"response":[],"_postman_id":"4a710c00-7e73-405d-93e9-106c22107b3f"}],"id":"76c5cb86-08e2-4c9f-9095-6b7a0841cad9","event":[{"listen":"prerequest","script":{"id":"9b6e7e5c-3acc-43cc-b555-a92103630f74","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"b4613760-cfbb-4a83-926c-8682908be5fa","type":"text/javascript","exec":[""]}}],"_postman_id":"76c5cb86-08e2-4c9f-9095-6b7a0841cad9","description":""},{"name":"Faults example","item":[{"name":"1. Create dribbling bytes mapping","id":"312196d6-d84d-4785-8c7d-ee959bc256f9","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n  \"id\" : \"1c5df701-dd64-4120-ae22-23a1461b6199\",\r\n  \"request\" : {\r\n    \"url\" : \"/dripBytesEvery1s\",\r\n    \"method\" : \"ANY\"\r\n  },\r\n  \"response\" : {\r\n    \"status\" : 200,\r\n    \"body\" : \"123456798\",\r\n    \"fault\" : \"DRIP_BYTE_EVERY_1s\"\r\n  },\r\n  \"uuid\" : \"1c5df701-dd64-4120-ae22-23a1461b6199\"\r\n}"},"url":"http://localhost:8080/api/http/__admin/mappings","urlObject":{"path":["api","http","__admin","mappings"],"host":["http://localhost:8080"],"query":[],"variable":[]}},"response":[],"_postman_id":"312196d6-d84d-4785-8c7d-ee959bc256f9"},{"name":"2. Test dribbling bytes mock","id":"03190f64-716b-4850-b6a4-2d3b8a55ac6b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"<request>\r\n\t<item id=\"1\"/>\r\n\t<item id=\"2\"/>\r\n\t<item id=\"3\"/>\r\n</request>"},"url":"http://localhost:8081/dripBytesEvery1s","urlObject":{"path":["dripBytesEvery1s"],"host":["http://localhost:8081"],"query":[],"variable":[]}},"response":[],"_postman_id":"03190f64-716b-4850-b6a4-2d3b8a55ac6b"}],"id":"09b90ba9-5b83-402d-8413-fcafa030038c","event":[{"listen":"prerequest","script":{"id":"dcb30faf-04d7-4e19-abde-e338285d828b","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"cbd005ea-6df5-4afd-a9fd-542ff993cb9f","type":"text/javascript","exec":[""]}}],"_postman_id":"09b90ba9-5b83-402d-8413-fcafa030038c","description":""}],"id":"fbeb168a-593f-4919-93c6-250d4ddcc485","event":[{"listen":"prerequest","script":{"id":"61ac72df-86cc-414c-bab6-6ed18c781e9d","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"afc5d88f-e61a-4653-ba55-179b7b39c663","type":"text/javascript","exec":[""]}}],"_postman_id":"fbeb168a-593f-4919-93c6-250d4ddcc485","description":""}],"id":"32471790-c8bc-47e5-aa4a-44b8e323b82d","event":[{"listen":"prerequest","script":{"id":"73454b41-f815-4386-89b0-38c43c9215a2","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"0c1f6ec3-99be-4b57-a94c-c29f19be7890","type":"text/javascript","exec":[""]}}],"_postman_id":"32471790-c8bc-47e5-aa4a-44b8e323b82d","description":""},{"name":"JMS APIs","item":[{"name":"Start replay","id":"64cb8501-37c2-4f46-9f4d-d94e6bd9d583","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n   \"action\": \"START\",\n   \"broker\": {\n       \"type\": \"EXTERNAL\"\n   },\n   \"queue\": {\n       \"consumeRequestsFromConnectionId\": 1,\n       \"replayResponsesToConnectionId\": 1\n   }\n}"},"url":"http://localhost:8080/jms/replay","urlObject":{"path":["jms","replay"],"host":["http://localhost:8080"],"query":[],"variable":[]}},"response":[],"_postman_id":"64cb8501-37c2-4f46-9f4d-d94e6bd9d583"},{"name":"Count requests in journal","id":"5badf09b-3885-4883-842a-aa08c04cd2c6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Accept","type":"text","value":"application/vnd.trafficparrot.jms.requests.count.v1+json"},{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/vnd.trafficparrot.jms.requests.count.v1+json"}],"body":{"mode":"raw","raw":"{\n\t\"destination\": {\n\t\t\"name\": \"request-queue\",\n\t\t\"type\": \"QUEUE\"\n\t},\n\t\"messageText\": {\n\t\t\"contains\": \"example\"\n\t}\n}"},"url":"http://localhost:8080/api/jms/requests/count","urlObject":{"path":["api","jms","requests","count"],"host":["http://localhost:8080"],"query":[],"variable":[]}},"response":[],"_postman_id":"5badf09b-3885-4883-842a-aa08c04cd2c6"},{"name":"Delete requests in journal","id":"381cf77b-8c71-4715-ac59-1b9f60d40349","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"Accept","type":"text","value":"application/vnd.trafficparrot.jms.requests.count.v1+json"},{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/vnd.trafficparrot.jms.requests.count.v1+json"}],"url":"http://localhost:8080/api/jms/requests","urlObject":{"path":["api","jms","requests"],"host":["http://localhost:8080"],"query":[],"variable":[]}},"response":[],"_postman_id":"381cf77b-8c71-4715-ac59-1b9f60d40349"},{"name":"Get all mappings","id":"64ad27fc-bfe7-4547-8110-f7d7e036a863","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:8080/jms/mappings","urlObject":{"path":["jms","mappings"],"host":["http://localhost:8080"],"query":[],"variable":[]}},"response":[],"_postman_id":"64ad27fc-bfe7-4547-8110-f7d7e036a863"},{"name":"Delete mapping","id":"f0dfd37a-91f4-437d-9759-466a0c56827a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Origin","value":"http://localhost:8080"},{"key":"Accept-Encoding","value":"gzip, deflate, br"},{"key":"Accept-Language","value":"en-GB,en-US;q=0.9,en;q=0.8"},{"key":"User-Agent","value":"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Ubuntu Chromium/71.0.3578.98 Chrome/71.0.3578.98 Safari/537.36"},{"key":"Content-Type","value":"application/x-www-form-urlencoded; charset=UTF-8"},{"key":"Accept","value":"*/*"},{"key":"Referer","value":"http://localhost:8080/jms/stub.html"},{"key":"Connection","value":"keep-alive"}],"body":{"mode":"raw","raw":""},"url":"http://localhost:8080/jms/management/delete?mapping-id=6997ebbd-c7ea-4c89-bd2e-d3bc13d98d87","urlObject":{"path":["jms","management","delete"],"host":["http://localhost:8080"],"query":[{"key":"mapping-id","value":"6997ebbd-c7ea-4c89-bd2e-d3bc13d98d87"}],"variable":[]}},"response":[],"_postman_id":"f0dfd37a-91f4-437d-9759-466a0c56827a"},{"name":"Add mapping","id":"64c7835e-d0ee-49a7-9aa5-6281a8e5e1de","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"mapping-id","value":"","type":"text"},{"key":"destination-type","value":"QUEUE","type":"text"},{"key":"request-destination-name","value":"DEV.QUEUE.1","type":"text"},{"key":"request-message-type","value":"javax.jms.TextMessage","type":"text"},{"key":"request-body-type","value":"TEXT","type":"text"},{"key":"request-body-matcher","value":"contains","type":"text"},{"key":"request-body","value":"abc","type":"text"},{"key":"response-destination-name","value":"DEV.QUEUE.2","type":"text"},{"key":"response-transformer-class-name","value":"NO_TRANSFORMER","type":"text"},{"key":"response-message-type","value":"javax.jms.TextMessage","type":"text"},{"key":"response-body-type","value":"TEXT","type":"text"},{"key":"response-body","value":"{\"success\": true}","type":"text"},{"key":"response-properties","value":"","type":"text"},{"key":"response-delay","value":"0","type":"text"}]},"url":"http://localhost:8080/jms/management/prime","urlObject":{"path":["jms","management","prime"],"host":["http://localhost:8080"],"query":[],"variable":[]}},"response":[],"_postman_id":"64c7835e-d0ee-49a7-9aa5-6281a8e5e1de"}],"id":"524b8d71-8e4d-4afb-8b87-85b379ea7fe1","event":[{"listen":"prerequest","script":{"id":"dd6bc3fc-ca79-46e2-b00f-7f2e16f3722c","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"9558c8a8-1dca-48c3-a28e-92d9d8b3ccb8","type":"text/javascript","exec":[""]}}],"_postman_id":"524b8d71-8e4d-4afb-8b87-85b379ea7fe1","description":""},{"name":"Native IBM® MQ APIs","item":[{"name":"Start replay","id":"fe85e17e-ab47-4e14-bfd6-552b89a74d6e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n   \"action\": \"START\",\n   \"broker\": {\n       \"type\": \"EXTERNAL\"\n   },\n   \"queue\": {\n       \"consumeRequestsFromConnectionId\": 1,\n       \"replayResponsesToConnectionId\": 1\n   }\n}"},"url":"http://localhost:8080/ibmMq/replay","urlObject":{"path":["ibmMq","replay"],"host":["http://localhost:8080"],"query":[],"variable":[]}},"response":[],"_postman_id":"fe85e17e-ab47-4e14-bfd6-552b89a74d6e"},{"name":"Stop replay","id":"d6096b3e-a8d5-415c-aedc-cc91274f09ae","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n   \"action\": \"STOP\"\n}"},"url":"http://localhost:8080/ibmMq/replay","urlObject":{"path":["ibmMq","replay"],"host":["http://localhost:8080"],"query":[],"variable":[]}},"response":[],"_postman_id":"d6096b3e-a8d5-415c-aedc-cc91274f09ae"},{"name":"Get all mappings","id":"f628b0b6-ba6a-42d7-b30a-c96230ee294c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:8080/ibmMq/mappings","urlObject":{"path":["ibmMq","mappings"],"host":["http://localhost:8080"],"query":[],"variable":[]}},"response":[],"_postman_id":"f628b0b6-ba6a-42d7-b30a-c96230ee294c"},{"name":"Delete mapping","id":"de10f115-eb43-4eb7-b759-7266138a4823","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Origin","value":"http://localhost:8080"},{"key":"Accept-Encoding","value":"gzip, deflate, br"},{"key":"Accept-Language","value":"en-GB,en-US;q=0.9,en;q=0.8"},{"key":"User-Agent","value":"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Ubuntu Chromium/71.0.3578.98 Chrome/71.0.3578.98 Safari/537.36"},{"key":"Content-Type","value":"application/x-www-form-urlencoded; charset=UTF-8"},{"key":"Accept","value":"*/*"},{"key":"Referer","value":"http://localhost:8080/jms/stub.html"},{"key":"Connection","value":"keep-alive"}],"body":{"mode":"raw","raw":""},"url":"http://localhost:8080/ibmMq/management/delete?mapping-id=0a7362db-3e18-481d-9205-ebbc29d8a8b6","urlObject":{"path":["ibmMq","management","delete"],"host":["http://localhost:8080"],"query":[{"key":"mapping-id","value":"0a7362db-3e18-481d-9205-ebbc29d8a8b6"}],"variable":[]}},"response":[],"_postman_id":"de10f115-eb43-4eb7-b759-7266138a4823"},{"name":"Add mapping","id":"dddf67e2-2f93-4271-b4c4-5f1992550c49","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"mapping-id","type":"text","value":""},{"key":"destination-type","type":"text","value":"QUEUE"},{"key":"request-destination-name","type":"text","value":"PROXY.REQUEST.QUEUE"},{"key":"request-body-matcher","type":"text","value":"anything"},{"key":"request-body","type":"text","value":""},{"key":"response-destination-name","type":"text","value":"REAL.REQUEST.QUEUE"},{"key":"response-transformer-class-name","type":"text","value":"com.trafficparrot.sdk.example.nativeibmmq.TransformAndProxyRequestMessage"},{"key":"response-message-mq-format","type":"text","value":"MQFMT_STRING"},{"key":"response-body","type":"text","value":"Will be overridden by the transformer."},{"key":"response-delay","value":"0","type":"text"},{"key":"request-priority","value":"1","type":"text"}]},"url":"http://localhost:8080/ibmMq/management/prime","urlObject":{"path":["ibmMq","management","prime"],"host":["http://localhost:8080"],"query":[],"variable":[]}},"response":[],"_postman_id":"dddf67e2-2f93-4271-b4c4-5f1992550c49"}],"id":"e69c01ce-dde8-4a2e-8e4a-d2c0bf57c915","_postman_id":"e69c01ce-dde8-4a2e-8e4a-d2c0bf57c915","description":""},{"name":"gRPC APIs","item":[{"name":"Count requests in journal","id":"a604792f-4dbc-475c-82b6-8f0549680b8a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Accept","type":"text","value":"application/vnd.trafficparrot.grpc.requests.count.v1+json"},{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/vnd.trafficparrot.grpc.requests.count.v1+json"}],"body":{"mode":"raw","raw":"{\n\t\"method\": \"helloworld.Greeter/SayHello\",\n\t\"metadata\": {\n\t\t\"service\": {\n\t\t\t\"equalTo\" : \"ServiceA\"\n\t\t}\n\t},\n\t\"payloadJson\": {\n\t\t\"equalToJson\": \"{\\\"inputName\\\": \\\"example123\\\"}\"\n\t}\n}"},"url":"http://localhost:8080/api/grpc/requests/count","urlObject":{"path":["api","grpc","requests","count"],"host":["http://localhost:8080"],"query":[],"variable":[]}},"response":[],"_postman_id":"a604792f-4dbc-475c-82b6-8f0549680b8a"},{"name":"Delete requests in journal","id":"6687a2d4-eccb-48c8-b6ed-455d0a0f7f1a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"Accept","type":"text","value":"application/vnd.trafficparrot.grpc.requests.count.v1+json"},{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/vnd.trafficparrot.grpc.requests.count.v1+json"}],"url":"http://localhost:8080/api/grpc/requests","urlObject":{"path":["api","grpc","requests"],"host":["http://localhost:8080"],"query":[],"variable":[]}},"response":[],"_postman_id":"6687a2d4-eccb-48c8-b6ed-455d0a0f7f1a"},{"name":"Get all mappings","id":"918a213f-fd95-483f-96c0-51bacbd49e3b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:8083/grpc/management/mappings","urlObject":{"path":["grpc","management","mappings"],"host":["http://localhost:8083"],"query":[],"variable":[]}},"response":[],"_postman_id":"918a213f-fd95-483f-96c0-51bacbd49e3b"},{"name":"Add mapping","id":"55dd3625-5ba8-43e7-b268-0f095853de6f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"mapping-id","value":"","type":"text"},{"key":"response-body-file-name","value":"","type":"text"},{"key":"request-url-matcher","value":"urlPathEqualTo","type":"text"},{"key":"request-method","value":"ANY","type":"text"},{"key":"request-headers","value":"Protocol:GRPC","type":"text"},{"key":"response-headers","value":"","type":"text"},{"key":"request-url","value":"example.Service/Method","type":"text"},{"key":"request-body-matcher","value":"any","type":"text"},{"key":"request-body","value":"","type":"text"},{"key":"response-body","value":"{\n  \"id\": 121,\n  \"name\": \"foo\",\n  \"description\": \"bar\"\n}","type":"text"},{"key":"response-status-code","value":"200","type":"text"},{"key":"mapping-file-name-options","value":"GENERATE_NAME_FROM_TEMPLATE","description":"<p>GENERATE_NAME_FROM_TEMPLATE or USE_PROVIDED_NAME</p>\n","type":"text"}]},"url":"http://localhost:8080/prime","urlObject":{"path":["prime"],"host":["http://localhost:8080"],"query":[],"variable":[]}},"response":[],"_postman_id":"55dd3625-5ba8-43e7-b268-0f095853de6f"},{"name":"Delete mapping","id":"db903c83-f72a-443d-8abd-2f382001b4dd","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"body":{"mode":"raw","raw":""},"url":"http://localhost:8080/api/http/__admin/mappings/08c40913-e71a-487b-8864-ab6e5d031b6d","urlObject":{"path":["api","http","__admin","mappings","08c40913-e71a-487b-8864-ab6e5d031b6d"],"host":["http://localhost:8080"],"query":[],"variable":[]}},"response":[],"_postman_id":"db903c83-f72a-443d-8abd-2f382001b4dd"},{"name":"Delete bulk mappings","id":"aad2c264-332a-4cac-ae0a-fd5b6c375d7b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"body":{"mode":"raw","raw":""},"url":"http://localhost:8080/api/grpc/mappings/bulk/UUID1,UUID2,...,UUIDN","urlObject":{"path":["api","grpc","mappings","bulk","UUID1,UUID2,...,UUIDN"],"host":["http://localhost:8080"],"query":[],"variable":[]}},"response":[],"_postman_id":"aad2c264-332a-4cac-ae0a-fd5b6c375d7b"}],"id":"cf685874-3d75-4541-b4fb-b81a2c49ded0","event":[{"listen":"prerequest","script":{"id":"bcf820d2-ef3d-4aa9-b88c-0ae4c20f31c0","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"376a141f-84b7-428b-953d-a93697aafa56","type":"text/javascript","exec":[""]}}],"_postman_id":"cf685874-3d75-4541-b4fb-b81a2c49ded0","description":""},{"name":"Health APIs","item":[{"name":"Get overall health","id":"6cf7d58c-d79f-4ebf-b792-07d43009d35e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:8080/api/health","urlObject":{"path":["api","health"],"host":["http://localhost:8080"],"query":[],"variable":[]}},"response":[],"_postman_id":"6cf7d58c-d79f-4ebf-b792-07d43009d35e"},{"name":"Get HTTP health","id":"77ac554f-2ab4-4dc5-b11a-71f29b5e0dd4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:8080/api/http/health","urlObject":{"path":["api","http","health"],"host":["http://localhost:8080"],"query":[],"variable":[]}},"response":[],"_postman_id":"77ac554f-2ab4-4dc5-b11a-71f29b5e0dd4"},{"name":"Get HTTP health (VS port)","id":"9cad828e-6575-4cfd-bc4b-df7ba5598c52","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:8081/__admin/health","urlObject":{"path":["__admin","health"],"host":["http://localhost:8081"],"query":[],"variable":[]}},"response":[],"_postman_id":"9cad828e-6575-4cfd-bc4b-df7ba5598c52"}],"id":"7a10074d-9101-4520-8d9e-09829b4d4089","_postman_id":"7a10074d-9101-4520-8d9e-09829b4d4089","description":""}],"event":[{"listen":"prerequest","script":{"id":"e404ff28-de99-4858-bb58-0c47f3ea7314","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"4b393625-e69b-4ab5-80f4-b4b36795f7b2","type":"text/javascript","exec":[""]}}],"variable":[{"id":"df151bb5-4664-488d-b861-29bbcbf32272","key":"trafficparrot.ui.url","value":"http://localhost:8080","type":"string"},{"id":"65ece55b-1b21-4d01-9298-299a5ff81f30","key":"trafficparrot.http.mock.url","value":"http://localhost:8081","type":"string"},{"id":"505bb5a0-fef4-4d01-be52-9a1758795a17","key":"trafficparrot.management.url","value":"http://localhost:8083","type":"string"},{"id":"fa8ce14d-5178-478b-8cd4-3eb51a8fd90a","key":"trafficparrot.jms.management.url","value":"http://localhost:9093","type":"string"}]}