{
	"info": {
		"_postman_id": "c3af25a0-a460-46c8-89ae-ec742a9c09ca",
		"name": "edgex-1.2",
		"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json",
		"_exporter_id": "15354547"
	},
	"item": [
		{
			"name": "valuedescriptor-humidity",
			"request": {
				"method": "POST",
				"header": [],
				"body": {
					"mode": "raw",
					"raw": "{\n\t\"name\": \"humidity\",\n\t\"description\": \"Ambient humidity in percent\",\n\t\"min\": \"0\",\n\t\"max\": \"100\",\n\t\"type\": \"Int64\",\n\t\"uomLabel\": \"humidity\",\n\t\"defaultValue\": \"0\",\n\t\"formatting\": \"%s\",\n\t\"labels\": [\n\t\t\"environment\",\n\t\t\"humidity\"\n\t]\n}",
					"options": {
						"raw": {
							"language": "json"
						}
					}
				},
				"url": {
					"raw": "http://<edgex_ip>:48080/api/v1/valuedescriptor",
					"protocol": "http",
					"host": [
						"<edgex_ip>"
					],
					"port": "48080",
					"path": [
						"api",
						"v1",
						"valuedescriptor"
					]
				}
			},
			"response": []
		},
		{
			"name": "valuedescriptor-temperature",
			"request": {
				"method": "POST",
				"header": [],
				"body": {
					"mode": "raw",
					"raw": "{\n\t\"name\": \"temperature\",\n\t\"description\": \"Ambient temperature in Celsius\",\n\t\"min\": \"-50\",\n\t\"max\": \"100\",\n\t\"type\": \"Int64\",\n\t\"uomLabel\": \"temperature\",\n\t\"defaultValue\": \"0\",\n\t\"formatting\": \"%s\",\n\t\"labels\": [\n\t\t\"environment\",\n\t\t\"temperature\"\n\t]\n}",
					"options": {
						"raw": {
							"language": "json"
						}
					}
				},
				"url": {
					"raw": "http://<edgex_ip>:48080/api/v1/valuedescriptor",
					"protocol": "http",
					"host": [
						"<edgex_ip>"
					],
					"port": "48080",
					"path": [
						"api",
						"v1",
						"valuedescriptor"
					]
				}
			},
			"response": []
		},
		{
			"name": "read valuedescriptor",
			"request": {
				"method": "GET",
				"header": [],
				"url": {
					"raw": "http://<edgex_ip>:48080/api/v1/valuedescriptor",
					"protocol": "http",
					"host": [
						"<edgex_ip>"
					],
					"port": "48080",
					"path": [
						"api",
						"v1",
						"valuedescriptor"
					]
				}
			},
			"response": []
		},
		{
			"name": "enroll deviceprofile",
			"request": {
				"method": "POST",
				"header": [],
				"body": {
					"mode": "formdata",
					"formdata": [
						{
							"key": "file",
							"type": "file",
							"src": "sensorClusterDeviceProfile.yaml"
						}
					]
				},
				"url": {
					"raw": "http://<edgex_ip>:48081/api/v1/deviceprofile/uploadfile",
					"protocol": "http",
					"host": [
						"<edgex_ip>"
					],
					"port": "48081",
					"path": [
						"api",
						"v1",
						"deviceprofile",
						"uploadfile"
					]
				}
			},
			"response": []
		},
		{
			"name": "enroll device",
			"request": {
				"method": "POST",
				"header": [],
				"body": {
					"mode": "raw",
					"raw": "{\n\t\"name\": \"Temp_and_Humidity_sensor_cluster_01\",\n\t\"description\": \"Raspberry Pi sensor cluster\",\n\t\"adminState\": \"unlocked\",\n\t\"operatingState\": \"enabled\",\n\t\"protocols\": {\n\t\t\"example\": {\n\t\t\t\"host\": \"dummy\",\n\t\t\t\"port\": \"1234\",\n\t\t\t\"unitID\": \"1\"\n\t\t}\n\t},\n\t\"labels\": [\n\t\t\"Humidity sensor\",\n\t\t\"Temperature sensor\",\n\t\t\"DHT11\"\n\t],\n\t\"location\": \"Seoul\",\n\t\"service\": {\n\t\t\"name\": \"edgex-device-rest\"\n\t},\n\t\"profile\": {\n\t\t\"name\": \"SensorCluster\"\n\t}\n}",
					"options": {
						"raw": {
							"language": "json"
						}
					}
				},
				"url": {
					"raw": "http://<edgex_ip>:48081/api/v1/device",
					"protocol": "http",
					"host": [
						"<edgex_ip>"
					],
					"port": "48081",
					"path": [
						"api",
						"v1",
						"device"
					]
				}
			},
			"response": []
		},
		{
			"name": "temperature test",
			"request": {
				"method": "POST",
				"header": [],
				"body": {
					"mode": "raw",
					"raw": "35"
				},
				"url": {
					"raw": "http://<edgex_ip>:49986/api/v1/resource/Temp_and_Humidity_sensor_cluster_01/temperature",
					"protocol": "http",
					"host": [
						"<edgex_ip>"
					],
					"port": "49986",
					"path": [
						"api",
						"v1",
						"resource",
						"Temp_and_Humidity_sensor_cluster_01",
						"temperature"
					]
				}
			},
			"response": []
		},
		{
			"name": "reading sensordata",
			"request": {
				"method": "GET",
				"header": [],
				"url": {
					"raw": "http://<edgex_ip>:48080/api/v1/reading",
					"protocol": "http",
					"host": [
						"<edgex_ip>"
					],
					"port": "48080",
					"path": [
						"api",
						"v1",
						"reading"
					]
				}
			},
			"response": []
		},
		{
			"name": "reading event count",
			"request": {
				"method": "GET",
				"header": [],
				"url": {
					"raw": "http://<edgex_ip>:48080/api/v1/event/count",
					"protocol": "http",
					"host": [
						"<edgex_ip>"
					],
					"port": "48080",
					"path": [
						"api",
						"v1",
						"event",
						"count"
					]
				}
			},
			"response": []
		},
		{
			"name": "create streams",
			"request": {
				"method": "POST",
				"header": [],
				"body": {
					"mode": "raw",
					"raw": "{\n\t\"sql\": \"create stream edgex_tutorial() WITH (FORMAT=\\\"JSON\\\", TYPE=\\\"edgex\\\")\"\n}",
					"options": {
						"raw": {
							"language": "json"
						}
					}
				},
				"url": {
					"raw": "http://<edgex_ip>:48075/streams",
					"protocol": "http",
					"host": [
						"<edgex_ip>"
					],
					"port": "48075",
					"path": [
						"streams"
					]
				}
			},
			"response": []
		},
		{
			"name": "create rules",
			"request": {
				"method": "POST",
				"header": [],
				"body": {
					"mode": "raw",
					"raw": "{\n\t\"id\": \"edgex_tutorial\",\n\t\"sql\": \"SELECT * FROM edgex_tutorial\",\n\t\"actions\": [\n\t\t{\n\t\t\"mqtt\": {\n\t\t\t\"server\": \"tcp://192.168.3.101:10101\",\n\t\t\t\"topic\": \"temphum\",\n\t\t\t\"username\": \"cccr\",\n\t\t\t\"password\": \"cccrtest\",\n\t\t\t\"clientId\": \"vraptor\"\n\t\t}\n\t},\n\t{\n\t\t\"log\":{}\n\t}\n\t]\n}",
					"options": {
						"raw": {
							"language": "json"
						}
					}
				},
				"url": {
					"raw": "http://<edgex_ip>:48075/rules",
					"protocol": "http",
					"host": [
						"<edgex_ip>"
					],
					"port": "48075",
					"path": [
						"rules"
					]
				}
			},
			"response": []
		}
	]
}