{"info":{"_postman_id":"c85b22b2-baf1-416b-a578-bae7faf9bf69","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":"c85b22b2-baf1-416b-a578-bae7faf9bf69","publishedId":"2sBYB1M8Eg","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"FF6C37"},"publishDate":"2026-09-16T11:11:21.000Z"},"item":[{"name":"Scenario APIs","item":[{"name":"Get all scenarios","id":"a8fd80d2-d984-4ed6-946a-70955a23d17b","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":{"protocol":"http","port":"8080","path":["api","scenarios"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"a8fd80d2-d984-4ed6-946a-70955a23d17b"},{"name":"Create or update scenario","id":"bc1799f0-9a67-40b0-8cd0-e60a525dd597","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"Accept","value":"application/vnd.trafficparrot.scenarios.v1+json","type":"text"},{"key":"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":{"protocol":"http","port":"8080","path":["api","scenarios",":name"],"host":["localhost"],"query":[],"variable":[{"id":"1549fd9b-321b-4151-a703-a321325d28c0","type":"any","key":"name"}]}},"response":[],"_postman_id":"bc1799f0-9a67-40b0-8cd0-e60a525dd597"},{"name":"Get composite scenario status","id":"9c5b15fa-de48-4ac5-87f7-3b8bd9696345","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Accept","value":"application/json","type":"text"}],"url":"http://localhost:8080/api/scenarios/http/composite","urlObject":{"protocol":"http","port":"8080","path":["api","scenarios","http","composite"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"9c5b15fa-de48-4ac5-87f7-3b8bd9696345"},{"name":"Add scenario to composite","id":"ef083764-043a-4b89-9586-01e5e557e765","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Accept","value":"application/json","type":"text"}],"url":"http://localhost:8080/api/scenarios/http/composite/add?scenario=example","urlObject":{"protocol":"http","port":"8080","path":["api","scenarios","http","composite","add"],"host":["localhost"],"query":[{"key":"scenario","value":"example"}],"variable":[]}},"response":[],"_postman_id":"ef083764-043a-4b89-9586-01e5e557e765"},{"name":"Remove scenario from composite","id":"d04ad05a-8b70-4584-b03d-1aa332aada2d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Accept","value":"application/json","type":"text"}],"url":"http://localhost:8080/api/scenarios/http/composite/remove?scenario=example","urlObject":{"protocol":"http","port":"8080","path":["api","scenarios","http","composite","remove"],"host":["localhost"],"query":[{"key":"scenario","value":"example"}],"variable":[]}},"response":[],"_postman_id":"d04ad05a-8b70-4584-b03d-1aa332aada2d"},{"name":"Clear all scenarios from composite","id":"183f5520-8ccd-45ee-8c35-11eec63003a5","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Accept","value":"application/json","type":"text"}],"url":"http://localhost:8080/api/scenarios/http/composite/clear","urlObject":{"protocol":"http","port":"8080","path":["api","scenarios","http","composite","clear"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"183f5520-8ccd-45ee-8c35-11eec63003a5"}],"id":"097568d9-1341-450e-bcf2-d377dfff03ba","_postman_id":"097568d9-1341-450e-bcf2-d377dfff03ba","description":""},{"name":"State APIs","item":[{"name":"Get global state","id":"88b3c507-9eef-40d4-a3e4-410714170d1f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Accept","value":"application/vnd.trafficparrot.state.v1+json","type":"text"}],"url":"http://localhost:8080/api/state/global/:name","urlObject":{"protocol":"http","port":"8080","path":["api","state","global",":name"],"host":["localhost"],"query":[],"variable":[{"id":"46631e10-244b-425c-82db-e15736557c3b","type":"any","key":"name"}]}},"response":[],"_postman_id":"88b3c507-9eef-40d4-a3e4-410714170d1f"},{"name":"Create or update global state","id":"4acab233-d7dc-40a9-b8b2-081f7c0fb8db","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"Accept","value":"application/vnd.trafficparrot.state.v1+json","type":"text"},{"key":"Content-Type","value":"application/vnd.trafficparrot.state.v1+json","type":"text"}],"body":{"mode":"raw","raw":"{\n\t\"value\": 1234\n}"},"url":"http://localhost:8080/api/state/global/:name","urlObject":{"protocol":"http","port":"8080","path":["api","state","global",":name"],"host":["localhost"],"query":[],"variable":[{"id":"a173db77-e419-4410-905c-ef1814e51475","type":"any","key":"name"}]}},"response":[],"_postman_id":"4acab233-d7dc-40a9-b8b2-081f7c0fb8db"},{"name":"Delete all state","id":"596e747b-12db-4a1d-a3fc-9acffe366b3a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"Accept","value":"application/vnd.trafficparrot.state.v1+json","type":"text"}],"url":"http://localhost:8080/api/state","urlObject":{"protocol":"http","port":"8080","path":["api","state"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"596e747b-12db-4a1d-a3fc-9acffe366b3a"},{"name":"List state in namespace","id":"baa84f23-820e-45e9-b303-b04fb363e0cf","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Accept","value":"application/vnd.trafficparrot.state.v1+json","type":"text"}],"url":"http://localhost:8080/api/state/:namespace","urlObject":{"protocol":"http","port":"8080","path":["api","state",":namespace"],"host":["localhost"],"query":[],"variable":[{"id":"6d67e86d-df56-40bb-8fb0-2ba87b081cbc","type":"any","key":"namespace"}]}},"response":[],"_postman_id":"baa84f23-820e-45e9-b303-b04fb363e0cf"},{"name":"Delete all state in namespace","id":"f6bdc383-3364-4975-824a-c606e75b20a6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"Accept","value":"application/vnd.trafficparrot.state.v1+json","type":"text"}],"url":"http://localhost:8080/api/state/:namespace","urlObject":{"protocol":"http","port":"8080","path":["api","state",":namespace"],"host":["localhost"],"query":[],"variable":[{"id":"b821d31b-3fd2-47ed-97dc-fd93990ad161","type":"any","key":"namespace"}]}},"response":[],"_postman_id":"f6bdc383-3364-4975-824a-c606e75b20a6"},{"name":"Get namespaced state","id":"5677f852-fca7-4344-9003-4912d5aa8695","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Accept","value":"application/vnd.trafficparrot.state.v1+json","type":"text"}],"url":"http://localhost:8080/api/state/:namespace/:name","urlObject":{"protocol":"http","port":"8080","path":["api","state",":namespace",":name"],"host":["localhost"],"query":[],"variable":[{"id":"4e4ab508-d132-499b-a16c-08f67be45f5d","type":"any","key":"namespace"},{"id":"41e3a451-7063-40e6-ac40-7f1bf18e3e7b","type":"any","key":"name"}]}},"response":[],"_postman_id":"5677f852-fca7-4344-9003-4912d5aa8695"},{"name":"Create or update namespaced state","id":"5d8cfb84-3f1a-4e79-9c94-9f2a390c7bb0","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"Accept","value":"application/vnd.trafficparrot.state.v1+json","type":"text"},{"key":"Content-Type","value":"application/vnd.trafficparrot.state.v1+json","type":"text"}],"body":{"mode":"raw","raw":"{\n\t\"value\": 1234\n}"},"url":"http://localhost:8080/api/state/:namespace/:name","urlObject":{"protocol":"http","port":"8080","path":["api","state",":namespace",":name"],"host":["localhost"],"query":[],"variable":[{"id":"dd8a1595-2a8e-4411-a041-b59a15e9d462","type":"any","key":"namespace"},{"id":"23946cc2-1429-4739-bd78-5178c79006e4","type":"any","key":"name"}]}},"response":[],"_postman_id":"5d8cfb84-3f1a-4e79-9c94-9f2a390c7bb0"}],"id":"f1a0389a-e299-476f-a18b-2958bee75763","_postman_id":"f1a0389a-e299-476f-a18b-2958bee75763","description":""},{"name":"HTTP APIs","item":[{"name":"HTTP APIs","item":[{"name":"Count requests in journal","id":"5ffe3f53-860a-472b-b0f1-578cc77a2260","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":{"protocol":"http","port":"8080","path":["api","http","requests","count"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"5ffe3f53-860a-472b-b0f1-578cc77a2260"},{"name":"Delete requests in journal","id":"992c2fb4-5a86-45d0-9c58-5c250e5a6c0e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"http://localhost:8080/api/http/requests","urlObject":{"protocol":"http","port":"8080","path":["api","http","requests"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"992c2fb4-5a86-45d0-9c58-5c250e5a6c0e"},{"name":"Get all mappings","id":"c6690d32-2f78-479e-b4ba-d24a64debbd5","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:8080/api/http/__admin/","urlObject":{"protocol":"http","port":"8080","path":["api","http","__admin",""],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"c6690d32-2f78-479e-b4ba-d24a64debbd5"},{"name":"Export mappings as ZIP","id":"7d7aa0a8-23aa-4647-a446-e48c478bff90","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:8080/http/management/exportMappings","urlObject":{"protocol":"http","port":"8080","path":["http","management","exportMappings"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"7d7aa0a8-23aa-4647-a446-e48c478bff90"},{"name":"Import mappings from ZIP","id":"1eb614f9-48b9-4d24-b079-62da9a7c3413","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":{"protocol":"http","port":"8080","path":["http","management","importMappings"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"1eb614f9-48b9-4d24-b079-62da9a7c3413"},{"name":"Import OpenAPI or RAML","id":"e716aaf0-bce4-4f96-aadf-ab4ca703ffec","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":{"protocol":"http","port":"8080","path":["http","management","importMappings"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"e716aaf0-bce4-4f96-aadf-ab4ca703ffec"},{"name":"Add mapping","id":"8f399c39-b19f-49e2-b7f6-681ebd4995c7","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":{"protocol":"http","port":"8080","path":["api","http","__admin","mappings"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"8f399c39-b19f-49e2-b7f6-681ebd4995c7"},{"name":"Reset mappings","id":"956d454c-aa03-4010-8d93-bd52a13c1ac4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":""},"url":"http://localhost:8080/api/http/__admin/mappings/reset","urlObject":{"protocol":"http","port":"8080","path":["api","http","__admin","mappings","reset"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"956d454c-aa03-4010-8d93-bd52a13c1ac4"},{"name":"Delete mappings","id":"8287fd8e-c36c-4a4d-9a44-d217f8d02a3e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"body":{"mode":"raw","raw":""},"url":"http://localhost:8080/api/http/__admin/mappings","urlObject":{"protocol":"http","port":"8080","path":["api","http","__admin","mappings"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"8287fd8e-c36c-4a4d-9a44-d217f8d02a3e"},{"name":"Get mapping","id":"e56b1bcd-2f5e-494b-ada9-db897dc0b085","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:8080/api/http/__admin/mappings/9fb714df-3c5f-49ca-9049-ee565ad934e1","urlObject":{"protocol":"http","port":"8080","path":["api","http","__admin","mappings","9fb714df-3c5f-49ca-9049-ee565ad934e1"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"e56b1bcd-2f5e-494b-ada9-db897dc0b085"},{"name":"Update mapping","id":"4449412a-0a21-45ed-9e76-fef1129c4b68","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":{"protocol":"http","port":"8080","path":["api","http","__admin","mappings","9fb714df-3c5f-49ca-9049-ee565ad934e1"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"4449412a-0a21-45ed-9e76-fef1129c4b68"},{"name":"Delete mapping","id":"15bf78a6-6f0a-40e1-9561-27602bb0a86e","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":{"protocol":"http","port":"8080","path":["api","http","__admin","mappings","64f3f741-30f3-4797-a1e4-2f44c91f941b"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"15bf78a6-6f0a-40e1-9561-27602bb0a86e"},{"name":"Delete bulk mappings","id":"a90c2d33-e94b-4a33-9675-81d795592f57","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"body":{"mode":"raw","raw":""},"url":"http://localhost:8080/api/http/mappings/bulk/UUID1,UUID2,...,UUIDN","urlObject":{"protocol":"http","port":"8080","path":["api","http","mappings","bulk","UUID1,UUID2,...,UUIDN"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"a90c2d33-e94b-4a33-9675-81d795592f57"},{"name":"Create body file","id":"1b76b9a9-3b93-4acc-95f6-e3821cb643db","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"hello 2"},"url":"http://localhost:8080/api/http/__admin/files/example.txt","urlObject":{"protocol":"http","port":"8080","path":["api","http","__admin","files","example.txt"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"1b76b9a9-3b93-4acc-95f6-e3821cb643db"},{"name":"Get all body file paths","id":"9d4333b9-41ff-4671-a2fa-5165c200f10c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:8080/api/http/__admin/files","urlObject":{"protocol":"http","port":"8080","path":["api","http","__admin","files"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"9d4333b9-41ff-4671-a2fa-5165c200f10c"},{"name":"Delete body file","id":"c3ade672-4767-43ea-b6ed-00c9d30590dd","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"body":{"mode":"raw","raw":"hello 2"},"url":"http://localhost:8080/api/http/__admin/files/example.txt","urlObject":{"protocol":"http","port":"8080","path":["api","http","__admin","files","example.txt"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"c3ade672-4767-43ea-b6ed-00c9d30590dd"},{"name":"Get body file","id":"f3486ffe-96f5-45c4-aeb0-573f288276bc","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:8080/api/http/getBodyFile?bodyFileName=example.txt","urlObject":{"protocol":"http","port":"8080","path":["api","http","getBodyFile"],"host":["localhost"],"query":[{"key":"bodyFileName","value":"example.txt"}],"variable":[]}},"response":[],"_postman_id":"f3486ffe-96f5-45c4-aeb0-573f288276bc"},{"name":"WireMock compatible APIs without the __admin prefix","id":"fe867bbc-9da0-4967-9c05-5fadd97a5848","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:8080/api/http/","urlObject":{"protocol":"http","port":"8080","path":["api","http",""],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"fe867bbc-9da0-4967-9c05-5fadd97a5848"},{"name":"Get body file from the scenario __files directory","id":"d6d4c481-9dbb-4504-9bfa-e72fe2fb9060","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:8080/getBodyFile?bodyFileName=example.txt","urlObject":{"protocol":"http","port":"8080","path":["getBodyFile"],"host":["localhost"],"query":[{"key":"bodyFileName","value":"example.txt"}],"variable":[]}},"response":[],"_postman_id":"d6d4c481-9dbb-4504-9bfa-e72fe2fb9060"},{"name":"Start recording","id":"3f176857-36de-4aa9-adcb-42dbb1ffda92","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"url":"http://localhost:8080/http/management/startRecording?proxy-url=http://api.example.com:8090","urlObject":{"protocol":"http","port":"8080","path":["http","management","startRecording"],"host":["localhost"],"query":[{"key":"proxy-url","value":"http://api.example.com:8090"}],"variable":[]}},"response":[],"_postman_id":"3f176857-36de-4aa9-adcb-42dbb1ffda92"},{"name":"Get current recording status","id":"e0b31c0f-fdf4-45f6-8584-b87f5fed906f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Accept","value":"application/json","type":"text"}],"url":"http://localhost:8080/http/management/currentRecordingStatus","urlObject":{"protocol":"http","port":"8080","path":["http","management","currentRecordingStatus"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"e0b31c0f-fdf4-45f6-8584-b87f5fed906f"},{"name":"Stop recording","id":"d550edf2-0d40-4fcb-a40b-cb1919435e3a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"url":"http://localhost:8080/http/management/stopRecording","urlObject":{"protocol":"http","port":"8080","path":["http","management","stopRecording"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"d550edf2-0d40-4fcb-a40b-cb1919435e3a"}],"id":"7cb4b64a-edb5-4da7-9587-2d9d41913954","event":[{"listen":"prerequest","script":{"id":"6bf3dee1-7877-47fc-bafe-067eeee21adf","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"3c98f1f3-bbef-445f-b379-0d8b781e56c9","type":"text/javascript","exec":[""]}}],"_postman_id":"7cb4b64a-edb5-4da7-9587-2d9d41913954","description":""},{"name":"HTTP APIs usage examples","item":[{"name":"Stock price example","item":[{"name":"1. Create stock mapping","id":"01ad2a28-f744-441b-b946-387c6e4ba2d6","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":{"protocol":"http","port":"8080","path":["api","http","__admin","mappings"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"01ad2a28-f744-441b-b946-387c6e4ba2d6"},{"name":"2. Create stock request body file","id":"8a74c470-4998-4eb0-adc7-1701bd8ca944","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":{"protocol":"http","port":"8080","path":["api","http","__admin","files","stockRequest.xml"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"8a74c470-4998-4eb0-adc7-1701bd8ca944"},{"name":"3. Test stock virtual service","id":"8758d28f-04de-47e8-940a-71b3a715d9c9","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":{"protocol":"http","port":"8081","path":["stockRequest"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"8758d28f-04de-47e8-940a-71b3a715d9c9"}],"id":"c879f565-c255-481a-9ffc-743bf901470f","event":[{"listen":"prerequest","script":{"id":"d34996b9-4711-4dfb-a213-bc202152751c","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"2d3984c1-7eae-4ae3-acb4-768e32a42fbb","type":"text/javascript","exec":[""]}}],"_postman_id":"c879f565-c255-481a-9ffc-743bf901470f","description":""},{"name":"xPathList helper example","item":[{"name":"1. Create xPathList mapping","id":"16bebd73-5930-464b-965c-0c2782bc9877","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":{"protocol":"http","port":"8080","path":["api","http","__admin","mappings"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"16bebd73-5930-464b-965c-0c2782bc9877"},{"name":"2. Create xPathList mapping body file","id":"7ff4fd3e-fb1d-4a2c-ad02-bccea70524c8","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":{"protocol":"http","port":"8080","path":["api","http","__admin","files","requestXPathList.xml"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"7ff4fd3e-fb1d-4a2c-ad02-bccea70524c8"},{"name":"3. Test xPathList mock","id":"139fa534-b836-42d4-acc7-1eb773167c7b","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":{"protocol":"http","port":"8081","path":["requestXPathList"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"139fa534-b836-42d4-acc7-1eb773167c7b"}],"id":"67a98c6a-e52b-4cf6-8ae5-4b7e22f2e3f4","event":[{"listen":"prerequest","script":{"id":"491699ba-0715-40bc-8478-90823e65ea54","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"43c84e27-8c7f-472f-b144-1c5ca01ef3e7","type":"text/javascript","exec":[""]}}],"_postman_id":"67a98c6a-e52b-4cf6-8ae5-4b7e22f2e3f4","description":""},{"name":"jsonPathList helper example","item":[{"name":"1. Create jsonPathList mapping","id":"66c6dab1-53b8-40b2-8f61-1fbe7077ac73","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":{"protocol":"http","port":"8080","path":["api","http","__admin","mappings"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"66c6dab1-53b8-40b2-8f61-1fbe7077ac73"},{"name":"2. Create jsonPathList body file mapping","id":"653c2337-2caa-4e50-9669-b5abbaa35525","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":{"protocol":"http","port":"8080","path":["api","http","__admin","files","requestJsonPathList.json"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"653c2337-2caa-4e50-9669-b5abbaa35525"},{"name":"3. Test jsonPathList mock","id":"bec07278-a7d9-416a-a2b7-a47ddf37fcaf","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":{"protocol":"http","port":"8081","path":["requestJsonPathList"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"bec07278-a7d9-416a-a2b7-a47ddf37fcaf"}],"id":"0ed36db7-c5cf-413a-9520-5c46db579f19","event":[{"listen":"prerequest","script":{"id":"96ecc06c-007e-4d4d-84a8-69f65486af6d","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"68de60f2-8325-4006-81b3-9daaebc44c8f","type":"text/javascript","exec":[""]}}],"_postman_id":"0ed36db7-c5cf-413a-9520-5c46db579f19","description":""},{"name":"Faults example","item":[{"name":"1. Create dribbling bytes mapping","id":"253712fe-3a9d-4552-9268-b9856b855866","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":{"protocol":"http","port":"8080","path":["api","http","__admin","mappings"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"253712fe-3a9d-4552-9268-b9856b855866"},{"name":"2. Test dribbling bytes mock","id":"4e85f2ff-4113-4e2f-b716-32fe10822bd0","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":{"protocol":"http","port":"8081","path":["dripBytesEvery1s"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"4e85f2ff-4113-4e2f-b716-32fe10822bd0"}],"id":"e55929df-46bb-4b3f-b4f9-741e733198c3","event":[{"listen":"prerequest","script":{"id":"888f2e64-e4cc-4c71-9e2b-9dc5f5983064","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"892609f1-2c4c-4386-92a0-80440471cfce","type":"text/javascript","exec":[""]}}],"_postman_id":"e55929df-46bb-4b3f-b4f9-741e733198c3","description":""}],"id":"b882cc68-2767-4aa3-8eff-becba1528a9d","event":[{"listen":"prerequest","script":{"id":"4bcc2bd4-9d3f-4338-b42c-1c9484d3fe95","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"2128d8cb-f25f-4f17-9c87-3977c9b16353","type":"text/javascript","exec":[""]}}],"_postman_id":"b882cc68-2767-4aa3-8eff-becba1528a9d","description":""}],"id":"f68dfbed-350c-42a2-bcfe-f8233bbed586","event":[{"listen":"prerequest","script":{"id":"90405d2c-80ba-4d33-bf08-adb5aee16fec","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"99fd36d1-f503-4aa9-9495-b29e067efa6b","type":"text/javascript","exec":[""]}}],"_postman_id":"f68dfbed-350c-42a2-bcfe-f8233bbed586","description":""},{"name":"JMS APIs","item":[{"name":"Start replay","id":"99a8a163-e826-4371-854c-e4515d395af3","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":{"protocol":"http","port":"8080","path":["jms","replay"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"99a8a163-e826-4371-854c-e4515d395af3"},{"name":"Count requests in journal","id":"3ef2b6bc-1e63-46d1-8067-e765c1044880","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Accept","value":"application/vnd.trafficparrot.jms.requests.count.v1+json","type":"text"},{"key":"Content-Type","value":"application/vnd.trafficparrot.jms.requests.count.v1+json","type":"text"}],"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":{"protocol":"http","port":"8080","path":["api","jms","requests","count"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"3ef2b6bc-1e63-46d1-8067-e765c1044880"},{"name":"Delete requests in journal","id":"54c944ec-58e5-4033-9117-3bc75f2487d8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"Accept","value":"application/vnd.trafficparrot.jms.requests.count.v1+json","type":"text"},{"key":"Content-Type","value":"application/vnd.trafficparrot.jms.requests.count.v1+json","type":"text"}],"url":"http://localhost:8080/api/jms/requests","urlObject":{"protocol":"http","port":"8080","path":["api","jms","requests"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"54c944ec-58e5-4033-9117-3bc75f2487d8"},{"name":"Get all mappings","id":"9f1a7011-dbd5-4dca-aac4-13d09aef8c25","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:8080/jms/mappings","urlObject":{"protocol":"http","port":"8080","path":["jms","mappings"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"9f1a7011-dbd5-4dca-aac4-13d09aef8c25"},{"name":"Delete mapping","id":"b91976a0-8cf4-41c7-83d5-e238b96b1f4c","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":{"protocol":"http","port":"8080","path":["jms","management","delete"],"host":["localhost"],"query":[{"key":"mapping-id","value":"6997ebbd-c7ea-4c89-bd2e-d3bc13d98d87"}],"variable":[]}},"response":[],"_postman_id":"b91976a0-8cf4-41c7-83d5-e238b96b1f4c"},{"name":"Add mapping","id":"84907711-c94f-4be9-b6c1-489c7a1f573a","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":{"protocol":"http","port":"8080","path":["jms","management","prime"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"84907711-c94f-4be9-b6c1-489c7a1f573a"},{"name":"Get record status","id":"ef90f9d1-954c-4b48-bc68-321ce5e4add8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Accept","value":"application/json","type":"text"}],"url":"http://localhost:8080/jms/record","urlObject":{"protocol":"http","port":"8080","path":["jms","record"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"ef90f9d1-954c-4b48-bc68-321ce5e4add8"},{"name":"Start recording","id":"5be9c15d-2311-49c9-86a2-2d169bc7fcdc","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"action\": \"START\",\n    \"broker\": {\n        \"type\": \"INTERNAL\",\n        \"internalProvider\": \"ACTIVE_MQ\",\n        \"internalPort\": 1234\n    },\n    \"messageMatcher\": \"time\",\n    \"queue\": {\n        \"recordRequestsFromConnectionId\": \"USE-TRAFFIC-PARROT-INTERNAL-BROKER\",\n        \"recordRequestsFromQueue\": \"VIRTUAL.REQ.QL\",\n        \"forwardRequestsToConnectionId\": \"real-connection-id\",\n        \"forwardRequestsToQueue\": \"REAL.REQ.QL\",\n        \"recordResponsesFromConnectionId\": \"real-connection-id\",\n        \"recordResponsesFromQueue\": \"REAL.RSP.QL\",\n        \"forwardResponsesToConnectionId\": \"USE-TRAFFIC-PARROT-INTERNAL-BROKER\",\n        \"forwardResponsesToQueue\": \"VIRTUAL.RSP.QL\"\n    }\n}"},"url":"http://localhost:8080/jms/record","urlObject":{"protocol":"http","port":"8080","path":["jms","record"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"5be9c15d-2311-49c9-86a2-2d169bc7fcdc"},{"name":"Get replay status","id":"0b394932-e1a2-4a3c-9404-31e6f38b00ee","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Accept","value":"application/json","type":"text"}],"url":"http://localhost:8080/jms/replay","urlObject":{"protocol":"http","port":"8080","path":["jms","replay"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"0b394932-e1a2-4a3c-9404-31e6f38b00ee"},{"name":"Import mappings from ZIP","id":"56890bfb-25c7-47d2-b7a6-34442ec56e63","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"files","type":"file","src":"jms-mappings.zip"}]},"url":"http://localhost:8080/jms/management/importMappings","urlObject":{"protocol":"http","port":"8080","path":["jms","management","importMappings"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"56890bfb-25c7-47d2-b7a6-34442ec56e63"}],"id":"1ffd3a5b-0732-4a3c-9e97-87dcb3b53069","event":[{"listen":"prerequest","script":{"id":"44c3f986-0b7b-4d0a-8cfb-8d7bf0713e43","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"6c4a8736-0df6-4c4b-a7d4-b3ee643af91a","type":"text/javascript","exec":[""]}}],"_postman_id":"1ffd3a5b-0732-4a3c-9e97-87dcb3b53069","description":""},{"name":"Native IBM® MQ APIs","item":[{"name":"Start replay","id":"bb4b4de2-0412-4e3d-b788-11901659a2af","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":{"protocol":"http","port":"8080","path":["ibmMq","replay"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"bb4b4de2-0412-4e3d-b788-11901659a2af"},{"name":"Stop replay","id":"2df4bbc1-3bf5-4064-ab20-db913b61e560","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":{"protocol":"http","port":"8080","path":["ibmMq","replay"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"2df4bbc1-3bf5-4064-ab20-db913b61e560"},{"name":"Get all mappings","id":"f30f3949-66fe-4b4e-b45d-2b98d51d24c9","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:8080/ibmMq/mappings","urlObject":{"protocol":"http","port":"8080","path":["ibmMq","mappings"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"f30f3949-66fe-4b4e-b45d-2b98d51d24c9"},{"name":"Delete mapping","id":"15720c5a-10dd-47d7-8f63-69c0dd7ae1bc","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":{"protocol":"http","port":"8080","path":["ibmMq","management","delete"],"host":["localhost"],"query":[{"key":"mapping-id","value":"0a7362db-3e18-481d-9205-ebbc29d8a8b6"}],"variable":[]}},"response":[],"_postman_id":"15720c5a-10dd-47d7-8f63-69c0dd7ae1bc"},{"name":"Add mapping","id":"539789db-563b-4197-bdc7-6953cac075ee","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":{"protocol":"http","port":"8080","path":["ibmMq","management","prime"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"539789db-563b-4197-bdc7-6953cac075ee"},{"name":"Get record status","id":"9e224a4a-c13c-48a5-bfc1-12e7abfb9305","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Accept","value":"application/json","type":"text"}],"url":"http://localhost:8080/ibmMq/record","urlObject":{"protocol":"http","port":"8080","path":["ibmMq","record"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"9e224a4a-c13c-48a5-bfc1-12e7abfb9305"},{"name":"Start recording","id":"0440b513-9b9b-45db-a421-385d6f1df58c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"action\": \"START\",\n    \"messageMatcher\": \"time\",\n    \"queue\": {\n        \"recordRequestsFromConnectionId\": \"docker-connection-id\",\n        \"recordRequestsFromQueue\": \"VIRTUAL.REQ.QL\",\n        \"forwardRequestsToConnectionId\": \"real-connection-id\",\n        \"forwardRequestsToQueue\": \"REAL.REQ.QL\",\n        \"recordResponsesFromConnectionId\": \"real-connection-id\",\n        \"recordResponsesFromQueue\": \"REAL.RSP.QL\",\n        \"forwardResponsesToConnectionId\": \"docker-connection-id\",\n        \"forwardResponsesToQueue\": \"VIRTUAL.RSP.QL\"\n    }\n}"},"url":"http://localhost:8080/ibmMq/record","urlObject":{"protocol":"http","port":"8080","path":["ibmMq","record"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"0440b513-9b9b-45db-a421-385d6f1df58c"},{"name":"Get replay status","id":"7a8d95a1-c27f-48ba-a362-76cb91380899","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Accept","value":"application/json","type":"text"}],"url":"http://localhost:8080/ibmMq/replay","urlObject":{"protocol":"http","port":"8080","path":["ibmMq","replay"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"7a8d95a1-c27f-48ba-a362-76cb91380899"},{"name":"Add mapping (JSON)","id":"8a522aaf-de90-49e0-9d5a-052ab6ffc56f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"request\": {\n        \"destination\": {\n            \"name\": \"REQUEST.QUEUE\",\n            \"type\": \"QUEUE\"\n        },\n        \"bodyMatcher\": {\n            \"equalTo\": \"hello\"\n        }\n    },\n    \"responses\": [\n        {\n            \"destination\": {\n                \"name\": \"RESPONSE.QUEUE\",\n                \"type\": \"QUEUE\"\n            },\n            \"text\": \"world\",\n            \"format\": \"MQFMT_STRING\"\n        }\n    ]\n}"},"url":"http://localhost:8080/api/ibmMq/mappings","urlObject":{"protocol":"http","port":"8080","path":["api","ibmMq","mappings"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"8a522aaf-de90-49e0-9d5a-052ab6ffc56f"}],"id":"8a38c240-398b-46a3-a068-e62acf383806","_postman_id":"8a38c240-398b-46a3-a068-e62acf383806","description":""},{"name":"gRPC APIs","item":[{"name":"Count requests in journal","id":"98782306-7868-4c59-9964-c19214977cb9","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Accept","value":"application/vnd.trafficparrot.grpc.requests.count.v1+json","type":"text"},{"key":"Content-Type","value":"application/vnd.trafficparrot.grpc.requests.count.v1+json","type":"text"}],"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":{"protocol":"http","port":"8080","path":["api","grpc","requests","count"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"98782306-7868-4c59-9964-c19214977cb9"},{"name":"Delete requests in journal","id":"01e5624e-4b7f-474f-a1b3-903ec911601b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"Accept","value":"application/vnd.trafficparrot.grpc.requests.count.v1+json","type":"text"},{"key":"Content-Type","value":"application/vnd.trafficparrot.grpc.requests.count.v1+json","type":"text"}],"url":"http://localhost:8080/api/grpc/requests","urlObject":{"protocol":"http","port":"8080","path":["api","grpc","requests"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"01e5624e-4b7f-474f-a1b3-903ec911601b"},{"name":"Get all mappings","id":"1b2d6557-c7ac-4322-bb8d-8c68a66adc99","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:8083/grpc/management/mappings","urlObject":{"protocol":"http","port":"8083","path":["grpc","management","mappings"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"1b2d6557-c7ac-4322-bb8d-8c68a66adc99"},{"name":"Add mapping","id":"4721a6c1-fef6-4668-abbc-2743877517ab","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":{"protocol":"http","port":"8080","path":["prime"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"4721a6c1-fef6-4668-abbc-2743877517ab"},{"name":"Delete mapping","id":"5b69d6ce-10ae-484b-9ef3-5996a4dc2ae6","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":{"protocol":"http","port":"8080","path":["api","http","__admin","mappings","08c40913-e71a-487b-8864-ab6e5d031b6d"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"5b69d6ce-10ae-484b-9ef3-5996a4dc2ae6"},{"name":"Delete bulk mappings","id":"b9381d74-a794-4ac2-81ce-bc8474b0c66b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"body":{"mode":"raw","raw":""},"url":"http://localhost:8080/api/grpc/mappings/bulk/UUID1,UUID2,...,UUIDN","urlObject":{"protocol":"http","port":"8080","path":["api","grpc","mappings","bulk","UUID1,UUID2,...,UUIDN"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"b9381d74-a794-4ac2-81ce-bc8474b0c66b"},{"name":"Add mapping (JSON)","id":"f892540a-ee61-4650-a043-4a2f8a04c4b1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n  \"request\": {\n    \"method\": \"ANY\",\n    \"urlPath\": \"/com.example.Service/Method\",\n    \"headers\": {\n      \"Protocol\": {\n        \"equalTo\": \"GRPC\"\n      }\n    }\n  },\n  \"response\": {\n    \"status\": 200,\n    \"jsonBody\": {\"example\":\"value\"}\n  }\n}"},"url":"http://localhost:8080/api/grpc/mapping","urlObject":{"protocol":"http","port":"8080","path":["api","grpc","mapping"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"f892540a-ee61-4650-a043-4a2f8a04c4b1"}],"id":"ab33e000-8ef9-4d8d-9626-68c3b76caebc","event":[{"listen":"prerequest","script":{"id":"4bb30dcc-1180-4496-8f80-d5fcb848e9fb","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"b472b64c-0548-43a9-a52c-1e38a7b1653a","type":"text/javascript","exec":[""]}}],"_postman_id":"ab33e000-8ef9-4d8d-9626-68c3b76caebc","description":""},{"name":"File Message APIs","item":[{"name":"Get record status","id":"d6fab9f7-b337-4c9d-960d-32dd2cb6b1bf","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Accept","value":"application/json","type":"text"}],"url":"http://localhost:8080/fileMessage/record","urlObject":{"protocol":"http","port":"8080","path":["fileMessage","record"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"d6fab9f7-b337-4c9d-960d-32dd2cb6b1bf"},{"name":"Start recording","id":"72c33661-d0b0-41f3-9ef7-d339ed9976df","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"action\": \"START\",\n    \"directories\": {\n        \"recordRequestsFromRootDirectoryId\": \"virtual-root\",\n        \"recordRequestsFromSubDirectory\": \"request-sub-directory\",\n        \"forwardRequestsToRootDirectoryId\": \"real-root\",\n        \"forwardRequestsToSubDirectory\": \"request-sub-directory\",\n        \"recordResponsesFromRootDirectoryId\": \"real-root\",\n        \"recordResponsesFromSubDirectory\": \"response-sub-directory\",\n        \"forwardResponsesToRootDirectoryId\": \"virtual-root\",\n        \"forwardResponsesToSubDirectory\": \"response-sub-directory\"\n    }\n}"},"url":"http://localhost:8080/fileMessage/record","urlObject":{"protocol":"http","port":"8080","path":["fileMessage","record"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"72c33661-d0b0-41f3-9ef7-d339ed9976df"},{"name":"Get replay status","id":"c02db9e1-9aa0-4ebd-b2aa-ac2cae2186c8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Accept","value":"application/json","type":"text"}],"url":"http://localhost:8080/fileMessage/replay","urlObject":{"protocol":"http","port":"8080","path":["fileMessage","replay"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"c02db9e1-9aa0-4ebd-b2aa-ac2cae2186c8"},{"name":"Start replay","id":"62f03456-d4b7-4946-844b-f8146ca4a4fd","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"action\": \"START\",\n    \"directories\": {\n        \"consumeRequestsFromRootDirectoryId\": \"virtual-root\",\n        \"replayResponsesToRootDirectoryId\": \"virtual-root\"\n    }\n}"},"url":"http://localhost:8080/fileMessage/replay","urlObject":{"protocol":"http","port":"8080","path":["fileMessage","replay"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"62f03456-d4b7-4946-844b-f8146ca4a4fd"},{"name":"Import mappings from ZIP","id":"8618c412-3486-4b51-bcd0-8ab84584aa75","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"files","type":"file","src":"file-message-mappings.zip"}]},"url":"http://localhost:8080/fileMessage/management/importMappings","urlObject":{"protocol":"http","port":"8080","path":["fileMessage","management","importMappings"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"8618c412-3486-4b51-bcd0-8ab84584aa75"}],"id":"6a4389c7-1718-4181-97d0-3827c56bb704","_postman_id":"6a4389c7-1718-4181-97d0-3827c56bb704","description":""},{"name":"Health APIs","item":[{"name":"Get overall health","id":"217caf6f-45e1-4f5d-b46d-c2b928cf06fe","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:8080/api/health","urlObject":{"protocol":"http","port":"8080","path":["api","health"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"217caf6f-45e1-4f5d-b46d-c2b928cf06fe"},{"name":"Get HTTP health","id":"1dc0114d-5f22-41dc-999e-b1e6b8a865f1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:8080/api/http/health","urlObject":{"protocol":"http","port":"8080","path":["api","http","health"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"1dc0114d-5f22-41dc-999e-b1e6b8a865f1"},{"name":"Get HTTP health (VS port)","id":"bfdf4da6-5536-4ded-ab13-9a4db216c13a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:8081/__admin/health","urlObject":{"protocol":"http","port":"8081","path":["__admin","health"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"bfdf4da6-5536-4ded-ab13-9a4db216c13a"}],"id":"49f6e7a2-518e-4e48-8a53-083fd65c60c8","_postman_id":"49f6e7a2-518e-4e48-8a53-083fd65c60c8","description":""}],"event":[{"listen":"prerequest","script":{"id":"9b79bae6-1ae5-4c03-91c5-b89161792c5e","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"ce40a941-02fd-4d19-83e3-4f83134691a5","type":"text/javascript","exec":[""]}}],"variable":[{"key":"trafficparrot.ui.url","value":"http://localhost:8080"},{"key":"trafficparrot.http.mock.url","value":"http://localhost:8081"},{"key":"trafficparrot.management.url","value":"http://localhost:8083"},{"key":"trafficparrot.jms.management.url","value":"http://localhost:9093"}]}