{
	"info": {
		"_postman_id": "f2bb8905-e88f-456b-90de-35bc4f126f95",
		"name": "Traffic Parrot APIs (version 5.x.x)",
		"description": "# Important Information about these APIs\n\nPlease keep in mind these APIs were not designed to be used externally, they are our internal API.\nThat is the reason, they might be sometimes unintuitive or difficult to use.\n\nIf you have any issues with these APIs please email us at support@trafficparrot.com ",
		"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
	},
	"item": [
		{
			"name": "Scenario APIs",
			"item": [
				{
					"name": "Get all scenarios",
					"request": {
						"method": "GET",
						"header": [
							{
								"key": "Accept",
								"value": "application/vnd.trafficparrot.scenarios.v1+json",
								"type": "text"
							}
						],
						"url": {
							"raw": "{{trafficparrot.ui.url}}/api/scenarios",
							"host": [
								"{{trafficparrot.ui.url}}"
							],
							"path": [
								"api",
								"scenarios"
							]
						}
					},
					"response": []
				},
				{
					"name": "Create or update scenario",
					"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": {
							"raw": "{{trafficparrot.ui.url}}/api/scenarios/:name",
							"host": [
								"{{trafficparrot.ui.url}}"
							],
							"path": [
								"api",
								"scenarios",
								":name"
							],
							"variable": [
								{
									"key": "name",
									"value": "example"
								}
							]
						}
					},
					"response": []
				}
			]
		},
		{
			"name": "State APIs",
			"item": [
				{
					"name": "Get global state",
					"request": {
						"method": "GET",
						"header": [
							{
								"key": "Accept",
								"type": "text",
								"value": "application/vnd.trafficparrot.state.v1+json"
							}
						],
						"url": {
							"raw": "{{trafficparrot.ui.url}}/api/state/global/:name",
							"host": [
								"{{trafficparrot.ui.url}}"
							],
							"path": [
								"api",
								"state",
								"global",
								":name"
							],
							"variable": [
								{
									"key": "name",
									"value": "example"
								}
							]
						}
					},
					"response": []
				},
				{
					"name": "Create or update global state",
					"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": {
							"raw": "{{trafficparrot.ui.url}}/api/state/global/:name",
							"host": [
								"{{trafficparrot.ui.url}}"
							],
							"path": [
								"api",
								"state",
								"global",
								":name"
							],
							"variable": [
								{
									"key": "name",
									"value": "example"
								}
							]
						}
					},
					"response": []
				},
				{
					"name": "Delete all state",
					"request": {
						"method": "DELETE",
						"header": [
							{
								"key": "Accept",
								"type": "text",
								"value": "application/vnd.trafficparrot.state.v1+json"
							}
						],
						"url": {
							"raw": "{{trafficparrot.ui.url}}/api/state",
							"host": [
								"{{trafficparrot.ui.url}}"
							],
							"path": [
								"api",
								"state"
							]
						}
					},
					"response": []
				}
			]
		},
		{
			"name": "HTTP APIs",
			"item": [
				{
					"name": "HTTP APIs",
					"item": [
						{
							"name": "Count requests in journal",
							"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": {
									"raw": "{{trafficparrot.ui.url}}/api/http/requests/count",
									"host": [
										"{{trafficparrot.ui.url}}"
									],
									"path": [
										"api",
										"http",
										"requests",
										"count"
									]
								}
							},
							"response": []
						},
						{
							"name": "Delete requests in journal",
							"request": {
								"method": "DELETE",
								"header": [],
								"url": {
									"raw": "{{trafficparrot.ui.url}}/api/http/requests",
									"host": [
										"{{trafficparrot.ui.url}}"
									],
									"path": [
										"api",
										"http",
										"requests"
									]
								}
							},
							"response": []
						},
						{
							"name": "Get all mappings",
							"request": {
								"method": "GET",
								"header": [],
								"url": {
									"raw": "{{trafficparrot.http.mock.url}}/__admin/",
									"host": [
										"{{trafficparrot.http.mock.url}}"
									],
									"path": [
										"__admin",
										""
									]
								}
							},
							"response": []
						},
						{
							"name": "Export mappings as ZIP",
							"request": {
								"method": "GET",
								"header": [],
								"url": {
									"raw": "{{trafficparrot.management.url}}/http/management/exportMappings",
									"host": [
										"{{trafficparrot.management.url}}"
									],
									"path": [
										"http",
										"management",
										"exportMappings"
									]
								}
							},
							"response": []
						},
						{
							"name": "Import mappings from ZIP",
							"request": {
								"method": "POST",
								"header": [],
								"body": {
									"mode": "formdata",
									"formdata": [
										{
											"key": "files",
											"value": "",
											"type": "file"
										}
									]
								},
								"url": {
									"raw": "{{trafficparrot.management.url}}/http/management/importMappings",
									"host": [
										"{{trafficparrot.management.url}}"
									],
									"path": [
										"http",
										"management",
										"importMappings"
									]
								}
							},
							"response": []
						},
						{
							"name": "Import OpenAPI or RAML",
							"request": {
								"method": "POST",
								"header": [],
								"body": {
									"mode": "formdata",
									"formdata": [
										{
											"key": "files",
											"value": "",
											"type": "file"
										}
									]
								},
								"url": {
									"raw": "{{trafficparrot.management.url}}/http/management/importMappings",
									"host": [
										"{{trafficparrot.management.url}}"
									],
									"path": [
										"http",
										"management",
										"importMappings"
									]
								}
							},
							"response": []
						},
						{
							"name": "Add mapping",
							"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": {
									"raw": "{{trafficparrot.http.mock.url}}/__admin/mappings",
									"host": [
										"{{trafficparrot.http.mock.url}}"
									],
									"path": [
										"__admin",
										"mappings"
									]
								}
							},
							"response": []
						},
						{
							"name": "Reset mappings",
							"request": {
								"method": "POST",
								"header": [],
								"body": {
									"mode": "raw",
									"raw": ""
								},
								"url": {
									"raw": "{{trafficparrot.http.mock.url}}/__admin/mappings/reset",
									"host": [
										"{{trafficparrot.http.mock.url}}"
									],
									"path": [
										"__admin",
										"mappings",
										"reset"
									]
								}
							},
							"response": []
						},
						{
							"name": "Delete mappings",
							"request": {
								"method": "DELETE",
								"header": [],
								"body": {
									"mode": "raw",
									"raw": ""
								},
								"url": {
									"raw": "{{trafficparrot.http.mock.url}}/__admin/mappings?mapping_id=",
									"host": [
										"{{trafficparrot.http.mock.url}}"
									],
									"path": [
										"__admin",
										"mappings"
									],
									"query": [
										{
											"key": "mapping_id",
											"value": ""
										}
									]
								}
							},
							"response": []
						},
						{
							"name": "Get mapping",
							"request": {
								"method": "GET",
								"header": [],
								"url": {
									"raw": "{{trafficparrot.http.mock.url}}/__admin/mappings/9fb714df-3c5f-49ca-9049-ee565ad934e1",
									"host": [
										"{{trafficparrot.http.mock.url}}"
									],
									"path": [
										"__admin",
										"mappings",
										"9fb714df-3c5f-49ca-9049-ee565ad934e1"
									]
								}
							},
							"response": []
						},
						{
							"name": "Update mapping",
							"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": {
									"raw": "{{trafficparrot.http.mock.url}}/__admin/mappings/9fb714df-3c5f-49ca-9049-ee565ad934e1",
									"host": [
										"{{trafficparrot.http.mock.url}}"
									],
									"path": [
										"__admin",
										"mappings",
										"9fb714df-3c5f-49ca-9049-ee565ad934e1"
									]
								}
							},
							"response": []
						},
						{
							"name": "Delete mapping",
							"request": {
								"method": "DELETE",
								"header": [],
								"body": {
									"mode": "raw",
									"raw": ""
								},
								"url": {
									"raw": "{{trafficparrot.http.mock.url}}/__admin/mappings/9fb714df-3c5f-49ca-9049-ee565ad934e1",
									"host": [
										"{{trafficparrot.http.mock.url}}"
									],
									"path": [
										"__admin",
										"mappings",
										"9fb714df-3c5f-49ca-9049-ee565ad934e1"
									]
								}
							},
							"response": []
						},
						{
							"name": "Create body file",
							"request": {
								"method": "PUT",
								"header": [],
								"body": {
									"mode": "raw",
									"raw": "hello 2"
								},
								"url": {
									"raw": "{{trafficparrot.http.mock.url}}/__admin/files/example.txt",
									"host": [
										"{{trafficparrot.http.mock.url}}"
									],
									"path": [
										"__admin",
										"files",
										"example.txt"
									]
								}
							},
							"response": []
						},
						{
							"name": "Get all body file paths",
							"request": {
								"method": "GET",
								"header": [],
								"url": {
									"raw": "{{trafficparrot.http.mock.url}}/__admin/files",
									"host": [
										"{{trafficparrot.http.mock.url}}"
									],
									"path": [
										"__admin",
										"files"
									]
								}
							},
							"response": []
						},
						{
							"name": "Delete body file",
							"request": {
								"method": "DELETE",
								"header": [],
								"body": {
									"mode": "raw",
									"raw": "hello 2"
								},
								"url": {
									"raw": "{{trafficparrot.http.mock.url}}/__admin/files/example.txt",
									"host": [
										"{{trafficparrot.http.mock.url}}"
									],
									"path": [
										"__admin",
										"files",
										"example.txt"
									]
								}
							},
							"response": []
						},
						{
							"name": "Get body file",
							"request": {
								"method": "GET",
								"header": [],
								"url": {
									"raw": "{{trafficparrot.ui.url}}/getBodyFile?bodyFileName=example.txt",
									"host": [
										"{{trafficparrot.ui.url}}"
									],
									"path": [
										"getBodyFile"
									],
									"query": [
										{
											"key": "bodyFileName",
											"value": "example.txt"
										}
									]
								}
							},
							"response": []
						}
					],
					"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_isSubFolder": true
				},
				{
					"name": "HTTP APIs usage examples",
					"item": [
						{
							"name": "Stock price example",
							"item": [
								{
									"name": "1. Create stock mapping",
									"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": {
											"raw": "{{trafficparrot.http.mock.url}}/__admin/mappings",
											"host": [
												"{{trafficparrot.http.mock.url}}"
											],
											"path": [
												"__admin",
												"mappings"
											]
										}
									},
									"response": []
								},
								{
									"name": "2. Create stock request body file",
									"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": {
											"raw": "{{trafficparrot.http.mock.url}}/__admin/files/stockRequest.xml",
											"host": [
												"{{trafficparrot.http.mock.url}}"
											],
											"path": [
												"__admin",
												"files",
												"stockRequest.xml"
											]
										}
									},
									"response": []
								},
								{
									"name": "3. Test stock virtual service",
									"request": {
										"method": "POST",
										"header": [],
										"body": {
											"mode": "raw",
											"raw": "<stockRequest>\r\n    <checkId>2</checkId>\r\n    <item>apple</item>\r\n</stockRequest>"
										},
										"url": {
											"raw": "{{trafficparrot.http.mock.url}}/stockRequest",
											"host": [
												"{{trafficparrot.http.mock.url}}"
											],
											"path": [
												"stockRequest"
											]
										}
									},
									"response": []
								}
							],
							"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_isSubFolder": true
						},
						{
							"name": "xPathList helper example",
							"item": [
								{
									"name": "1. Create xPathList mapping",
									"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": {
											"raw": "{{trafficparrot.http.mock.url}}/__admin/mappings",
											"host": [
												"{{trafficparrot.http.mock.url}}"
											],
											"path": [
												"__admin",
												"mappings"
											]
										}
									},
									"response": []
								},
								{
									"name": "2. Create xPathList mapping body file",
									"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": {
											"raw": "{{trafficparrot.http.mock.url}}/__admin/files/requestXPathList.xml",
											"host": [
												"{{trafficparrot.http.mock.url}}"
											],
											"path": [
												"__admin",
												"files",
												"requestXPathList.xml"
											]
										}
									},
									"response": []
								},
								{
									"name": "3. Test xPathList mock",
									"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": {
											"raw": "{{trafficparrot.http.mock.url}}/requestXPathList",
											"host": [
												"{{trafficparrot.http.mock.url}}"
											],
											"path": [
												"requestXPathList"
											]
										}
									},
									"response": []
								}
							],
							"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_isSubFolder": true
						},
						{
							"name": "jsonPathList helper example",
							"item": [
								{
									"name": "1. Create jsonPathList mapping",
									"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": {
											"raw": "{{trafficparrot.http.mock.url}}/__admin/mappings",
											"host": [
												"{{trafficparrot.http.mock.url}}"
											],
											"path": [
												"__admin",
												"mappings"
											]
										}
									},
									"response": []
								},
								{
									"name": "2. Create jsonPathList body file mapping",
									"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": {
											"raw": "{{trafficparrot.http.mock.url}}/__admin/files/requestJsonPathList.json",
											"host": [
												"{{trafficparrot.http.mock.url}}"
											],
											"path": [
												"__admin",
												"files",
												"requestJsonPathList.json"
											]
										}
									},
									"response": []
								},
								{
									"name": "3. Test jsonPathList mock",
									"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": {
											"raw": "{{trafficparrot.http.mock.url}}/requestJsonPathList",
											"host": [
												"{{trafficparrot.http.mock.url}}"
											],
											"path": [
												"requestJsonPathList"
											]
										}
									},
									"response": []
								}
							],
							"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_isSubFolder": true
						},
						{
							"name": "Faults example",
							"item": [
								{
									"name": "1. Create dribbling bytes mapping",
									"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": {
											"raw": "{{trafficparrot.http.mock.url}}/__admin/mappings",
											"host": [
												"{{trafficparrot.http.mock.url}}"
											],
											"path": [
												"__admin",
												"mappings"
											]
										}
									},
									"response": []
								},
								{
									"name": "2. Test dribbling bytes mock",
									"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": {
											"raw": "{{trafficparrot.http.mock.url}}/dripBytesEvery1s",
											"host": [
												"{{trafficparrot.http.mock.url}}"
											],
											"path": [
												"dripBytesEvery1s"
											]
										}
									},
									"response": []
								}
							],
							"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_isSubFolder": true
						}
					],
					"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_isSubFolder": true
				}
			],
			"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": [
							""
						]
					}
				}
			]
		},
		{
			"name": "JMS APIs",
			"item": [
				{
					"name": "Get all mappings",
					"request": {
						"method": "GET",
						"header": [],
						"url": {
							"raw": "{{trafficparrot.ui.url}}/jms/mappings",
							"host": [
								"{{trafficparrot.ui.url}}"
							],
							"path": [
								"jms",
								"mappings"
							]
						}
					},
					"response": []
				},
				{
					"name": "Delete mapping",
					"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": {
							"raw": "{{trafficparrot.jms.management.url}}/jms/management/delete?mapping-id=0a7362db-3e18-481d-9205-ebbc29d8a8b6",
							"host": [
								"{{trafficparrot.jms.management.url}}"
							],
							"path": [
								"jms",
								"management",
								"delete"
							],
							"query": [
								{
									"key": "mapping-id",
									"value": "0a7362db-3e18-481d-9205-ebbc29d8a8b6"
								}
							]
						}
					},
					"response": []
				},
				{
					"name": "Add mapping",
					"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": "request-queue",
									"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": "response-queue",
									"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": {
							"raw": "{{trafficparrot.jms.management.url}}/jms/management/prime",
							"host": [
								"{{trafficparrot.jms.management.url}}"
							],
							"path": [
								"jms",
								"management",
								"prime"
							]
						}
					},
					"response": []
				}
			],
			"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": [
							""
						]
					}
				}
			]
		},
		{
			"name": "gRPC APIs",
			"item": [
				{
					"name": "Count requests in journal",
					"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": {
							"raw": "{{trafficparrot.ui.url}}/api/grpc/requests/count",
							"host": [
								"{{trafficparrot.ui.url}}"
							],
							"path": [
								"api",
								"grpc",
								"requests",
								"count"
							]
						}
					},
					"response": []
				},
				{
					"name": "Delete requests in journal",
					"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": {
							"raw": "{{trafficparrot.ui.url}}/api/grpc/requests",
							"host": [
								"{{trafficparrot.ui.url}}"
							],
							"path": [
								"api",
								"grpc",
								"requests"
							]
						}
					},
					"response": []
				},
				{
					"name": "Get all mappings",
					"request": {
						"method": "GET",
						"header": [],
						"url": {
							"raw": "{{trafficparrot.management.url}}/grpc/management/mappings",
							"host": [
								"{{trafficparrot.management.url}}"
							],
							"path": [
								"grpc",
								"management",
								"mappings"
							]
						}
					},
					"response": []
				},
				{
					"name": "Add mapping",
					"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": "control-headers",
									"value": "",
									"type": "text"
								},
								{
									"key": "response-headers",
									"value": "",
									"type": "text"
								},
								{
									"key": "request-url",
									"value": "getItemDescription",
									"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": "exception-code",
									"value": "",
									"type": "text"
								},
								{
									"key": "response-status-code",
									"value": "200",
									"type": "text"
								},
								{
									"key": "exception-message",
									"value": "",
									"type": "text"
								},
								{
									"key": "exception-metadata",
									"value": "",
									"type": "text"
								}
							]
						},
						"url": {
							"raw": "{{trafficparrot.ui.url}}/prime",
							"host": [
								"{{trafficparrot.ui.url}}"
							],
							"path": [
								"prime"
							]
						}
					},
					"response": []
				},
				{
					"name": "Delete mapping",
					"request": {
						"method": "DELETE",
						"header": [],
						"body": {
							"mode": "raw",
							"raw": ""
						},
						"url": {
							"raw": "{{trafficparrot.http.mock.url}}/__admin/mappings/598da0cd-5320-4bda-bd8a-71cdd50790d",
							"host": [
								"{{trafficparrot.http.mock.url}}"
							],
							"path": [
								"__admin",
								"mappings",
								"598da0cd-5320-4bda-bd8a-71cdd50790d"
							]
						}
					},
					"response": []
				}
			],
			"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": [
							""
						]
					}
				}
			]
		}
	],
	"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"
		}
	]
}