{ "info": { "_postman_id": "0b183187-965e-4326-95aa-e2e8ef123b9a", "name": "ISCom API", "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json", "_exporter_id": "18817893" }, "item": [ { "name": "Camera", "item": [ { "name": "Snapshot", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [], "url": { "raw": "{{base_url}}/camera/snapshot", "host": [ "{{base_url}}" ], "path": [ "camera", "snapshot" ] } }, "response": [] }, { "name": "MD - Получение настроек детектора движения", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});", "pm.test(\"Response time is less than 200ms\", function () {", " pm.expect(pm.response.responseTime).to.be.below(200);", "});", "console.log(pm.response.json());" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [], "url": { "raw": "{{base_url}}/camera/md", "host": [ "{{base_url}}" ], "path": [ "camera", "md" ] } }, "response": [] }, { "name": "MD - Редактирование настроек", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});", "pm.test(\"Response time is less than 200ms\", function () {", " pm.expect(pm.response.responseTime).to.be.below(200);", "});" ], "type": "text/javascript" } } ], "request": { "method": "PUT", "header": [], "body": { "mode": "raw", "raw": "{\n \"md_enable\": true,\n \"md_area_thr\": 100008,\n \"md_send_snapshot_enable\": true,\n \"md_send_snapshot_interval\": 1,\n \"md_rects_enable\": true,\n \"md_logs_enable\": true,\n \"md_rect_color\": \"0x0FFFFF\",\n \"md_frame_int\": 9,\n \"md_frame_shift\": 1,\n \"md_max_rect_ratio\": 7.15,\n \"snap_send_url\": \"http://10.100.11.134:5050/obereg_motion_detect\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/camera/md", "host": [ "{{base_url}}" ], "path": [ "camera", "md" ] } }, "response": [] }, { "name": "Picture", "request": { "method": "GET", "header": [], "url": { "raw": "{{base_url}}/camera/picture", "host": [ "{{base_url}}" ], "path": [ "camera", "picture" ] } }, "response": [] }, { "name": "Picture", "request": { "method": "PUT", "header": [], "body": { "mode": "raw", "raw": "{\n \"Image\": {\n \"Flip\": true,\n \"Mirror\": true\n },\n \"Exposure\": {\n \"Mode\": \"auto\",\n \"ExpTime\": 33274,\n \"AGain\": 1059,\n \"DGain\": 1024,\n \"Exposure\": 74685,\n \"ISO\": 110,\n \"ExpTimeRange\": {\n \"Min\": 89,\n \"Max\": 1940053\n },\n \"AGainRange\": {\n \"Min\": 1024.0,\n \"Max\": 22924.0\n },\n \"DGainRange\": {\n \"Min\": 1024.0,\n \"Max\": 128914.0\n },\n \"ISPDGainRange\": {\n \"Min\": 1024.0,\n \"Max\": 2048.0\n },\n \"SysGainRange\": {\n \"Min\": 1024.0,\n \"Max\": 4096.0\n },\n \"stAEDelayAttr\": {\n \"u16BDF\": 8,\n \"u16WDF\": 0\n },\n \"u32GainThreshold\": 5771923,\n \"u8Speed\": 64,\n \"u16BlackSpeedBias\": 144,\n \"u8Tolerance\": 2,\n \"u8Compensation\": 56,\n \"u16EVBias\": 1024,\n \"enAEStrategyMode\": 0,\n \"u16HistRatioSlope\": 128,\n \"u8MaxHistOffset\": 16,\n \"enAEMode\": 1,\n \"bManualExpValue\": false,\n \"u32ExpValue\": 65535,\n \"enFSWDRMode\": 0,\n \"bWDRQuick\": false,\n \"u16ISOCalCoef\": 256.0\n },\n \"Sharpness\": {\n \"Enable (ReadOnly)\": true,\n \"u8SkinUmin\": 110,\n \"u8SkinUmax\": 128,\n \"u8SkinVmin\": 128,\n \"u8SkinVmax\": 149,\n \"Mode\": \"manual\",\n \"au8LumaWgt\": [\n 31,\n 31,\n 31,\n 31,\n 31,\n 31,\n 31,\n 31,\n 31,\n 31,\n 31,\n 31,\n 31,\n 31,\n 31,\n 31,\n 31,\n 31,\n 31,\n 31,\n 31,\n 31,\n 31,\n 31,\n 31,\n 31,\n 31,\n 31,\n 31,\n 31,\n 31,\n 31\n ],\n \"au16TextureStr\": [\n 275,\n 290,\n 304,\n 318,\n 328,\n 335,\n 342,\n 347,\n 350,\n 351,\n 353,\n 253,\n 253,\n 253,\n 253,\n 253,\n 351,\n 348,\n 345,\n 341,\n 337,\n 332,\n 328,\n 323,\n 319,\n 314,\n 309,\n 303,\n 298,\n 293,\n 289,\n 286\n ],\n \"au16EdgeStr\": [\n 250,\n 250,\n 250,\n 250,\n 250,\n 250,\n 250,\n 250,\n 250,\n 249,\n 249,\n 249,\n 248,\n 248,\n 248,\n 247,\n 247,\n 246,\n 245,\n 244,\n 243,\n 242,\n 241,\n 241,\n 240,\n 239,\n 238,\n 238,\n 237,\n 236,\n 235,\n 235\n ],\n \"u16TextureFreq\": 183,\n \"u16EdgeFreq\": 0,\n \"u8OverShoot\": 13,\n \"u8UnderShoot\": 58,\n \"u8ShootSupStr\": 3,\n \"u8ShootSupAdj\": 3,\n \"u8DetailCtrl\": 139,\n \"u8DetailCtrlThr\": 255,\n \"u8EdgeFiltStr\": 0,\n \"u8EdgeFiltMaxCap\": 26,\n \"u8RGain\": 28,\n \"u8GGain\": 31,\n \"u8BGain\": 28,\n \"u8SkinGain\": 25,\n \"u16MaxSharpGain\": 67,\n \"u8WeakDetailGain\": 7\n }\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/camera/picture", "host": [ "{{base_url}}" ], "path": [ "camera", "picture" ] } }, "response": [] }, { "name": "Picture NEW", "request": { "method": "GET", "header": [], "url": { "raw": "{{base_url}}/v2/camera/picture", "host": [ "{{base_url}}" ], "path": [ "v2", "camera", "picture" ] } }, "response": [] }, { "name": "Picture edit NEW", "request": { "method": "PUT", "header": [], "body": { "mode": "raw", "raw": "{\n\n \"u8Contr\": 42,\n\n \"u8Luma\": 50,\n\n \"u8Satu\": 50,\n\n \"u8Hue\": 50,\n\n \"wb\": {\n\n \"u8RGStrength\": 128,\n\n \"u8BGStrength\": 128\n\n },\n\n \"dehaze\": {\n\n \"u8strength\": 127\n\n },\n\n \"drc\": {\n\n \"u16Strength\": 100,\n\n \"u16StrengthMax\": 127,\n\n \"u16StrengthMin\": 1\n\n },\n\n \"iso\": {\n\n \"index\": 0,\n\n \"params\": {\n\n \"0\": {\n\n \"sharpness\": {\n\n \"au16TextureFreq\": 183,\n\n \"au16EdgeFreq\": 0,\n\n \"au8OverShoot\": 13,\n\n \"au8UnderShoot\": 58,\n\n \"au8DetailCtrl\": 163,\n\n \"au8RGain\": 28,\n\n \"au8GGain\": 31,\n\n \"au8BGain\": 28,\n\n \"au8SkinGain\": 25,\n\n \"au16MaxSharpGain\": 63\n\n }\n\n }\n }\n }\n}\n\n ", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/v2/camera/picture", "host": [ "{{base_url}}" ], "path": [ "v2", "camera", "picture" ] } }, "response": [] }, { "name": "Audio info", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [], "url": { "raw": "{{base_url}}/camera/audio", "host": [ "{{base_url}}" ], "path": [ "camera", "audio" ] } }, "response": [] }, { "name": "Audio edit", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});" ], "type": "text/javascript" } } ], "request": { "method": "PUT", "header": [], "body": { "mode": "raw", "raw": "{\n \"aac_enable\": true\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/camera/audio", "host": [ "{{base_url}}" ], "path": [ "camera", "audio" ] } }, "response": [] }, { "name": "OSD v2 info", "request": { "method": "GET", "header": [], "url": { "raw": "{{base_url}}/v2/camera/osd", "host": [ "{{base_url}}" ], "path": [ "v2", "camera", "osd" ] } }, "response": [] }, { "name": "OSD v2 edit", "request": { "method": "PUT", "header": [], "body": { "mode": "raw", "raw": "[\n {\n \"size\": 1,\n \"text\": \"Улица Колотушкина дом Плюшкина квартира 5\",\n \"color\": \"0xFFFFFF\",\n \"date\": {\n \"enable\": false,\n \"format\": \"%d %m %y\"\n },\n \"time\": {\n \"enable\": false,\n \"format\": \"%r\"\n },\n \"position\": {\n \"x\": 20,\n \"y\": 50\n },\n \"background\": {\n \"enable\": false,\n \"color\": \"0x000000\"\n }\n },\n {\n \"size\": 1,\n \"text\": \"ulitsa Pushkina\",\n \"color\": \"0x000000\",\n \"date\": {\n \"enable\": true,\n \"format\": \"%D\"\n },\n \"time\": {\n \"enable\": true,\n \"format\": \"%T\"\n },\n \"position\": {\n \"x\": 20,\n \"y\": 100\n },\n \"background\": {\n \"enable\": true,\n \"color\": \"0x00FA9A\"\n }\n },\n {\n \"size\": 2,\n \"text\": \"Улица Колотушкина дом Плюшкина\",\n \"color\": \"0xFF0000\",\n \"date\": {\n \"enable\": false,\n \"format\": \"%d %m %y\"\n },\n \"time\": {\n \"enable\": false,\n \"format\": \"%R\"\n },\n \"position\": {\n \"x\": 20,\n \"y\": 150\n },\n \"background\": {\n \"enable\": true,\n \"color\": \"0x000000\"\n }\n }\n]", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/v2/camera/osd", "host": [ "{{base_url}}" ], "path": [ "v2", "camera", "osd" ] } }, "response": [] }, { "name": "White/black edit", "request": { "method": "PUT", "header": [], "body": { "mode": "raw", "raw": "{\n \"state\": true,\n \"threshold\": {\n \"exposureCurrent\": 80979,\n \"exposureLight\": 90000,\n \"exposureNight\": 220000\n }\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/camera/whiteBlack", "host": [ "{{base_url}}" ], "path": [ "camera", "whiteBlack" ] } }, "response": [] }, { "name": "White/black info", "request": { "method": "GET", "header": [], "url": { "raw": "{{base_url}}/camera/whiteBlack", "host": [ "{{base_url}}" ], "path": [ "camera", "whiteBlack" ] } }, "response": [] }, { "name": "Codec", "request": { "method": "GET", "header": [], "url": { "raw": "{{base_url}}/camera/codec", "host": [ "{{base_url}}" ], "path": [ "camera", "codec" ] } }, "response": [] }, { "name": "Codec", "request": { "method": "PUT", "header": [], "body": { "mode": "raw", "raw": "{\n \"Channels\": [\n {\n \"Channel\": 0,\n \"GopMode\": \"DualP\",\n \"IPQpDelta\": 2,\n \"RcMode\": \"AVBR\",\n \"IFrameInterval\": 30,\n \"MaxBitrate\": 3072\n },\n {\n \"Channel\": 2,\n \"GopMode\": \"NormalP\",\n \"IPQpDelta\": 2,\n \"RcMode\": \"CVBR\",\n \"IFrameInterval\": 30,\n \"MaxBitrate\": 1536\n }\n ]\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/camera/codec", "host": [ "{{base_url}}" ], "path": [ "camera", "codec" ] } }, "response": [] } ] }, { "name": "Gate", "item": [ { "name": "Settings info", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [], "url": { "raw": "{{base_url}}/gate/settings", "host": [ "{{base_url}}" ], "path": [ "gate", "settings" ] } }, "response": [] }, { "name": "Settings edit", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});" ], "type": "text/javascript" } } ], "request": { "method": "PUT", "header": [], "body": { "mode": "raw", "raw": "{\n \"gateMode\": true,\n \"prefixHouse\": true,\n \"direct\": {\n \"mode\": true,\n \"rules\": {\n \"0\": {\n \"1-100\": \"0813cd1f13b1.vd.is74.ru\"\n }\n }\n }\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/gate/settings", "host": [ "{{base_url}}" ], "path": [ "gate", "settings" ] } }, "response": [] } ] }, { "name": "Levels", "item": [ { "name": "Levels", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [], "url": { "raw": "{{base_url}}/levels", "host": [ "{{base_url}}" ], "path": [ "levels" ] } }, "response": [] }, { "name": "Levels edit", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});" ], "type": "text/javascript" } } ], "request": { "method": "PUT", "header": [], "body": { "mode": "raw", "raw": "{\n \"resistances\": {\n \"break\": 45,\n \"error\": 105,\n \"quiescent\": 255,\n \"answer\": 255\n },\n \"volumes\": {\n \"panelCall\": 50,\n \"panelTalk\": 50,\n \"thTalk\": 50,\n \"thCall\": 50,\n \"uartFrom\": 50,\n \"uartTo\": 50\n },\n \"noise\": {\n \"line\": null\n }\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/levels", "host": [ "{{base_url}}" ], "path": [ "levels" ] } }, "response": [] }, { "name": "Levels realtime", "request": { "method": "GET", "header": [], "url": { "raw": "{{base_url}}/levels/realtime", "host": [ "{{base_url}}" ], "path": [ "levels", "realtime" ] } }, "response": [] }, { "name": "Levels realtime edit", "request": { "method": "PUT", "header": [], "body": { "mode": "raw", "raw": "{\n \"thCall\": 100,\n \"panelCall\": 100,\n \"thTalk\": 100,\n \"panelTalk\": 10,\n \"uartFrom\": 100,\n \"uartTo\": 50\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/levels/realtime", "host": [ "{{base_url}}" ], "path": [ "levels", "realtime" ] } }, "response": [] } ] }, { "name": "Key Store", "item": [ { "name": "Create", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"uuid\": \"33E09701\",\n \"panelCode\": 17,\n \"encryption\": true\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/key/store", "host": [ "{{base_url}}" ], "path": [ "key", "store" ] } }, "response": [] }, { "name": "List", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [], "url": { "raw": "{{base_url}}/key/store", "host": [ "{{base_url}}" ], "path": [ "key", "store" ] } }, "response": [] }, { "name": "Get info", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [], "url": { "raw": "{{base_url}}/key/store", "host": [ "{{base_url}}" ], "path": [ "key", "store" ] } }, "response": [] }, { "name": "Update", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});" ], "type": "text/javascript" } } ], "request": { "method": "PUT", "header": [], "body": { "mode": "raw", "raw": "{\n \"encryption\": false\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/key/store/000000D639CF35", "host": [ "{{base_url}}" ], "path": [ "key", "store", "000000D639CF35" ] } }, "response": [] }, { "name": "Merge", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});" ], "type": "text/javascript" } } ], "request": { "method": "PUT", "header": [], "body": { "mode": "raw", "raw": "[\n {\n \"uuid\": \"000000D639CF35\",\n \"panelCode\": 0,\n \"encryption\": false\n },\n {\n \"uuid\": \"000000EC1F9155\",\n \"panelCode\": 1,\n \"encryption\": false\n },\n {\n \"uuid\": \"00000070E36665\",\n \"panelCode\": 1,\n \"encryption\": false\n },\n {\n \"uuid\": \"000000880B377B\",\n \"panelCode\": 1,\n \"encryption\": false\n },\n {\n \"uuid\": \"000000466030D9\",\n \"panelCode\": 1,\n \"encryption\": false\n },\n {\n \"uuid\": \"000000E0C6D7FB\",\n \"panelCode\": 1,\n \"encryption\": false\n },\n {\n \"uuid\": \"0000005918589F\",\n \"panelCode\": 1,\n \"encryption\": false\n }\n]", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/key/store/merge", "host": [ "{{base_url}}" ], "path": [ "key", "store", "merge" ] } }, "response": [] }, { "name": "Delete", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code is 204\", function () {", " pm.response.to.have.status(204);", "});" ], "type": "text/javascript" } } ], "request": { "method": "DELETE", "header": [], "url": { "raw": "{{base_url}}/key/store/00000033E09200", "host": [ "{{base_url}}" ], "path": [ "key", "store", "00000033E09200" ] } }, "response": [] }, { "name": "Delete all", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code is 204\", function () {", " pm.response.to.have.status(204);", "});" ], "type": "text/javascript" } } ], "request": { "method": "DELETE", "header": [], "url": { "raw": "{{base_url}}/key/store/clear", "host": [ "{{base_url}}" ], "path": [ "key", "store", "clear" ] } }, "response": [] } ] }, { "name": "KeySettings", "item": [ { "name": "Key Settings info", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [], "url": { "raw": "{{base_url}}/key/settings", "host": [ "{{base_url}}" ], "path": [ "key", "settings" ] } }, "response": [] }, { "name": "Key settings edit", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});" ], "type": "text/javascript" } } ], "request": { "method": "PUT", "header": [], "body": { "mode": "raw", "raw": "{\n \"mode\": 1,\n \"autocollect\": {\n \"enabled\": true,\n \"room\": 0\n },\n \"encryption\": {\n \"enabled\": true,\n \"key_type\": \"\",\n \"key_auth\": \"\",\n \"sector\": 3,\n \"increment\": {\n \"enabled\": false,\n \"block\": null,\n \"openByError\": false\n }\n },\n \"kb_codes\": true,\n \"offset\": 255,\n \"wiegand\": {\n \"type\": 34\n }\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/key/settings", "host": [ "{{base_url}}" ], "path": [ "key", "settings" ] } }, "response": [] } ] }, { "name": "KeyMarkup", "item": [ { "name": "Markup info", "request": { "method": "GET", "header": [], "url": { "raw": "{{base_url}}/v1/key/markup/mifare", "host": [ "{{base_url}}" ], "path": [ "v1", "key", "markup", "mifare" ] } }, "response": [] }, { "name": "Markup edit", "request": { "method": "PUT", "header": [], "body": { "mode": "raw", "raw": "{\n \"enable\": true,\n \"numSectors\": 3,\n \"markup\": {\n \"0\": {\n \"skip\": {\n \"err\": false,\n \"always\": false\n },\n \"key\": {\n \"type\": \"\",\n \"value\": \"\"\n },\n \"3\": \"\",\n \"2\": null,\n \"1\": null,\n \"0\": null\n },\n \"1\": {\n \"skip\": {\n \"err\": false,\n \"always\": false\n },\n \"key\": {\n \"type\": \"\",\n \"value\": \"\"\n },\n \"3\": \"\",\n \"2\": null,\n \"1\": null,\n \"0\": null\n },\n \"2\": {\n \"skip\": {\n \"err\": false,\n \"always\": false\n },\n \"key\": {\n \"type\": \"\",\n \"value\": \"\"\n },\n \"3\": \"\",\n \"2\": null,\n \"1\": null,\n \"0\": null\n },\n \"3\": {\n \"skip\": {\n \"err\": false,\n \"always\": false\n },\n \"key\": {\n \"type\": \"\",\n \"value\": \"\"\n },\n \"3\": \"\",\n \"2\": null,\n \"1\": null,\n \"0\": null\n },\n \"4\": {\n \"skip\": {\n \"err\": false,\n \"always\": false\n },\n \"key\": {\n \"type\": \"\",\n \"value\": \"\"\n },\n \"3\": \"\",\n \"2\": null,\n \"1\": null,\n \"0\": null\n },\n \"5\": {\n \"skip\": {\n \"err\": false,\n \"always\": false\n },\n \"key\": {\n \"type\": \"\",\n \"value\": \"\"\n },\n \"3\": \"\",\n \"2\": null,\n \"1\": null,\n \"0\": null\n },\n \"6\": {\n \"skip\": {\n \"err\": false,\n \"always\": false\n },\n \"key\": {\n \"type\": \"\",\n \"value\": \"\"\n },\n \"3\": \"\",\n \"2\": null,\n \"1\": null,\n \"0\": null\n },\n \"7\": {\n \"skip\": {\n \"err\": false,\n \"always\": false\n },\n \"key\": {\n \"type\": \"\",\n \"value\": \"\"\n },\n \"3\": \"\",\n \"2\": null,\n \"1\": null,\n \"0\": null\n },\n \"8\": {\n \"skip\": {\n \"err\": false,\n \"always\": false\n },\n \"key\": {\n \"type\": \"\",\n \"value\": \"\"\n },\n \"3\": \"\",\n \"2\": null,\n \"1\": null,\n \"0\": null\n },\n \"9\": {\n \"skip\": {\n \"err\": false,\n \"always\": false\n },\n \"key\": {\n \"type\": \"\",\n \"value\": \"\"\n },\n \"3\": \"\",\n \"2\": null,\n \"1\": null,\n \"0\": null\n },\n \"10\": {\n \"skip\": {\n \"err\": false,\n \"always\": false\n },\n \"key\": {\n \"type\": \"\",\n \"value\": \"\"\n },\n \"3\": \"\",\n \"2\": null,\n \"1\": null,\n \"0\": null\n },\n \"11\": {\n \"skip\": {\n \"err\": false,\n \"always\": false\n },\n \"key\": {\n \"type\": \"\",\n \"value\": \"\"\n },\n \"3\": \"\",\n \"2\": null,\n \"1\": null,\n \"0\": null\n },\n \"12\": {\n \"skip\": {\n \"err\": false,\n \"always\": false\n },\n \"key\": {\n \"type\": \"\",\n \"value\": \"\"\n },\n \"3\": \"\",\n \"2\": null,\n \"1\": null,\n \"0\": null\n },\n \"13\": {\n \"skip\": {\n \"err\": false,\n \"always\": false\n },\n \"key\": {\n \"type\": \"\",\n \"value\": \"\"\n },\n \"3\": \"\",\n \"2\": null,\n \"1\": null,\n \"0\": null\n },\n \"14\": {\n \"skip\": {\n \"err\": false,\n \"always\": false\n },\n \"key\": {\n \"type\": \"\",\n \"value\": \"\"\n },\n \"3\": \"\",\n \"2\": null,\n \"1\": null,\n \"0\": null\n },\n \"15\": {\n \"skip\": {\n \"err\": false,\n \"always\": false\n },\n \"key\": {\n \"type\": \"\",\n \"value\": \"\"\n },\n \"3\": \"\",\n \"2\": null,\n \"1\": null,\n \"0\": null\n }\n }\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/v1/key/markup/mifare", "host": [ "{{base_url}}" ], "path": [ "v1", "key", "markup", "mifare" ] } }, "response": [] }, { "name": "Markup delete", "request": { "method": "DELETE", "header": [], "url": { "raw": "{{base_url}}/v1/key/markup/mifare", "host": [ "{{base_url}}" ], "path": [ "v1", "key", "markup", "mifare" ] } }, "response": [] } ] }, { "name": "OpenCode", "item": [ { "name": "Create", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code is 201\", function () {", " pm.response.to.have.status(201);", "});" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"code\": 55555,\n \"panelCode\": 100\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/openCode", "host": [ "{{base_url}}" ], "path": [ "openCode" ] } }, "response": [] }, { "name": "Get info", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [], "url": { "raw": "{{base_url}}/openCode/1000", "host": [ "{{base_url}}" ], "path": [ "openCode", "1000" ] } }, "response": [] }, { "name": "List", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [], "url": { "raw": "{{base_url}}/openCode", "host": [ "{{base_url}}" ], "path": [ "openCode" ] } }, "response": [] }, { "name": "Delete N", "request": { "method": "DELETE", "header": [], "url": { "raw": "{{base_url}}/openCode/1000", "host": [ "{{base_url}}" ], "path": [ "openCode", "1000" ] } }, "response": [] }, { "name": "Delete NM", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code is 204\", function () {", " pm.response.to.have.status(204);", "});" ], "type": "text/javascript" } } ], "request": { "method": "DELETE", "header": [], "url": { "raw": "{{base_url}}/openCode/100/55555", "host": [ "{{base_url}}" ], "path": [ "openCode", "100", "55555" ] } }, "response": [] }, { "name": "Delete all", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code is 204\", function () {", " pm.response.to.have.status(204);", "});" ], "type": "text/javascript" } } ], "request": { "method": "DELETE", "header": [], "url": { "raw": "{{base_url}}/openCode/clear", "host": [ "{{base_url}}" ], "path": [ "openCode", "clear" ] } }, "response": [] } ] }, { "name": "Switch", "item": [ { "name": "Matrix", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [], "url": { "raw": "{{base_url}}/switch/matrix/1", "host": [ "{{base_url}}" ], "path": [ "switch", "matrix", "1" ] } }, "response": [] }, { "name": "Matrix edit", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});" ], "type": "text/javascript" } } ], "request": { "method": "PUT", "header": [], "body": { "mode": "raw", "raw": "{\n \"capacity\": 100,\n \"matrix\": [\n [\n 100,\n 1,\n 2,\n 3,\n 4,\n 5,\n 6,\n 7,\n 8,\n 9\n ],\n [\n 10,\n 11,\n 12,\n 13,\n 14,\n 15,\n 16,\n 17,\n 18,\n 19\n ],\n [\n 20,\n 21,\n 22,\n 23,\n 24,\n 25,\n 26,\n 27,\n 28,\n 29\n ],\n [\n 30,\n 31,\n 32,\n 33,\n 34,\n 35,\n 36,\n 37,\n 38,\n 39\n ],\n [\n 40,\n 41,\n 42,\n 43,\n 44,\n 45,\n 46,\n 47,\n 48,\n 49\n ],\n [\n 50,\n 51,\n 52,\n 53,\n 54,\n 55,\n 56,\n 57,\n 58,\n 59\n ],\n [\n 60,\n 61,\n 62,\n 63,\n 64,\n 65,\n 66,\n 67,\n 68,\n 69\n ],\n [\n 70,\n 71,\n 72,\n 73,\n 74,\n 75,\n 76,\n 77,\n 78,\n 79\n ],\n [\n 80,\n 81,\n 82,\n 83,\n 84,\n 85,\n 86,\n 87,\n 88,\n 89\n ],\n [\n 90,\n 91,\n 92,\n 93,\n 94,\n 95,\n 96,\n 97,\n 98,\n 99\n ]\n ]\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/switch/matrix/1", "host": [ "{{base_url}}" ], "path": [ "switch", "matrix", "1" ] } }, "response": [] }, { "name": "Models", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [], "url": { "raw": "{{base_url}}/switch/info/models", "host": [ "{{base_url}}" ], "path": [ "switch", "info", "models" ] } }, "response": [] }, { "name": "Settings", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [], "url": { "raw": "{{base_url}}/switch/settings", "host": [ "{{base_url}}" ], "path": [ "switch", "settings" ] } }, "response": [] }, { "name": "Settings edit", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});" ], "type": "text/javascript" } } ], "request": { "method": "PUT", "header": [], "body": { "mode": "raw", "raw": "{\n \"modelId\": \"CYFRAL\",\n \"usingCom3\": true\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/switch/settings", "host": [ "{{base_url}}" ], "path": [ "switch", "settings" ] } }, "response": [] } ] }, { "name": "PanelCode", "item": [ { "name": "Create", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"panelCode\": 1107,\n \"callsEnabled\": {\n \"sip\": true,\n \"handset\": true\n },\n \"resistances\": {\n \"quiescent\": null,\n \"answer\": null\n },\n \"volumes\": {\n \"thCall\": 100,\n \"thTalk\": 100,\n \"uartFrom\": 110,\n \"uartTo\": 100,\n \"panelCall\": 100,\n \"panelTalk\": 100\n }\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/panelCode", "host": [ "{{base_url}}" ], "path": [ "panelCode" ] } }, "response": [] }, { "name": "List", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [], "url": { "raw": "{{base_url}}/panelCode", "host": [ "{{base_url}}" ], "path": [ "panelCode" ] } }, "response": [] }, { "name": "Get info", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [], "url": { "raw": "{{base_url}}/panelCode/17", "host": [ "{{base_url}}" ], "path": [ "panelCode", "17" ] } }, "response": [] }, { "name": "Update", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});" ], "type": "text/javascript" } } ], "request": { "method": "PUT", "header": [], "body": { "mode": "raw", "raw": "{\n \"panelCode\": 1,\n \"callsEnabled\": {\n \"sip\":false,\n \"handset\": false\n },\n \"soundOpenTh\": true,\n \"typeSound\": 8,\n \"resistances\": {\n \"quiescent\": 55,\n \"answer\": 55\n },\n \"volumes\": {\n \"thCall\": 66,\n \"thTalk\": 66,\n \"uartFrom\": 66,\n \"uartTo\": 66,\n \"panelCall\": 66,\n \"panelTalk\": 66\n }\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/panelCode/{{hata}}", "host": [ "{{base_url}}" ], "path": [ "panelCode", "{{hata}}" ] } }, "response": [] }, { "name": "Check resistance", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [], "url": { "raw": "{{base_url}}/panelCode/{{hata}}/resist", "host": [ "{{base_url}}" ], "path": [ "panelCode", "{{hata}}", "resist" ] } }, "response": [] }, { "name": "Check resistance open", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [], "url": { "raw": "{{base_url}}/panelCode/{{hata}}/resistOpen", "host": [ "{{base_url}}" ], "path": [ "panelCode", "{{hata}}", "resistOpen" ] } }, "response": [] }, { "name": "Levels", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [], "url": { "raw": "{{base_url}}/panelCode/{{hata}}/levels", "host": [ "{{base_url}}" ], "path": [ "panelCode", "{{hata}}", "levels" ] } }, "response": [] }, { "name": "Levels edit", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});" ], "type": "text/javascript" } } ], "request": { "method": "PUT", "header": [], "body": { "mode": "raw", "raw": "{\n \"resistances\": {\n \"quiescent\": 254,\n \"answer\": 66\n },\n \"volumes\": {\n \"thCall\": 66,\n \"thTalk\": 66,\n \"uartFrom\": 66,\n \"uartTo\": 66,\n \"panelCall\": 66,\n \"panelTalk\": 66\n }\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/panelCode/{{hata}}/levels", "host": [ "{{base_url}}" ], "path": [ "panelCode", "{{hata}}", "levels" ] } }, "response": [] }, { "name": "Delete", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code is 204\", function () {", " pm.response.to.have.status(204);", "});" ], "type": "text/javascript" } } ], "request": { "method": "DELETE", "header": [], "url": { "raw": "{{base_url}}/panelCode/16", "host": [ "{{base_url}}" ], "path": [ "panelCode", "16" ] } }, "response": [] }, { "name": "Delete all", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code is 204\", function () {", " pm.response.to.have.status(204);", "});" ], "type": "text/javascript" } } ], "request": { "method": "DELETE", "header": [], "url": { "raw": "{{base_url}}/panelCode/clear", "host": [ "{{base_url}}" ], "path": [ "panelCode", "clear" ] } }, "response": [] }, { "name": "Settings info", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [], "url": { "raw": "{{base_url}}/panelCode/settings", "host": [ "{{base_url}}" ], "path": [ "panelCode", "settings" ] } }, "response": [] }, { "name": "Settings edit", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});" ], "type": "text/javascript" } } ], "request": { "method": "PUT", "header": [], "body": { "mode": "raw", "raw": "{\n \"consiergeRoom\": \"999\",\n \"sosRoom\": \"SOS\",\n \"sosType\": true,\n \"sosDelay\": true,\n \"soundOpenTh\": true,\n \"sosDelayTime\": 2,\n \"soundOpenPanel\": true,\n \"typeSound\": 2\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/panelCode/settings", "host": [ "{{base_url}}" ], "path": [ "panelCode", "settings" ] } }, "response": [] }, { "name": "Diagnostic", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "[20]", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/panelCode/diag", "host": [ "{{base_url}}" ], "path": [ "panelCode", "diag" ] } }, "response": [] }, { "name": "Тест аналоговой трубки", "request": { "method": "GET", "header": [] }, "response": [] }, { "name": "Rooms update", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});" ], "type": "text/javascript" } } ], "request": { "method": "PUT", "header": [], "body": { "mode": "raw", "raw": "[\n {\n \"panelCode\": 1,\n \"callsEnabled\": {\n \"sip\": true,\n \"handset\": false\n },\n \"soundOpenTh\": 50,\n \"typeSound\": 3,\n \"volumes\": {\n \"thCall\": 2,\n \"thTalk\": 2,\n \"uartFrom\": 2,\n \"uartTo\": 2,\n \"panelCall\": 2,\n \"panelTalk\": 2\n },\n \"resistances\": {\n \"quiescent\": 2,\n \"answer\": 2\n }\n },\n {\n \"panelCode\": 2,\n \"callsEnabled\": {\n \"sip\": false,\n \"handset\": false\n },\n \"soundOpenTh\": 3,\n \"typeSound\": 3,\n \"volumes\": {\n \"thCall\": 3,\n \"thTalk\": 3,\n \"uartFrom\": 3,\n \"uartTo\": 3,\n \"panelCall\": 3,\n \"panelTalk\": 3\n },\n \"resistances\": {\n \"quiescent\": 3,\n \"answer\": 3\n }\n },\n {\n \"panelCode\": 3,\n \"callsEnabled\": {\n \"sip\": true,\n \"handset\": true\n },\n \"soundOpenTh\": 4,\n \"typeSound\": 3,\n \"volumes\": {\n \"thCall\": 4,\n \"thTalk\": 4,\n \"uartFrom\": 4,\n \"uartTo\": 4,\n \"panelCall\": 4,\n \"panelTalk\": 4\n },\n \"resistances\": {\n \"quiescent\": 4,\n \"answer\": 4\n }\n }\n]", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/panelCode/rooms_update", "host": [ "{{base_url}}" ], "path": [ "panelCode", "rooms_update" ] } }, "response": [] } ] }, { "name": "Relay", "item": [ { "name": "Relay open", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code is 204\", function () {", " pm.response.to.have.status(204);", "});" ], "type": "text/javascript" } } ], "request": { "method": "PUT", "header": [], "url": { "raw": "{{base_url}}/relay/1/open", "host": [ "{{base_url}}" ], "path": [ "relay", "1", "open" ] } }, "response": [] }, { "name": "Relay Info", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [], "url": { "raw": "{{base_url}}/relay/info", "host": [ "{{base_url}}" ], "path": [ "relay", "info" ] } }, "response": [] }, { "name": "Relay setting N info", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [], "url": { "raw": "{{base_url}}/relay/1/settings", "host": [ "{{base_url}}" ], "path": [ "relay", "1", "settings" ] } }, "response": [] }, { "name": "Relay setting N edit", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});" ], "type": "text/javascript" } } ], "request": { "method": "PUT", "header": [], "body": { "mode": "raw", "raw": "{\n \"switchTime\": 10,\n \"alwaysOpen\": false\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/relay/1/settings", "host": [ "{{base_url}}" ], "path": [ "relay", "1", "settings" ] } }, "response": [] }, { "name": "Relay settings edit", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});" ], "type": "text/javascript" } } ], "request": { "method": "PUT", "header": [], "body": { "mode": "raw", "raw": "{\n \"inverseDoor\": true,\n \"alwaysOpenNetMode\": false\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/relay/settings", "host": [ "{{base_url}}" ], "path": [ "relay", "settings" ] } }, "response": [] }, { "name": "Relay settings info", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [], "url": { "raw": "{{base_url}}/relay/settings", "host": [ "{{base_url}}" ], "path": [ "relay", "settings" ] } }, "response": [] }, { "name": "Relay settings edit", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});" ], "type": "text/javascript" } } ], "request": { "method": "PUT", "header": [], "body": { "mode": "raw", "raw": "{\n \"inverseDoor\": true,\n \"alwaysOpenNetMode\": false\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/relay/settings", "host": [ "{{base_url}}" ], "path": [ "relay", "settings" ] } }, "response": [] } ] }, { "name": "Log", "item": [ { "name": "Last", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [], "url": { "raw": "{{base_url}}/log/last", "host": [ "{{base_url}}" ], "path": [ "log", "last" ] } }, "response": [] } ] }, { "name": "SIP", "item": [ { "name": "Options info", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [], "url": { "raw": "{{base_url}}/sip/options", "host": [ "{{base_url}}" ], "path": [ "sip", "options" ] } }, "response": [] }, { "name": "Options edit", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});" ], "type": "text/javascript" } } ], "request": { "method": "PUT", "header": [], "body": { "mode": "raw", "raw": "{\n \"dtmf\": {\n \"1\": \"5\",\n \"2\": \"4\"\n },\n \"callDelay\": 2,\n \"talkDuration\": 300,\n \"ringDuration\": 40,\n \"echoD\": false\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/sip/options", "host": [ "{{base_url}}" ], "path": [ "sip", "options" ] } }, "response": [] }, { "name": "Settings info", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [], "url": { "raw": "{{base_url}}/sip/settings", "host": [ "{{base_url}}" ], "path": [ "sip", "settings" ] } }, "response": [] }, { "name": "Settings edit", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});" ], "type": "text/javascript" } } ], "request": { "method": "PUT", "header": [], "body": { "mode": "raw", "raw": "{\n \"videoEnable\": false,\n \"name\": null,\n \"number\": null,\n \"server\": {\n \"enabled\": false,\n \"port\": 5555\n },\n \"remote\": {\n \"enabled\": true,\n \"username\": \"\",\n \"password\": \"\",\n \"domain\": \"\",\n \"port\": 5555\n }\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/sip/settings", "host": [ "{{base_url}}" ], "path": [ "sip", "settings" ] } }, "response": [] }, { "name": "Test", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Successful GET request\", function () {", " pm.expect(pm.response.code).to.be.oneOf([200, 204]);", "});" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [], "url": { "raw": "{{base_url}}/sip/test/{{hata}}", "host": [ "{{base_url}}" ], "path": [ "sip", "test", "{{hata}}" ] } }, "response": [] }, { "name": "SIP test new", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Successful GET request\", function () {", " pm.expect(pm.response.code).to.be.oneOf([200, 204]);", "});" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [], "url": { "raw": "{{base_url}}/sip/test/sip/{{hata}}", "host": [ "{{base_url}}" ], "path": [ "sip", "test", "sip", "{{hata}}" ] } }, "response": [] } ] }, { "name": "System", "item": [ { "name": "Reboot", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});" ], "type": "text/javascript" } } ], "request": { "method": "PUT", "header": [], "url": { "raw": "{{base_url}}/system/reboot", "host": [ "{{base_url}}" ], "path": [ "system", "reboot" ] } }, "response": [] }, { "name": "System info", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [], "url": { "raw": "{{base_url}}/system/info", "host": [ "{{base_url}}" ], "path": [ "system", "info" ] } }, "response": [] }, { "name": "Factory reset", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});" ], "type": "text/javascript" } } ], "request": { "method": "PUT", "header": [], "url": { "raw": "{{base_url}}/system/factory-reset", "host": [ "{{base_url}}" ], "path": [ "system", "factory-reset" ] } }, "response": [] }, { "name": "Backup settings", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [], "url": { "raw": "{{base_url}}/system/backup", "host": [ "{{base_url}}" ], "path": [ "system", "backup" ] } }, "response": [] }, { "name": "Restore settings", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code is 204\", function () {", " pm.response.to.have.status(204);", "});" ], "type": "text/javascript" } } ], "request": { "method": "PUT", "header": [], "body": { "mode": "file", "file": { "src": "" } }, "url": { "raw": "{{base_url}}/system/restore", "host": [ "{{base_url}}" ], "path": [ "system", "restore" ] } }, "response": [] }, { "name": "MAC address info", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [], "url": { "raw": "{{base_url}}/system/fw_env", "host": [ "{{base_url}}" ], "path": [ "system", "fw_env" ] } }, "response": [] }, { "name": "MAC address edit", "request": { "method": "PUT", "header": [], "body": { "mode": "raw", "raw": "{\n \"ethaddr\": \"08:13:CD:99:99:99\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/system/fw_env", "host": [ "{{base_url}}" ], "path": [ "system", "fw_env" ] } }, "response": [] }, { "name": "Settings info", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [], "url": { "raw": "{{base_url}}/system/settings", "host": [ "{{base_url}}" ], "path": [ "system", "settings" ] } }, "response": [] }, { "name": "Settings edit", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});" ], "type": "text/javascript" } } ], "request": { "method": "PUT", "header": [], "body": { "mode": "raw", "raw": "{\n \"log_level\": {\n \"api\": 2,\n \"uart\": 2,\n \"camofon\": 2,\n \"streamer\": 2,\n \"proguard\": 3,\n \"store\": 3,\n \"libre\": 2\n },\n \"tz\": \"UTC\",\n \"dns\": {\n \"auto\": true,\n \"nameservers\": [\n \"78.29.2.21\",\n \"78.29.2.22\"\n ]\n },\n \"ntp\": [\n \"0.pool.ntp.org\",\n \"1.pool.ntp.org\",\n \"10.100.12.14\"\n ],\n \"assist\": {\n \"enable\": true,\n \"online\": true\n }\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/system/settings", "host": [ "{{base_url}}" ], "path": [ "system", "settings" ] } }, "response": [] }, { "name": "Restart", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code is 204\", function () {", " pm.response.to.have.status(204);", "});" ], "type": "text/javascript" } } ], "request": { "method": "PUT", "header": [], "url": { "raw": "{{base_url}}/system/restart/web", "host": [ "{{base_url}}" ], "path": [ "system", "restart", "web" ] } }, "response": [] }, { "name": "TZ list", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [], "url": { "raw": "{{base_url}}/system/tz", "host": [ "{{base_url}}" ], "path": [ "system", "tz" ] } }, "response": [] }, { "name": "Cam Upgrade", "request": { "method": "PUT", "header": [], "body": { "mode": "raw", "raw": "{\n \"url\": \"http://14.44.44.44:8000/test3.1\",\n \"mcu\": false,\n \"bootloader\": false,\n \"opt\": true,\n \"media\": false,\n \"rootfs\": false\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/v2/system/upgrade", "host": [ "{{base_url}}" ], "path": [ "v2", "system", "upgrade" ] } }, "response": [] }, { "name": "Change password", "request": { "method": "PUT", "header": [], "body": { "mode": "raw", "raw": "{\n\"newPassword\":\"password\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/user/change_password", "host": [ "{{base_url}}" ], "path": [ "user", "change_password" ] } }, "response": [] }, { "name": "Запрос файла", "protocolProfileBehavior": { "disableBodyPruning": true }, "request": { "method": "GET", "header": [], "body": { "mode": "file", "file": {} }, "url": { "raw": "{{base_url}}/system/files/rsyslogd.conf", "host": [ "{{base_url}}" ], "path": [ "system", "files", "rsyslogd.conf" ] } }, "response": [] }, { "name": "Versions", "request": { "method": "GET", "header": [], "url": { "raw": "{{base_url}}/v2/system/versions", "host": [ "{{base_url}}" ], "path": [ "v2", "system", "versions" ] } }, "response": [] }, { "name": "Cam upgrade old", "request": { "method": "PUT", "header": [], "body": { "mode": "raw", "raw": "{\n \"server\": \"10.80.44.444\",\n \"folder\": \"X2/2.5.7.23\",\n \"opt\": true,\n \"media\": true,\n \"rootfs\": true,\n \"stm\": true\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/system/cam/upgrade", "host": [ "{{base_url}}" ], "path": [ "system", "cam", "upgrade" ] } }, "response": [] } ] }, { "name": "PanelDisplay", "item": [ { "name": "1.2 Бегущая строка - Обновление", "request": { "method": "PUT", "header": [], "body": { "mode": "raw", "raw": "{\n \"strDisplayOff\": true,\n \"imgStr\": \"HELL\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/panelDisplay/settings", "host": [ "{{base_url}}" ], "path": [ "panelDisplay", "settings" ] } }, "response": [] }, { "name": "1.1 Бегущая строка - Получение", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});" ], "type": "text/javascript" } } ], "protocolProfileBehavior": { "disableBodyPruning": true }, "request": { "method": "GET", "header": [], "body": { "mode": "raw", "raw": "{\n \"strDisplayOff\": true,\n \"imgStr\": \"code 74174\"\n}" }, "url": { "raw": "{{base_url}}/panelDisplay/settings", "host": [ "{{base_url}}" ], "path": [ "panelDisplay", "settings" ] } }, "response": [] } ] }, { "name": "Notification", "item": [ { "name": "Play notification", "request": { "method": "PUT", "header": [], "body": { "mode": "raw", "raw": "{\n \"name\": \"test.wav\",\n \"repeat\": 1\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/v1/notification/forced/play", "host": [ "{{base_url}}" ], "path": [ "v1", "notification", "forced", "play" ] } }, "response": [] }, { "name": "List of notification", "request": { "method": "GET", "header": [], "url": { "raw": "{{base_url}}/v1/notification/forced/list", "host": [ "{{base_url}}" ], "path": [ "v1", "notification", "forced", "list" ] } }, "response": [] }, { "name": "Stop notification", "request": { "method": "PUT", "header": [], "url": { "raw": "{{base_url}}/v1/notification/forced/stop", "host": [ "{{base_url}}" ], "path": [ "v1", "notification", "forced", "stop" ] } }, "response": [] } ] }, { "name": "DDNS", "item": [ { "name": "Получение настроек DDNS", "request": { "method": "GET", "header": [], "url": { "raw": "{{base_url}}/v1/ddns", "host": [ "{{base_url}}" ], "path": [ "v1", "ddns" ] } }, "response": [] }, { "name": "Изменение настроек DDNS", "request": { "method": "PUT", "header": [], "body": { "mode": "raw", "raw": "{\n \"enabled\": true,\n \"interval\": 300,\n \"server\": {\n \"port\": 8071,\n \"address\": \"10.444.44.4\",\n \"username\": \"default\",\n \"password\": \"default\"\n },\n \"data\": {\n \"hostname\": \"ddns.\"\n }\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/v1/ddns", "host": [ "{{base_url}}" ], "path": [ "v1", "ddns" ] } }, "response": [] }, { "name": "Сброс настроек DDNS", "request": { "method": "DELETE", "header": [], "url": { "raw": "{{base_url}}/v1/ddns", "host": [ "{{base_url}}" ], "path": [ "v1", "ddns" ] } }, "response": [] } ] }, { "name": "Logs", "item": [ { "name": "Логи всех приложений", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});", "" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [], "url": { "raw": "{{base_url}}/v2/logs/all", "host": [ "{{base_url}}" ], "path": [ "v2", "logs", "all" ] } }, "response": [] }, { "name": "Логи API", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [], "url": { "raw": "{{base_url}}/v2/logs/api", "host": [ "{{base_url}}" ], "path": [ "v2", "logs", "api" ] } }, "response": [] }, { "name": "Логи UART", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [], "url": { "raw": "{{base_url}}/v2/logs/uart", "host": [ "{{base_url}}" ], "path": [ "v2", "logs", "uart" ] } }, "response": [] }, { "name": "Логи CAMOFON", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [], "url": { "raw": "{{base_url}}/v2/logs/camofon", "host": [ "{{base_url}}" ], "path": [ "v2", "logs", "camofon" ] } }, "response": [] }, { "name": "Логи STREAMER", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [], "url": { "raw": "{{base_url}}/v2/logs/streamer", "host": [ "{{base_url}}" ], "path": [ "v2", "logs", "streamer" ] } }, "response": [] } ] }, { "name": "Network", "item": [ { "name": "Network - 1.1 Сетевые настройки - Получение", "request": { "method": "GET", "header": [], "url": { "raw": "{{base_url}}/v1/network", "host": [ "{{base_url}}" ], "path": [ "v1", "network" ] } }, "response": [] }, { "name": "Network - 1.2 Сетевые настройки - Обновление", "request": { "method": "PUT", "header": [], "body": { "mode": "raw", "raw": "[\n {\n \"inet\": \"dhcp\"\n },\n {\n \"inet\": \"static\",\n \"inetStatic\": {\n \"netmask\": \"255.255.255.0\",\n \"gateway\": \"192.168.88.1\",\n \"ipAddress\": \"192.168.88.253\",\n \"dnsServer\": \"192.168.88.1\"\n }\n }\n]", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/v1/network", "host": [ "{{base_url}}" ], "path": [ "v1", "network" ] } }, "response": [] }, { "name": "Network - 1.3 Сетевые настройки - Удаление", "request": { "method": "DELETE", "header": [], "url": { "raw": "{{base_url}}/v1/network", "host": [ "{{base_url}}" ], "path": [ "v1", "network" ] } }, "response": [] } ] }, { "name": "Api", "item": [ { "name": "Api - 1.1 Настройки приложения апи - Получение", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [], "url": { "raw": "{{base_url}}/v1/api", "host": [ "{{base_url}}" ], "path": [ "v1", "api" ] } }, "response": [] }, { "name": "Api - 1.2 Настройки приложения апи - Обновление", "event": [ { "listen": "test", "script": { "exec": [ "" ], "type": "text/javascript" } } ], "request": { "method": "PUT", "header": [], "url": { "raw": "{{base_url}}/v1/api", "host": [ "{{base_url}}" ], "path": [ "v1", "api" ] } }, "response": [] }, { "name": "New Request", "request": { "method": "PUT", "header": [], "url": { "raw": "{{base_url}}/v1/call/stop", "host": [ "{{base_url}}" ], "path": [ "v1", "call", "stop" ] } }, "response": [] }, { "name": "New Request", "request": { "method": "GET", "header": [] }, "response": [] }, { "name": "New Request", "request": { "auth": { "type": "basic", "basic": [ { "key": "password", "value": "123456", "type": "string" }, { "key": "username", "value": "root", "type": "string" } ] }, "method": "PUT", "header": [ { "key": "Content-Type", "value": "application/json", "type": "text" } ], "body": { "mode": "raw", "raw": "{\n\"rsyslog_server\": \"10.199.192.225\",\n\"port\": 1514,\n\"protocol\": 0\n}" }, "url": { "raw": "{{base_url}}/system/syslog", "host": [ "{{base_url}}" ], "path": [ "system", "syslog" ] } }, "response": [] } ] }, { "name": "Auth check", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [], "url": { "raw": "{{base_url}}/auth/check", "host": [ "{{base_url}}" ], "path": [ "auth", "check" ] } }, "response": [] } ], "auth": { "type": "basic", "basic": [ { "key": "password", "value": "{{pass}}", "type": "string" }, { "key": "username", "value": "root", "type": "string" } ] }, "event": [ { "listen": "prerequest", "script": { "type": "text/javascript", "exec": [ "" ] } }, { "listen": "test", "script": { "type": "text/javascript", "exec": [ "" ] } } ], "variable": [ { "key": "base_url", "value": "", "type": "string" }, { "key": "hata", "value": "", "type": "string" }, { "key": "pass", "value": "", "type": "string" } ] }