NEOLightShelfApi.postman_collection.json 7.2 KB
{
	"info": {
		"_postman_id": "e2a264df-d61f-48fa-938c-d5011ec87639",
		"name": "NEOLightShelfApi",
		"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
	},
	"item": [
		{
			"name": "api/open",
			"request": {
				"method": "POST",
				"header": [
					{
						"key": "content-type",
						"value": "application/json",
						"type": "default"
					}
				],
				"body": {
					"mode": "raw",
					"raw": "{\r\n    \"params\": \"statusA=red;1=red;2=green\"\r\n}",
					"options": {
						"raw": {
							"language": "json"
						}
					}
				},
				"url": {
					"raw": "{{hosturl}}/api/open",
					"host": [
						"{{hosturl}}"
					],
					"path": [
						"api",
						"open"
					]
				}
			},
			"response": [
				{
					"name": "open led index in 1000,1001,1002",
					"originalRequest": {
						"method": "POST",
						"header": [
							{
								"key": "content-type",
								"value": "application/json",
								"type": "default"
							}
						],
						"body": {
							"mode": "raw",
							"raw": "{\r\n    \"params\": \"1000;1001;1002\"\r\n}",
							"options": {
								"raw": {
									"language": "json"
								}
							}
						},
						"url": {
							"raw": "{{hosturl}}/api/open",
							"host": [
								"{{hosturl}}"
							],
							"path": [
								"api",
								"open"
							]
						}
					},
					"status": "OK",
					"code": 200,
					"_postman_previewlanguage": "html",
					"header": [
						{
							"key": "Content-Type",
							"value": "text/html; charset=utf-8"
						},
						{
							"key": "Content-Length",
							"value": "31"
						},
						{
							"key": "Server",
							"value": "Werkzeug/1.0.1 Python/3.10.2"
						},
						{
							"key": "Date",
							"value": "Wed, 30 Mar 2022 06:06:02 GMT"
						}
					],
					"cookie": [],
					"body": "{\"status\": 0, \"msg\": \"success\"}"
				},
				{
					"name": "open status light and led",
					"originalRequest": {
						"method": "POST",
						"header": [
							{
								"key": "content-type",
								"value": "application/json",
								"type": "default"
							}
						],
						"body": {
							"mode": "raw",
							"raw": "{\r\n    \"params\": \"statusA=red;statusB=green;1=red;2=green\"\r\n}",
							"options": {
								"raw": {
									"language": "json"
								}
							}
						},
						"url": {
							"raw": "{{hosturl}}/api/open",
							"host": [
								"{{hosturl}}"
							],
							"path": [
								"api",
								"open"
							]
						}
					},
					"status": "OK",
					"code": 200,
					"_postman_previewlanguage": "html",
					"header": [
						{
							"key": "Content-Type",
							"value": "text/html; charset=utf-8"
						},
						{
							"key": "Content-Length",
							"value": "31"
						},
						{
							"key": "Server",
							"value": "Werkzeug/1.0.1 Python/3.10.2"
						},
						{
							"key": "Date",
							"value": "Wed, 30 Mar 2022 06:06:02 GMT"
						}
					],
					"cookie": [],
					"body": "{\"status\": 0, \"msg\": \"success\"}"
				}
			]
		},
		{
			"name": "api/close",
			"request": {
				"method": "POST",
				"header": [
					{
						"key": "content-type",
						"value": "application/json",
						"type": "default"
					}
				],
				"body": {
					"mode": "raw",
					"raw": "{\r\n    \"params\": \"statusA=red;700;701;702\"\r\n}",
					"options": {
						"raw": {
							"language": "json"
						}
					}
				},
				"url": {
					"raw": "{{hosturl}}/api/close",
					"host": [
						"{{hosturl}}"
					],
					"path": [
						"api",
						"close"
					]
				}
			},
			"response": [
				{
					"name": "close all status light",
					"originalRequest": {
						"method": "POST",
						"header": [
							{
								"key": "content-type",
								"value": "application/json",
								"type": "default"
							}
						],
						"body": {
							"mode": "raw",
							"raw": "{\r\n    \"params\": \"statusA;statusB\"\r\n}",
							"options": {
								"raw": {
									"language": "json"
								}
							}
						},
						"url": {
							"raw": "{{hosturl}}/api/close",
							"host": [
								"{{hosturl}}"
							],
							"path": [
								"api",
								"close"
							]
						}
					},
					"_postman_previewlanguage": null,
					"header": null,
					"cookie": [],
					"body": null
				},
				{
					"name": "close led index in 1,2,3,100,101",
					"originalRequest": {
						"method": "POST",
						"header": [
							{
								"key": "content-type",
								"value": "application/json",
								"type": "default"
							}
						],
						"body": {
							"mode": "raw",
							"raw": "{\r\n    \"params\": \"1;2;3;100;101\"\r\n}",
							"options": {
								"raw": {
									"language": "json"
								}
							}
						},
						"url": {
							"raw": "{{hosturl}}/api/close",
							"host": [
								"{{hosturl}}"
							],
							"path": [
								"api",
								"close"
							]
						}
					},
					"status": "OK",
					"code": 200,
					"_postman_previewlanguage": "html",
					"header": [
						{
							"key": "Content-Type",
							"value": "text/html; charset=utf-8"
						},
						{
							"key": "Content-Length",
							"value": "31"
						},
						{
							"key": "Server",
							"value": "Werkzeug/1.0.1 Python/3.10.2"
						},
						{
							"key": "Date",
							"value": "Wed, 30 Mar 2022 06:05:56 GMT"
						}
					],
					"cookie": [],
					"body": "{\"status\": 0, \"msg\": \"success\"}"
				}
			]
		},
		{
			"name": "opAll",
			"request": {
				"method": "POST",
				"header": [
					{
						"key": "content-type",
						"value": "application/json",
						"type": "default"
					}
				],
				"body": {
					"mode": "raw",
					"raw": "{\r\n    \"op\":\"on\"\r\n}",
					"options": {
						"raw": {
							"language": "json"
						}
					}
				},
				"url": {
					"raw": "{{hosturl}}/opAll",
					"host": [
						"{{hosturl}}"
					],
					"path": [
						"opAll"
					]
				}
			},
			"response": [
				{
					"name": "close all led",
					"originalRequest": {
						"method": "POST",
						"header": [
							{
								"key": "content-type",
								"value": "application/json",
								"type": "default"
							}
						],
						"body": {
							"mode": "raw",
							"raw": "{\r\n    \"op\":\"off\"\r\n}",
							"options": {
								"raw": {
									"language": "json"
								}
							}
						},
						"url": {
							"raw": "{{hosturl}}/opAll",
							"host": [
								"{{hosturl}}"
							],
							"path": [
								"opAll"
							]
						}
					},
					"status": "OK",
					"code": 200,
					"_postman_previewlanguage": "html",
					"header": [
						{
							"key": "Content-Type",
							"value": "text/html; charset=utf-8"
						},
						{
							"key": "Content-Length",
							"value": "13"
						},
						{
							"key": "Server",
							"value": "Werkzeug/1.0.1 Python/3.10.2"
						},
						{
							"key": "Date",
							"value": "Wed, 30 Mar 2022 06:06:07 GMT"
						}
					],
					"cookie": [],
					"body": "{\"status\": 0}"
				}
			]
		}
	],
	"event": [
		{
			"listen": "prerequest",
			"script": {
				"type": "text/javascript",
				"exec": [
					""
				]
			}
		},
		{
			"listen": "test",
			"script": {
				"type": "text/javascript",
				"exec": [
					""
				]
			}
		}
	],
	"variable": [
		{
			"key": "hosturl",
			"value": "http://127.0.0.1:5000",
			"type": "default"
		}
	]
}