Postman collection

{
	"info": {
		"_postman_id": "83ce6d0f-6896-4ca8-826d-b7636f89a8ad",
		"name": "Broadcast API - Deployed",
		"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
	},
	"item": [
		{
			"name": "UID with Auth",
			"request": {
				"auth": {
					"type": "basic",
					"basic": [
						{
							"key": "password",
							"value": "123",
							"type": "string"
						},
						{
							"key": "username",
							"value": "akila.uyanwatta",
							"type": "string"
						}
					]
				},
				"method": "GET",
				"header": [],
				"url": {
					"raw": "http://13.74.138.40:39833/WebRestApi/rest/broadcast/20220207050335911",
					"protocol": "http",
					"host": [
						"13",
						"74",
						"138",
						"40"
					],
					"port": "39833",
					"path": [
						"WebRestApi",
						"rest",
						"broadcast",
						"20220207050335911"
					]
				}
			},
			"response": [
				{
					"name": "UID with Auth",
					"originalRequest": {
						"method": "GET",
						"header": [],
						"url": {
							"raw": "http://13.74.138.40:39833/WebRestApi/rest/broadcast/20220207050335911",
							"protocol": "http",
							"host": [
								"13",
								"74",
								"138",
								"40"
							],
							"port": "39833",
							"path": [
								"WebRestApi",
								"rest",
								"broadcast",
								"20220207050335911"
							]
						}
					},
					"status": "OK",
					"code": 200,
					"_postman_previewlanguage": "json",
					"header": [
						{
							"key": "Cache-Control",
							"value": "private"
						},
						{
							"key": "Expires",
							"value": "Thu, 01 Jan 1970 00:00:00 GMT"
						},
						{
							"key": "Content-Type",
							"value": "application/json"
						},
						{
							"key": "Content-Length",
							"value": "103"
						},
						{
							"key": "Date",
							"value": "Mon, 07 Feb 2022 08:00:36 GMT"
						},
						{
							"key": "Keep-Alive",
							"value": "timeout=20"
						},
						{
							"key": "Connection",
							"value": "keep-alive"
						},
						{
							"key": "Server",
							"value": "GlassFish"
						}
					],
					"cookie": [],
					"body": "{\n    \"itemsAffected\": 0,\n    \"dateTimeBroadcast\": 1644210215911,\n    \"lastUpdated\": 1644214237000,\n    \"status\": \"SUCCESSFUL\"\n}"
				}
			]
		},
		{
			"name": "UID without Auth",
			"request": {
				"method": "GET",
				"header": [],
				"url": {
					"raw": "http://13.74.138.40:39833/WebRestApi/rest/broadcast/20220207050335911",
					"protocol": "http",
					"host": [
						"13",
						"74",
						"138",
						"40"
					],
					"port": "39833",
					"path": [
						"WebRestApi",
						"rest",
						"broadcast",
						"20220207050335911"
					]
				}
			},
			"response": [
				{
					"name": "UID without Auth",
					"originalRequest": {
						"method": "GET",
						"header": [],
						"url": {
							"raw": "http://13.74.138.40:39833/WebRestApi/rest/broadcast/20220207050335911",
							"protocol": "http",
							"host": [
								"13",
								"74",
								"138",
								"40"
							],
							"port": "39833",
							"path": [
								"WebRestApi",
								"rest",
								"broadcast",
								"20220207050335911"
							]
						}
					},
					"status": "Unauthorized",
					"code": 401,
					"_postman_previewlanguage": "json",
					"header": [
						{
							"key": "Cache-Control",
							"value": "private"
						},
						{
							"key": "Expires",
							"value": "Thu, 01 Jan 1970 00:00:00 GMT"
						},
						{
							"key": "Content-Type",
							"value": "application/json"
						},
						{
							"key": "Content-Length",
							"value": "96"
						},
						{
							"key": "Date",
							"value": "Mon, 07 Feb 2022 08:00:49 GMT"
						},
						{
							"key": "Keep-Alive",
							"value": "timeout=20"
						},
						{
							"key": "Connection",
							"value": "keep-alive"
						},
						{
							"key": "Server",
							"value": "GlassFish"
						}
					],
					"cookie": [],
					"body": "{\n    \"messageText\": \"Basic authentication header missing in the request.\",\n    \"errorCode\": \"Unauthorized\"\n}"
				}
			]
		},
		{
			"name": "Device status without Auth",
			"request": {
				"method": "GET",
				"header": [],
				"url": {
					"raw": "http://13.74.138.40:39833/WebRestApi/rest/broadcast/20220207053819415/TST-DK0032-P5-UC",
					"protocol": "http",
					"host": [
						"13",
						"74",
						"138",
						"40"
					],
					"port": "39833",
					"path": [
						"WebRestApi",
						"rest",
						"broadcast",
						"20220207053819415",
						"TST-DK0032-P5-UC"
					]
				}
			},
			"response": [
				{
					"name": "Device status without Auth",
					"originalRequest": {
						"method": "GET",
						"header": [],
						"url": {
							"raw": "http://13.74.138.40:39833/WebRestApi/rest/broadcast/20220207053819415/TST-DK0032-P5-UC",
							"protocol": "http",
							"host": [
								"13",
								"74",
								"138",
								"40"
							],
							"port": "39833",
							"path": [
								"WebRestApi",
								"rest",
								"broadcast",
								"20220207053819415",
								"TST-DK0032-P5-UC"
							]
						}
					},
					"status": "Unauthorized",
					"code": 401,
					"_postman_previewlanguage": "json",
					"header": [
						{
							"key": "Cache-Control",
							"value": "private"
						},
						{
							"key": "Expires",
							"value": "Thu, 01 Jan 1970 00:00:00 GMT"
						},
						{
							"key": "Content-Type",
							"value": "application/json"
						},
						{
							"key": "Content-Length",
							"value": "96"
						},
						{
							"key": "Date",
							"value": "Mon, 07 Feb 2022 08:00:59 GMT"
						},
						{
							"key": "Keep-Alive",
							"value": "timeout=20"
						},
						{
							"key": "Connection",
							"value": "keep-alive"
						},
						{
							"key": "Server",
							"value": "GlassFish"
						}
					],
					"cookie": [],
					"body": "{\n    \"messageText\": \"Basic authentication header missing in the request.\",\n    \"errorCode\": \"Unauthorized\"\n}"
				}
			]
		},
		{
			"name": "Device status Auth",
			"request": {
				"auth": {
					"type": "basic",
					"basic": [
						{
							"key": "password",
							"value": "123",
							"type": "string"
						},
						{
							"key": "username",
							"value": "akila.uyanwatta",
							"type": "string"
						}
					]
				},
				"method": "GET",
				"header": [],
				"url": {
					"raw": "http://13.74.138.40:39833/WebRestApi/rest/broadcast/20220207053819415/TST-DK0032-P5-UC",
					"protocol": "http",
					"host": [
						"13",
						"74",
						"138",
						"40"
					],
					"port": "39833",
					"path": [
						"WebRestApi",
						"rest",
						"broadcast",
						"20220207053819415",
						"TST-DK0032-P5-UC"
					]
				}
			},
			"response": [
				{
					"name": "Device status Auth",
					"originalRequest": {
						"method": "GET",
						"header": [],
						"url": {
							"raw": "http://13.74.138.40:39833/WebRestApi/rest/broadcast/20220207053819415/TST-DK0032-P5-UC",
							"protocol": "http",
							"host": [
								"13",
								"74",
								"138",
								"40"
							],
							"port": "39833",
							"path": [
								"WebRestApi",
								"rest",
								"broadcast",
								"20220207053819415",
								"TST-DK0032-P5-UC"
							]
						}
					},
					"status": "OK",
					"code": 200,
					"_postman_previewlanguage": "json",
					"header": [
						{
							"key": "Cache-Control",
							"value": "private"
						},
						{
							"key": "Expires",
							"value": "Thu, 01 Jan 1970 00:00:00 GMT"
						},
						{
							"key": "Content-Type",
							"value": "application/json"
						},
						{
							"key": "Content-Length",
							"value": "58"
						},
						{
							"key": "Date",
							"value": "Mon, 07 Feb 2022 08:01:07 GMT"
						},
						{
							"key": "Keep-Alive",
							"value": "timeout=20"
						},
						{
							"key": "Connection",
							"value": "keep-alive"
						},
						{
							"key": "Server",
							"value": "GlassFish"
						}
					],
					"cookie": [],
					"body": "{\n    \"itemsAffected\": 0,\n    \"lastUpdated\": 1644212854000,\n    \"status\": 2\n}"
				}
			]
		},
		{
			"name": "Device status Auth Invalid UID",
			"request": {
				"auth": {
					"type": "basic",
					"basic": [
						{
							"key": "password",
							"value": "123",
							"type": "string"
						},
						{
							"key": "username",
							"value": "akila.uyanwatta",
							"type": "string"
						}
					]
				},
				"method": "GET",
				"header": [],
				"url": {
					"raw": "http://13.74.138.40:39833/WebRestApi/rest/broadcast/202202070538194159/TST-DK0032-P5-UC",
					"protocol": "http",
					"host": [
						"13",
						"74",
						"138",
						"40"
					],
					"port": "39833",
					"path": [
						"WebRestApi",
						"rest",
						"broadcast",
						"202202070538194159",
						"TST-DK0032-P5-UC"
					]
				}
			},
			"response": [
				{
					"name": "Device status Auth Invalid UID",
					"originalRequest": {
						"method": "GET",
						"header": [],
						"url": {
							"raw": "http://13.74.138.40:39833/WebRestApi/rest/broadcast/202202070538194159/TST-DK0032-P5-UC",
							"protocol": "http",
							"host": [
								"13",
								"74",
								"138",
								"40"
							],
							"port": "39833",
							"path": [
								"WebRestApi",
								"rest",
								"broadcast",
								"202202070538194159",
								"TST-DK0032-P5-UC"
							]
						}
					},
					"status": "Internal Server Error",
					"code": 500,
					"_postman_previewlanguage": "json",
					"header": [
						{
							"key": "Cache-Control",
							"value": "private"
						},
						{
							"key": "Expires",
							"value": "Thu, 01 Jan 1970 00:00:00 GMT"
						},
						{
							"key": "Content-Type",
							"value": "application/json"
						},
						{
							"key": "Content-Length",
							"value": "57"
						},
						{
							"key": "Date",
							"value": "Mon, 07 Feb 2022 08:01:14 GMT"
						},
						{
							"key": "Connection",
							"value": "close"
						},
						{
							"key": "Server",
							"value": "GlassFish"
						}
					],
					"cookie": [],
					"body": "Error processing request : enactor.core.rest.ErrorMessage"
				}
			]
		},
		{
			"name": "Broadcast with auth - Device",
			"request": {
				"auth": {
					"type": "basic",
					"basic": [
						{
							"key": "password",
							"value": "123",
							"type": "string"
						},
						{
							"key": "username",
							"value": "akila.uyanwatta",
							"type": "string"
						}
					]
				},
				"method": "PUT",
				"header": [],
				"body": {
					"mode": "raw",
					"raw": "{\r\n\"changesSince\":\"2022-02-02T16:01:31.000+0000\",\r\n\"targets\":{\r\n\t\"topic\":\"Device\",\r\n\t\"devices\" : [\"TST-DK0032-LK\"]\r\n\t}\r\n}",
					"options": {
						"raw": {
							"language": "json"
						}
					}
				},
				"url": {
					"raw": "http://13.74.138.40:39833/WebRestApi/rest/broadcast/AU",
					"protocol": "http",
					"host": [
						"13",
						"74",
						"138",
						"40"
					],
					"port": "39833",
					"path": [
						"WebRestApi",
						"rest",
						"broadcast",
						"AU"
					]
				}
			},
			"response": [
				{
					"name": "Broadcast with auth - Device",
					"originalRequest": {
						"method": "PUT",
						"header": [],
						"body": {
							"mode": "raw",
							"raw": "{\r\n\"changesSince\":\"2022-02-02T16:01:31.000+0000\",\r\n\"targets\":{\r\n\t\"topic\":\"Device\",\r\n\t\"devices\" : [\"TST-DK0032-LK\"]\r\n\t}\r\n}",
							"options": {
								"raw": {
									"language": "json"
								}
							}
						},
						"url": {
							"raw": "http://13.74.138.40:39833/WebRestApi/rest/broadcast/AU",
							"protocol": "http",
							"host": [
								"13",
								"74",
								"138",
								"40"
							],
							"port": "39833",
							"path": [
								"WebRestApi",
								"rest",
								"broadcast",
								"AU"
							]
						}
					},
					"status": "OK",
					"code": 200,
					"_postman_previewlanguage": "json",
					"header": [
						{
							"key": "Cache-Control",
							"value": "private"
						},
						{
							"key": "Expires",
							"value": "Thu, 01 Jan 1970 00:00:00 GMT"
						},
						{
							"key": "Content-Type",
							"value": "application/json"
						},
						{
							"key": "Content-Length",
							"value": "54"
						},
						{
							"key": "Date",
							"value": "Mon, 07 Feb 2022 08:01:26 GMT"
						},
						{
							"key": "Keep-Alive",
							"value": "timeout=20"
						},
						{
							"key": "Connection",
							"value": "keep-alive"
						},
						{
							"key": "Server",
							"value": "GlassFish"
						}
					],
					"cookie": [],
					"body": "{\n    \"broadcastId\": \"f3ee18ae-ffe3-46af-940c-b76f025b0625\"\n}"
				}
			]
		},
		{
			"name": "Broadcast with auth - Wrong topic",
			"request": {
				"auth": {
					"type": "basic",
					"basic": [
						{
							"key": "password",
							"value": "123",
							"type": "string"
						},
						{
							"key": "username",
							"value": "akila.uyanwatta",
							"type": "string"
						}
					]
				},
				"method": "PUT",
				"header": [],
				"body": {
					"mode": "raw",
					"raw": "{\r\n\"changesSince\":\"2022-02-02T16:01:31.000+0000\",\r\n\"targets\":{\r\n\t\"topic\":\"WrongTopic\",\r\n\t\"devices\" : [\"TST-DK0032-LK\"]\r\n\t}\r\n}",
					"options": {
						"raw": {
							"language": "json"
						}
					}
				},
				"url": {
					"raw": "http://13.74.138.40:39833/WebRestApi/rest/broadcast/AU",
					"protocol": "http",
					"host": [
						"13",
						"74",
						"138",
						"40"
					],
					"port": "39833",
					"path": [
						"WebRestApi",
						"rest",
						"broadcast",
						"AU"
					]
				}
			},
			"response": [
				{
					"name": "Broadcast with auth - Wrong topic",
					"originalRequest": {
						"method": "PUT",
						"header": [],
						"body": {
							"mode": "raw",
							"raw": "{\r\n\"changesSince\":\"2022-02-02T16:01:31.000+0000\",\r\n\"targets\":{\r\n\t\"topic\":\"WrongTopic\",\r\n\t\"devices\" : [\"TST-DK0032-LK\"]\r\n\t}\r\n}",
							"options": {
								"raw": {
									"language": "json"
								}
							}
						},
						"url": {
							"raw": "http://13.74.138.40:39833/WebRestApi/rest/broadcast/AU",
							"protocol": "http",
							"host": [
								"13",
								"74",
								"138",
								"40"
							],
							"port": "39833",
							"path": [
								"WebRestApi",
								"rest",
								"broadcast",
								"AU"
							]
						}
					},
					"status": "Bad Request",
					"code": 400,
					"_postman_previewlanguage": "json",
					"header": [
						{
							"key": "Cache-Control",
							"value": "private"
						},
						{
							"key": "Expires",
							"value": "Thu, 01 Jan 1970 00:00:00 GMT"
						},
						{
							"key": "Content-Type",
							"value": "application/typed+json"
						},
						{
							"key": "Content-Length",
							"value": "113"
						},
						{
							"key": "Date",
							"value": "Mon, 07 Feb 2022 08:01:46 GMT"
						},
						{
							"key": "Connection",
							"value": "close"
						},
						{
							"key": "Server",
							"value": "GlassFish"
						}
					],
					"cookie": [],
					"body": "{\n    \"status\": \"BAD_REQUEST\",\n    \"messageText\": \"Error handling topics for predefined broadcast ID AU\",\n    \"errorStatus\": \"400\"\n}"
				}
			]
		},
		{
			"name": "Broadcasty with auth - Device - no changes since",
			"request": {
				"auth": {
					"type": "basic",
					"basic": [
						{
							"key": "password",
							"value": "123",
							"type": "string"
						},
						{
							"key": "username",
							"value": "akila.uyanwatta",
							"type": "string"
						}
					]
				},
				"method": "PUT",
				"header": [],
				"body": {
					"mode": "raw",
					"raw": "{\r\n\"targets\":{\r\n\t\"topic\":\"Device\",\r\n\t\"devices\" : [\"TST-DK0032-LK\"]\r\n\t}\r\n}",
					"options": {
						"raw": {
							"language": "json"
						}
					}
				},
				"url": {
					"raw": "http://13.74.138.40:39833/WebRestApi/rest/broadcast/AU",
					"protocol": "http",
					"host": [
						"13",
						"74",
						"138",
						"40"
					],
					"port": "39833",
					"path": [
						"WebRestApi",
						"rest",
						"broadcast",
						"AU"
					]
				}
			},
			"response": [
				{
					"name": "Broadcasty with auth - Device - no changes since",
					"originalRequest": {
						"method": "PUT",
						"header": [],
						"body": {
							"mode": "raw",
							"raw": "{\r\n\"targets\":{\r\n\t\"topic\":\"Device\",\r\n\t\"devices\" : [\"TST-DK0032-LK\"]\r\n\t}\r\n}",
							"options": {
								"raw": {
									"language": "json"
								}
							}
						},
						"url": {
							"raw": "http://13.74.138.40:39833/WebRestApi/rest/broadcast/AU",
							"protocol": "http",
							"host": [
								"13",
								"74",
								"138",
								"40"
							],
							"port": "39833",
							"path": [
								"WebRestApi",
								"rest",
								"broadcast",
								"AU"
							]
						}
					},
					"status": "Bad Request",
					"code": 400,
					"_postman_previewlanguage": "json",
					"header": [
						{
							"key": "Cache-Control",
							"value": "private"
						},
						{
							"key": "Expires",
							"value": "Thu, 01 Jan 1970 00:00:00 GMT"
						},
						{
							"key": "Content-Type",
							"value": "application/typed+json"
						},
						{
							"key": "Content-Length",
							"value": "102"
						},
						{
							"key": "Date",
							"value": "Mon, 07 Feb 2022 08:03:43 GMT"
						},
						{
							"key": "Connection",
							"value": "close"
						},
						{
							"key": "Server",
							"value": "GlassFish"
						}
					],
					"cookie": [],
					"body": "{\n    \"status\": \"BAD_REQUEST\",\n    \"messageText\": \"Request must contain a changesSince field\",\n    \"errorStatus\": \"400\"\n}"
				}
			]
		},
		{
			"name": "Broadcast with auth - Wrong device",
			"request": {
				"auth": {
					"type": "basic",
					"basic": [
						{
							"key": "password",
							"value": "123",
							"type": "string"
						},
						{
							"key": "username",
							"value": "akila.uyanwatta",
							"type": "string"
						}
					]
				},
				"method": "PUT",
				"header": [],
				"body": {
					"mode": "raw",
					"raw": "{\r\n\"changesSince\":\"2022-02-02T16:01:31.000+0000\",\r\n\"targets\":{\r\n\t\"topic\":\"Device\",\r\n\t\"devices\" : [\"WrongDevice\"]\r\n\t}\r\n}",
					"options": {
						"raw": {
							"language": "json"
						}
					}
				},
				"url": {
					"raw": "http://13.74.138.40:39833/WebRestApi/rest/broadcast/AU",
					"protocol": "http",
					"host": [
						"13",
						"74",
						"138",
						"40"
					],
					"port": "39833",
					"path": [
						"WebRestApi",
						"rest",
						"broadcast",
						"AU"
					]
				}
			},
			"response": [
				{
					"name": "Broadcast with auth - Wrong device",
					"originalRequest": {
						"method": "PUT",
						"header": [],
						"body": {
							"mode": "raw",
							"raw": "{\r\n\"changesSince\":\"2022-02-02T16:01:31.000+0000\",\r\n\"targets\":{\r\n\t\"topic\":\"Device\",\r\n\t\"devices\" : [\"WrongDevice\"]\r\n\t}\r\n}",
							"options": {
								"raw": {
									"language": "json"
								}
							}
						},
						"url": {
							"raw": "http://13.74.138.40:39833/WebRestApi/rest/broadcast/AU",
							"protocol": "http",
							"host": [
								"13",
								"74",
								"138",
								"40"
							],
							"port": "39833",
							"path": [
								"WebRestApi",
								"rest",
								"broadcast",
								"AU"
							]
						}
					},
					"status": "Bad Request",
					"code": 400,
					"_postman_previewlanguage": "json",
					"header": [
						{
							"key": "Cache-Control",
							"value": "private"
						},
						{
							"key": "Expires",
							"value": "Thu, 01 Jan 1970 00:00:00 GMT"
						},
						{
							"key": "Content-Type",
							"value": "application/typed+json"
						},
						{
							"key": "Content-Length",
							"value": "102"
						},
						{
							"key": "Date",
							"value": "Mon, 07 Feb 2022 08:04:14 GMT"
						},
						{
							"key": "Connection",
							"value": "close"
						},
						{
							"key": "Server",
							"value": "GlassFish"
						}
					],
					"cookie": [],
					"body": "{\n    \"status\": \"BAD_REQUEST\",\n    \"messageText\": \"No device found for device ID WrongDevice\",\n    \"errorStatus\": \"400\"\n}"
				}
			]
		},
		{
			"name": "Broadcast with auth - Incomplete device",
			"request": {
				"auth": {
					"type": "basic",
					"basic": [
						{
							"key": "password",
							"value": "123",
							"type": "string"
						},
						{
							"key": "username",
							"value": "akila.uyanwatta",
							"type": "string"
						}
					]
				},
				"method": "PUT",
				"header": [],
				"body": {
					"mode": "raw",
					"raw": "{\r\n\"changesSince\":\"2022-02-02T16:01:31.000+0000\",\r\n\"targets\":{\r\n\t\"topic\":\"Device\"\r\n\t}\r\n}",
					"options": {
						"raw": {
							"language": "json"
						}
					}
				},
				"url": {
					"raw": "http://13.74.138.40:39833/WebRestApi/rest/broadcast/AU",
					"protocol": "http",
					"host": [
						"13",
						"74",
						"138",
						"40"
					],
					"port": "39833",
					"path": [
						"WebRestApi",
						"rest",
						"broadcast",
						"AU"
					]
				}
			},
			"response": [
				{
					"name": "Broadcast with auth - Incomplete device",
					"originalRequest": {
						"method": "PUT",
						"header": [],
						"body": {
							"mode": "raw",
							"raw": "{\r\n\"changesSince\":\"2022-02-02T16:01:31.000+0000\",\r\n\"targets\":{\r\n\t\"topic\":\"Device\"\r\n\t}\r\n}",
							"options": {
								"raw": {
									"language": "json"
								}
							}
						},
						"url": {
							"raw": "http://13.74.138.40:39833/WebRestApi/rest/broadcast/AU",
							"protocol": "http",
							"host": [
								"13",
								"74",
								"138",
								"40"
							],
							"port": "39833",
							"path": [
								"WebRestApi",
								"rest",
								"broadcast",
								"AU"
							]
						}
					},
					"status": "Bad Request",
					"code": 400,
					"_postman_previewlanguage": "json",
					"header": [
						{
							"key": "Cache-Control",
							"value": "private"
						},
						{
							"key": "Expires",
							"value": "Thu, 01 Jan 1970 00:00:00 GMT"
						},
						{
							"key": "Content-Type",
							"value": "application/typed+json"
						},
						{
							"key": "Content-Length",
							"value": "113"
						},
						{
							"key": "Date",
							"value": "Mon, 07 Feb 2022 08:04:52 GMT"
						},
						{
							"key": "Connection",
							"value": "close"
						},
						{
							"key": "Server",
							"value": "GlassFish"
						}
					],
					"cookie": [],
					"body": "{\n    \"status\": \"BAD_REQUEST\",\n    \"messageText\": \"Error handling topics for predefined broadcast ID AU\",\n    \"errorStatus\": \"400\"\n}"
				}
			]
		},
		{
			"name": "Broadcasty with auth - Wrong location",
			"request": {
				"auth": {
					"type": "basic",
					"basic": [
						{
							"key": "password",
							"value": "123",
							"type": "string"
						},
						{
							"key": "username",
							"value": "akila.uyanwatta",
							"type": "string"
						}
					]
				},
				"method": "PUT",
				"header": [],
				"body": {
					"mode": "raw",
					"raw": "{\r\n\"changesSince\":\"2022-02-02T16:01:31.000+0000\",\r\n\"targets\":{\r\n\t\"topic\":\"Location\",\r\n\t\"locations\" : [\"WrongLocation\"]\r\n\t}\r\n}",
					"options": {
						"raw": {
							"language": "json"
						}
					}
				},
				"url": {
					"raw": "http://13.74.138.40:39833/WebRestApi/rest/broadcast/AU",
					"protocol": "http",
					"host": [
						"13",
						"74",
						"138",
						"40"
					],
					"port": "39833",
					"path": [
						"WebRestApi",
						"rest",
						"broadcast",
						"AU"
					]
				}
			},
			"response": [
				{
					"name": "Broadcasty with auth - Wrong location",
					"originalRequest": {
						"method": "PUT",
						"header": [],
						"body": {
							"mode": "raw",
							"raw": "{\r\n\"changesSince\":\"2022-02-02T16:01:31.000+0000\",\r\n\"targets\":{\r\n\t\"topic\":\"Location\",\r\n\t\"locations\" : [\"WrongLocation\"]\r\n\t}\r\n}",
							"options": {
								"raw": {
									"language": "json"
								}
							}
						},
						"url": {
							"raw": "http://13.74.138.40:39833/WebRestApi/rest/broadcast/AU",
							"protocol": "http",
							"host": [
								"13",
								"74",
								"138",
								"40"
							],
							"port": "39833",
							"path": [
								"WebRestApi",
								"rest",
								"broadcast",
								"AU"
							]
						}
					},
					"status": "Bad Request",
					"code": 400,
					"_postman_previewlanguage": "json",
					"header": [
						{
							"key": "Cache-Control",
							"value": "private"
						},
						{
							"key": "Expires",
							"value": "Thu, 01 Jan 1970 00:00:00 GMT"
						},
						{
							"key": "Content-Type",
							"value": "application/typed+json"
						},
						{
							"key": "Content-Length",
							"value": "106"
						},
						{
							"key": "Date",
							"value": "Mon, 07 Feb 2022 08:05:12 GMT"
						},
						{
							"key": "Connection",
							"value": "close"
						},
						{
							"key": "Server",
							"value": "GlassFish"
						}
					],
					"cookie": [],
					"body": "{\n    \"status\": \"BAD_REQUEST\",\n    \"messageText\": \"No location found for device ID WrongLocation\",\n    \"errorStatus\": \"400\"\n}"
				}
			]
		},
		{
			"name": "Broadcasty with auth - Region",
			"request": {
				"auth": {
					"type": "basic",
					"basic": [
						{
							"key": "password",
							"value": "123",
							"type": "string"
						},
						{
							"key": "username",
							"value": "akila.uyanwatta",
							"type": "string"
						}
					]
				},
				"method": "PUT",
				"header": [],
				"body": {
					"mode": "raw",
					"raw": "{\r\n\"changesSince\":\"2022-02-02T16:01:31.000+0000\",\r\n\"targets\":{\r\n\t\"topic\":\"Region\",\r\n\t\"regions\" : [\r\n\t{ \"groupId\": \"BE\", \"groupHierarchyId\": \"All\" }]\r\n\t}\r\n}",
					"options": {
						"raw": {
							"language": "json"
						}
					}
				},
				"url": {
					"raw": "http://13.74.138.40:39833/WebRestApi/rest/broadcast/AU",
					"protocol": "http",
					"host": [
						"13",
						"74",
						"138",
						"40"
					],
					"port": "39833",
					"path": [
						"WebRestApi",
						"rest",
						"broadcast",
						"AU"
					]
				}
			},
			"response": [
				{
					"name": "Broadcasty with auth - Region",
					"originalRequest": {
						"method": "PUT",
						"header": [],
						"body": {
							"mode": "raw",
							"raw": "{\r\n\"changesSince\":\"2022-02-02T16:01:31.000+0000\",\r\n\"targets\":{\r\n\t\"topic\":\"Region\",\r\n\t\"regions\" : [\r\n\t{ \"groupId\": \"BE\", \"groupHierarchyId\": \"All\" }]\r\n\t}\r\n}",
							"options": {
								"raw": {
									"language": "json"
								}
							}
						},
						"url": {
							"raw": "http://13.74.138.40:39833/WebRestApi/rest/broadcast/AU",
							"protocol": "http",
							"host": [
								"13",
								"74",
								"138",
								"40"
							],
							"port": "39833",
							"path": [
								"WebRestApi",
								"rest",
								"broadcast",
								"AU"
							]
						}
					},
					"status": "OK",
					"code": 200,
					"_postman_previewlanguage": "json",
					"header": [
						{
							"key": "Cache-Control",
							"value": "private"
						},
						{
							"key": "Expires",
							"value": "Thu, 01 Jan 1970 00:00:00 GMT"
						},
						{
							"key": "Content-Type",
							"value": "application/json"
						},
						{
							"key": "Content-Length",
							"value": "54"
						},
						{
							"key": "Date",
							"value": "Mon, 07 Feb 2022 08:05:28 GMT"
						},
						{
							"key": "Keep-Alive",
							"value": "timeout=20"
						},
						{
							"key": "Connection",
							"value": "keep-alive"
						},
						{
							"key": "Server",
							"value": "GlassFish"
						}
					],
					"cookie": [],
					"body": "{\n    \"broadcastId\": \"f2de642e-25b4-404c-9418-47a8f97b9e7f\"\n}"
				}
			]
		},
		{
			"name": "Broadcasty with auth - Wrong region",
			"request": {
				"auth": {
					"type": "basic",
					"basic": [
						{
							"key": "password",
							"value": "123",
							"type": "string"
						},
						{
							"key": "username",
							"value": "akila.uyanwatta",
							"type": "string"
						}
					]
				},
				"method": "PUT",
				"header": [],
				"body": {
					"mode": "raw",
					"raw": "{\r\n\"changesSince\":\"2022-02-02T16:01:31.000+0000\",\r\n\"targets\":{\r\n\t\"topic\":\"Region\",\r\n\t\"regions\" : [\r\n\t{ \"groupId\": \"WrongGroup\", \"groupHierarchyId\": \"All\" }]\r\n\t}\r\n}",
					"options": {
						"raw": {
							"language": "json"
						}
					}
				},
				"url": {
					"raw": "http://13.74.138.40:39833/WebRestApi/rest/broadcast/AU",
					"protocol": "http",
					"host": [
						"13",
						"74",
						"138",
						"40"
					],
					"port": "39833",
					"path": [
						"WebRestApi",
						"rest",
						"broadcast",
						"AU"
					]
				}
			},
			"response": [
				{
					"name": "Broadcasty with auth - Wrong region",
					"originalRequest": {
						"method": "PUT",
						"header": [],
						"body": {
							"mode": "raw",
							"raw": "{\r\n\"changesSince\":\"2022-02-02T16:01:31.000+0000\",\r\n\"targets\":{\r\n\t\"topic\":\"Region\",\r\n\t\"regions\" : [\r\n\t{ \"groupId\": \"WrongGroup\", \"groupHierarchyId\": \"All\" }]\r\n\t}\r\n}",
							"options": {
								"raw": {
									"language": "json"
								}
							}
						},
						"url": {
							"raw": "http://13.74.138.40:39833/WebRestApi/rest/broadcast/AU",
							"protocol": "http",
							"host": [
								"13",
								"74",
								"138",
								"40"
							],
							"port": "39833",
							"path": [
								"WebRestApi",
								"rest",
								"broadcast",
								"AU"
							]
						}
					},
					"status": "Bad Request",
					"code": 400,
					"_postman_previewlanguage": "json",
					"header": [
						{
							"key": "Cache-Control",
							"value": "private"
						},
						{
							"key": "Expires",
							"value": "Thu, 01 Jan 1970 00:00:00 GMT"
						},
						{
							"key": "Content-Type",
							"value": "application/typed+json"
						},
						{
							"key": "Content-Length",
							"value": "127"
						},
						{
							"key": "Date",
							"value": "Mon, 07 Feb 2022 08:05:45 GMT"
						},
						{
							"key": "Connection",
							"value": "close"
						},
						{
							"key": "Server",
							"value": "GlassFish"
						}
					],
					"cookie": [],
					"body": "{\n    \"status\": \"BAD_REQUEST\",\n    \"messageText\": \"No region found for group ID WrongGroup and group hierarchy ID All\",\n    \"errorStatus\": \"400\"\n}"
				}
			]
		},
		{
			"name": "Broadcasty with auth - Region incomplete",
			"request": {
				"auth": {
					"type": "basic",
					"basic": [
						{
							"key": "password",
							"value": "123",
							"type": "string"
						},
						{
							"key": "username",
							"value": "akila.uyanwatta",
							"type": "string"
						}
					]
				},
				"method": "PUT",
				"header": [],
				"body": {
					"mode": "raw",
					"raw": "{\r\n\"changesSince\":\"2022-02-02T16:01:31.000+0000\",\r\n\"targets\":{\r\n\t\"topic\":\"Region\",\r\n\t\"regions\" : [\r\n\t{ \"groupId\": \"BE\" }]\r\n\t}\r\n}",
					"options": {
						"raw": {
							"language": "json"
						}
					}
				},
				"url": {
					"raw": "http://13.74.138.40:39833/WebRestApi/rest/broadcast/AU",
					"protocol": "http",
					"host": [
						"13",
						"74",
						"138",
						"40"
					],
					"port": "39833",
					"path": [
						"WebRestApi",
						"rest",
						"broadcast",
						"AU"
					]
				}
			},
			"response": [
				{
					"name": "Broadcasty with auth - Region incomplete",
					"originalRequest": {
						"method": "PUT",
						"header": [],
						"body": {
							"mode": "raw",
							"raw": "{\r\n\"changesSince\":\"2022-02-02T16:01:31.000+0000\",\r\n\"targets\":{\r\n\t\"topic\":\"Region\",\r\n\t\"regions\" : [\r\n\t{ \"groupId\": \"BE\" }]\r\n\t}\r\n}",
							"options": {
								"raw": {
									"language": "json"
								}
							}
						},
						"url": {
							"raw": "http://13.74.138.40:39833/WebRestApi/rest/broadcast/AU",
							"protocol": "http",
							"host": [
								"13",
								"74",
								"138",
								"40"
							],
							"port": "39833",
							"path": [
								"WebRestApi",
								"rest",
								"broadcast",
								"AU"
							]
						}
					},
					"status": "Bad Request",
					"code": 400,
					"_postman_previewlanguage": "json",
					"header": [
						{
							"key": "Cache-Control",
							"value": "private"
						},
						{
							"key": "Expires",
							"value": "Thu, 01 Jan 1970 00:00:00 GMT"
						},
						{
							"key": "Content-Type",
							"value": "application/typed+json"
						},
						{
							"key": "Content-Length",
							"value": "116"
						},
						{
							"key": "Date",
							"value": "Mon, 07 Feb 2022 08:06:13 GMT"
						},
						{
							"key": "Connection",
							"value": "close"
						},
						{
							"key": "Server",
							"value": "GlassFish"
						}
					],
					"cookie": [],
					"body": "{\n    \"status\": \"BAD_REQUEST\",\n    \"messageText\": \"No region found for group ID BE and group hierarchy ID \",\n    \"errorStatus\": \"400\"\n}"
				}
			]
		},
		{
			"name": "Broadcasty without auth",
			"request": {
				"auth": {
					"type": "noauth"
				},
				"method": "PUT",
				"header": [],
				"body": {
					"mode": "raw",
					"raw": "{\r\n\"changesSince\":\"2022-02-02T16:01:31.000+0000\",\r\n\"targets\":{\r\n\t\"topic\":\"Device\",\r\n\t\"devices\" : [\"TST-DK0032-LK\"]\r\n\t}\r\n}",
					"options": {
						"raw": {
							"language": "json"
						}
					}
				},
				"url": {
					"raw": "http://13.74.138.40:39833/WebRestApi/rest/broadcast/AU",
					"protocol": "http",
					"host": [
						"13",
						"74",
						"138",
						"40"
					],
					"port": "39833",
					"path": [
						"WebRestApi",
						"rest",
						"broadcast",
						"AU"
					]
				}
			},
			"response": [
				{
					"name": "Broadcasty without auth",
					"originalRequest": {
						"method": "PUT",
						"header": [],
						"body": {
							"mode": "raw",
							"raw": "{\r\n\"changesSince\":\"2022-02-02T16:01:31.000+0000\",\r\n\"targets\":{\r\n\t\"topic\":\"Device\",\r\n\t\"devices\" : [\"TST-DK0032-LK\"]\r\n\t}\r\n}",
							"options": {
								"raw": {
									"language": "json"
								}
							}
						},
						"url": {
							"raw": "http://13.74.138.40:39833/WebRestApi/rest/broadcast/AU",
							"protocol": "http",
							"host": [
								"13",
								"74",
								"138",
								"40"
							],
							"port": "39833",
							"path": [
								"WebRestApi",
								"rest",
								"broadcast",
								"AU"
							]
						}
					},
					"status": "Unauthorized",
					"code": 401,
					"_postman_previewlanguage": "json",
					"header": [
						{
							"key": "Cache-Control",
							"value": "private"
						},
						{
							"key": "Expires",
							"value": "Thu, 01 Jan 1970 00:00:00 GMT"
						},
						{
							"key": "Content-Type",
							"value": "application/json"
						},
						{
							"key": "Content-Length",
							"value": "96"
						},
						{
							"key": "Date",
							"value": "Mon, 07 Feb 2022 08:06:28 GMT"
						},
						{
							"key": "Keep-Alive",
							"value": "timeout=20"
						},
						{
							"key": "Connection",
							"value": "keep-alive"
						},
						{
							"key": "Server",
							"value": "GlassFish"
						}
					],
					"cookie": [],
					"body": "{\n    \"messageText\": \"Basic authentication header missing in the request.\",\n    \"errorCode\": \"Unauthorized\"\n}"
				}
			]
		}
	]
}
Go to Top