{
	"info": {
		"_postman_id": "67608b5e-d423-4e7d-800e-b4bdc8f8a6c4",
		"name": "broadlink-bridge (Query String Auth)",
		"description": "Broadlink Bridge\nhttps://github.com/401unauthorized/broadlink-bridge\n\nCopyright 2020 Stephen Mendez\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.",
		"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
	},
	"item": [
		{
			"name": "Generic",
			"item": [
				{
					"name": "Index",
					"request": {
						"method": "GET",
						"header": [],
						"url": {
							"raw": "{{protocol}}://{{base_url}}:{{port}}/",
							"protocol": "{{protocol}}",
							"host": [
								"{{base_url}}"
							],
							"port": "{{port}}",
							"path": [
								""
							]
						}
					},
					"response": []
				},
				{
					"name": "Health",
					"request": {
						"method": "GET",
						"header": [],
						"url": {
							"raw": "{{protocol}}://{{base_url}}:{{port}}/health/",
							"protocol": "{{protocol}}",
							"host": [
								"{{base_url}}"
							],
							"port": "{{port}}",
							"path": [
								"health",
								""
							]
						}
					},
					"response": []
				},
				{
					"name": "Version",
					"request": {
						"method": "GET",
						"header": [],
						"url": {
							"raw": "{{protocol}}://{{base_url}}:{{port}}/version/",
							"protocol": "{{protocol}}",
							"host": [
								"{{base_url}}"
							],
							"port": "{{port}}",
							"path": [
								"version",
								""
							]
						}
					},
					"response": []
				},
				{
					"name": "Stats",
					"request": {
						"method": "GET",
						"header": [],
						"url": {
							"raw": "{{protocol}}://{{base_url}}:{{port}}/stats/",
							"protocol": "{{protocol}}",
							"host": [
								"{{base_url}}"
							],
							"port": "{{port}}",
							"path": [
								"stats",
								""
							]
						}
					},
					"response": []
				}
			],
			"event": [
				{
					"listen": "prerequest",
					"script": {
						"id": "e13c804e-d154-4eac-b87e-0784ece68be0",
						"type": "text/javascript",
						"exec": [
							""
						]
					}
				},
				{
					"listen": "test",
					"script": {
						"id": "623583e5-1e29-469f-83aa-af08f43b34fc",
						"type": "text/javascript",
						"exec": [
							""
						]
					}
				}
			],
			"protocolProfileBehavior": {}
		},
		{
			"name": "Blasters",
			"item": [
				{
					"name": "Read Blasters",
					"request": {
						"method": "GET",
						"header": [],
						"url": {
							"raw": "{{protocol}}://{{base_url}}:{{port}}/blasters/",
							"protocol": "{{protocol}}",
							"host": [
								"{{base_url}}"
							],
							"port": "{{port}}",
							"path": [
								"blasters",
								""
							]
						}
					},
					"response": []
				},
				{
					"name": "Create Blaster",
					"request": {
						"method": "POST",
						"header": [
							{
								"key": "Content-Type",
								"name": "Content-Type",
								"type": "text",
								"value": "application/json"
							}
						],
						"body": {
							"mode": "raw",
							"raw": "{\n    \"name\": \"Test Blaster\",\n    \"type\": \"148340\",\n    \"address\": \"192.168.1.2\",\n    \"port\": 80,\n    \"mac\": \"AA:BB:CC:DD:EE:FF\"\n}",
							"options": {
								"raw": {
									"language": "json"
								}
							}
						},
						"url": {
							"raw": "{{protocol}}://{{base_url}}:{{port}}/blasters/",
							"protocol": "{{protocol}}",
							"host": [
								"{{base_url}}"
							],
							"port": "{{port}}",
							"path": [
								"blasters",
								""
							]
						}
					},
					"response": []
				},
				{
					"name": "Read Blaster",
					"request": {
						"method": "GET",
						"header": [],
						"url": {
							"raw": "{{protocol}}://{{base_url}}:{{port}}/blasters/pMtEfSYMmg/",
							"protocol": "{{protocol}}",
							"host": [
								"{{base_url}}"
							],
							"port": "{{port}}",
							"path": [
								"blasters",
								"pMtEfSYMmg",
								""
							]
						}
					},
					"response": []
				},
				{
					"name": "Update Blaster",
					"request": {
						"method": "PUT",
						"header": [
							{
								"key": "Content-Type",
								"name": "Content-Type",
								"type": "text",
								"value": "application/json"
							}
						],
						"body": {
							"mode": "raw",
							"raw": "{\n    \"name\": \"Main Blaster\"\n}",
							"options": {
								"raw": {
									"language": "json"
								}
							}
						},
						"url": {
							"raw": "{{protocol}}://{{base_url}}:{{port}}/blasters/pMtEfSYMmg/",
							"protocol": "{{protocol}}",
							"host": [
								"{{base_url}}"
							],
							"port": "{{port}}",
							"path": [
								"blasters",
								"pMtEfSYMmg",
								""
							]
						}
					},
					"response": []
				},
				{
					"name": "Delete Blaster",
					"request": {
						"method": "DELETE",
						"header": [
							{
								"key": "Content-Type",
								"name": "Content-Type",
								"type": "text",
								"value": "application/json"
							}
						],
						"url": {
							"raw": "{{protocol}}://{{base_url}}:{{port}}/blasters/pMtEfSYMmg/",
							"protocol": "{{protocol}}",
							"host": [
								"{{base_url}}"
							],
							"port": "{{port}}",
							"path": [
								"blasters",
								"pMtEfSYMmg",
								""
							]
						}
					},
					"response": []
				}
			],
			"event": [
				{
					"listen": "prerequest",
					"script": {
						"id": "678dfe51-850a-4080-931b-5bd27d502f6a",
						"type": "text/javascript",
						"exec": [
							""
						]
					}
				},
				{
					"listen": "test",
					"script": {
						"id": "bfa1b496-d0f3-4b93-93fb-56df7b072837",
						"type": "text/javascript",
						"exec": [
							""
						]
					}
				}
			],
			"protocolProfileBehavior": {}
		},
		{
			"name": "Devices",
			"item": [
				{
					"name": "Read Blaster's Devices",
					"request": {
						"method": "GET",
						"header": [],
						"url": {
							"raw": "{{protocol}}://{{base_url}}:{{port}}/blasters/pMtEfSYMmg/devices/",
							"protocol": "{{protocol}}",
							"host": [
								"{{base_url}}"
							],
							"port": "{{port}}",
							"path": [
								"blasters",
								"pMtEfSYMmg",
								"devices",
								""
							]
						}
					},
					"response": []
				},
				{
					"name": "Create Blaster's Device",
					"request": {
						"method": "POST",
						"header": [
							{
								"key": "Content-Type",
								"name": "Content-Type",
								"value": "application/json",
								"type": "text"
							}
						],
						"body": {
							"mode": "raw",
							"raw": "{\n    \"name\": \"Basement Projector\",\n    \"type\": \"PROJECTOR\"\n}",
							"options": {
								"raw": {
									"language": "json"
								}
							}
						},
						"url": {
							"raw": "{{protocol}}://{{base_url}}:{{port}}/blasters/pMtEfSYMmg/devices/",
							"protocol": "{{protocol}}",
							"host": [
								"{{base_url}}"
							],
							"port": "{{port}}",
							"path": [
								"blasters",
								"pMtEfSYMmg",
								"devices",
								""
							]
						}
					},
					"response": []
				},
				{
					"name": "Read Blaster's Device",
					"request": {
						"method": "GET",
						"header": [],
						"url": {
							"raw": "{{protocol}}://{{base_url}}:{{port}}/blasters/pMtEfSYMmg/devices/GZFnCHSDM/",
							"protocol": "{{protocol}}",
							"host": [
								"{{base_url}}"
							],
							"port": "{{port}}",
							"path": [
								"blasters",
								"pMtEfSYMmg",
								"devices",
								"GZFnCHSDM",
								""
							]
						}
					},
					"response": []
				},
				{
					"name": "Update Blaster's Device",
					"request": {
						"method": "PUT",
						"header": [
							{
								"key": "Content-Type",
								"name": "Content-Type",
								"value": "application/json",
								"type": "text"
							}
						],
						"body": {
							"mode": "raw",
							"raw": "{\n    \"name\": \"Basement Wall Projector\"\n}",
							"options": {
								"raw": {
									"language": "json"
								}
							}
						},
						"url": {
							"raw": "{{protocol}}://{{base_url}}:{{port}}/blasters/pMtEfSYMmg/devices/GZFnCHSDM/",
							"protocol": "{{protocol}}",
							"host": [
								"{{base_url}}"
							],
							"port": "{{port}}",
							"path": [
								"blasters",
								"pMtEfSYMmg",
								"devices",
								"GZFnCHSDM",
								""
							]
						}
					},
					"response": []
				},
				{
					"name": "Delete Blaster's Device",
					"request": {
						"method": "DELETE",
						"header": [],
						"url": {
							"raw": "{{protocol}}://{{base_url}}:{{port}}/blasters/pMtEfSYMmg/devices/GZFnCHSDM/",
							"protocol": "{{protocol}}",
							"host": [
								"{{base_url}}"
							],
							"port": "{{port}}",
							"path": [
								"blasters",
								"pMtEfSYMmg",
								"devices",
								"GZFnCHSDM",
								""
							]
						}
					},
					"response": []
				}
			],
			"event": [
				{
					"listen": "prerequest",
					"script": {
						"id": "554ec7a9-92ea-4e71-af2e-b3088950bd38",
						"type": "text/javascript",
						"exec": [
							""
						]
					}
				},
				{
					"listen": "test",
					"script": {
						"id": "a93009f1-fe94-4f3a-b4b6-40629959338b",
						"type": "text/javascript",
						"exec": [
							""
						]
					}
				}
			],
			"protocolProfileBehavior": {}
		},
		{
			"name": "Commands",
			"item": [
				{
					"name": "Read Blaster's Device's Commands",
					"request": {
						"method": "GET",
						"header": [],
						"url": {
							"raw": "{{protocol}}://{{base_url}}:{{port}}/blasters/pMtEfSYMmg/devices/GZFnCHSDM/commands/",
							"protocol": "{{protocol}}",
							"host": [
								"{{base_url}}"
							],
							"port": "{{port}}",
							"path": [
								"blasters",
								"pMtEfSYMmg",
								"devices",
								"GZFnCHSDM",
								"commands",
								""
							]
						}
					},
					"response": []
				},
				{
					"name": "Create Blaster's Device's Command",
					"request": {
						"method": "POST",
						"header": [
							{
								"key": "Content-Type",
								"name": "Content-Type",
								"value": "application/json",
								"type": "text"
							}
						],
						"body": {
							"mode": "raw",
							"raw": "{\n    \"command\": \"power on\",\n    \"repeat\": 0,\n    \"delay\": 0\n}",
							"options": {
								"raw": {
									"language": "json"
								}
							}
						},
						"url": {
							"raw": "{{protocol}}://{{base_url}}:{{port}}/blasters/pMtEfSYMmg/devices/GZFnCHSDM/commands/",
							"protocol": "{{protocol}}",
							"host": [
								"{{base_url}}"
							],
							"port": "{{port}}",
							"path": [
								"blasters",
								"pMtEfSYMmg",
								"devices",
								"GZFnCHSDM",
								"commands",
								""
							]
						}
					},
					"response": []
				},
				{
					"name": "Read Blaster's Device's Command",
					"request": {
						"method": "GET",
						"header": [],
						"url": {
							"raw": "{{protocol}}://{{base_url}}:{{port}}/blasters/pMtEfSYMmg/devices/GZFnCHSDM/commands/power on/",
							"protocol": "{{protocol}}",
							"host": [
								"{{base_url}}"
							],
							"port": "{{port}}",
							"path": [
								"blasters",
								"pMtEfSYMmg",
								"devices",
								"GZFnCHSDM",
								"commands",
								"power on",
								""
							]
						}
					},
					"response": []
				},
				{
					"name": "Update Blaster's Device's Command",
					"request": {
						"method": "PUT",
						"header": [
							{
								"key": "Content-Type",
								"name": "Content-Type",
								"type": "text",
								"value": "application/json"
							}
						],
						"body": {
							"mode": "raw",
							"raw": "{\n    \"repeat\": 1,\n    \"delay\": 0\n}",
							"options": {
								"raw": {
									"language": "json"
								}
							}
						},
						"url": {
							"raw": "{{protocol}}://{{base_url}}:{{port}}/blasters/pMtEfSYMmg/devices/GZFnCHSDM/commands/power on/",
							"protocol": "{{protocol}}",
							"host": [
								"{{base_url}}"
							],
							"port": "{{port}}",
							"path": [
								"blasters",
								"pMtEfSYMmg",
								"devices",
								"GZFnCHSDM",
								"commands",
								"power on",
								""
							]
						}
					},
					"response": []
				},
				{
					"name": "Delete Blaster's Device's Command",
					"request": {
						"method": "DELETE",
						"header": [],
						"url": {
							"raw": "{{protocol}}://{{base_url}}:{{port}}/blasters/pMtEfSYMmg/devices/GZFnCHSDM/commands/power on/",
							"protocol": "{{protocol}}",
							"host": [
								"{{base_url}}"
							],
							"port": "{{port}}",
							"path": [
								"blasters",
								"pMtEfSYMmg",
								"devices",
								"GZFnCHSDM",
								"commands",
								"power on",
								""
							]
						}
					},
					"response": []
				}
			],
			"event": [
				{
					"listen": "prerequest",
					"script": {
						"id": "0df749c6-c3b8-48bb-9cd9-fb4cc7d1c7cd",
						"type": "text/javascript",
						"exec": [
							""
						]
					}
				},
				{
					"listen": "test",
					"script": {
						"id": "426ccb20-1d07-4053-9d95-fdb4e28c01bb",
						"type": "text/javascript",
						"exec": [
							""
						]
					}
				}
			],
			"protocolProfileBehavior": {}
		},
		{
			"name": "Emit",
			"item": [
				{
					"name": "Execute Blaster's Device's Command",
					"request": {
						"method": "GET",
						"header": [],
						"url": {
							"raw": "{{protocol}}://{{base_url}}:{{port}}/blasters/pMtEfSYMmg/devices/GZFnCHSDM/commands/power on/emit",
							"protocol": "{{protocol}}",
							"host": [
								"{{base_url}}"
							],
							"port": "{{port}}",
							"path": [
								"blasters",
								"pMtEfSYMmg",
								"devices",
								"GZFnCHSDM",
								"commands",
								"power on",
								"emit"
							]
						}
					},
					"response": []
				},
				{
					"name": "Execute Blaster's Device's Command",
					"request": {
						"method": "POST",
						"header": [],
						"url": {
							"raw": "{{protocol}}://{{base_url}}:{{port}}/blasters/pMtEfSYMmg/devices/GZFnCHSDM/commands/power on/emit",
							"protocol": "{{protocol}}",
							"host": [
								"{{base_url}}"
							],
							"port": "{{port}}",
							"path": [
								"blasters",
								"pMtEfSYMmg",
								"devices",
								"GZFnCHSDM",
								"commands",
								"power on",
								"emit"
							]
						}
					},
					"response": []
				}
			],
			"event": [
				{
					"listen": "prerequest",
					"script": {
						"id": "0854c76c-44a8-486b-971a-65847bb88e06",
						"type": "text/javascript",
						"exec": [
							""
						]
					}
				},
				{
					"listen": "test",
					"script": {
						"id": "03ea4105-8002-424d-9d45-ec37e8d871ef",
						"type": "text/javascript",
						"exec": [
							""
						]
					}
				}
			],
			"protocolProfileBehavior": {}
		}
	],
	"auth": {
		"type": "apikey",
		"apikey": [
			{
				"key": "in",
				"value": "query",
				"type": "string"
			},
			{
				"key": "value",
				"value": "<insert-API-token-here>",
				"type": "string"
			},
			{
				"key": "key",
				"value": "token",
				"type": "string"
			}
		]
	},
	"event": [
		{
			"listen": "prerequest",
			"script": {
				"id": "bdd90041-dea9-4c3c-91e1-73534a909f23",
				"type": "text/javascript",
				"exec": [
					""
				]
			}
		},
		{
			"listen": "test",
			"script": {
				"id": "898b8976-d593-4343-a357-e10b1e952e5e",
				"type": "text/javascript",
				"exec": [
					""
				]
			}
		}
	],
	"variable": [
		{
			"id": "72f2bdad-f2f3-45ce-bcd2-c1e754476835",
			"key": "base_url",
			"value": "127.0.0.1",
			"type": "string"
		},
		{
			"id": "2d69b4a2-2bb1-46fd-be6b-abde2363d599",
			"key": "port",
			"value": "3000",
			"type": "string"
		},
		{
			"id": "180d13c1-55cc-4638-b067-dbaa981532fa",
			"key": "protocol",
			"value": "http",
			"type": "string"
		}
	],
	"protocolProfileBehavior": {}
}