Rest adapter.postman_collection.json
{
"info": {
"_postman_id": "7a140c34-6fab-4f3a-92d5-7abb8b7cebd1",
"name": "Rest adapter",
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
},
"item": [
{
"name": "Get topics",
"request": {
"auth": {
"type": "noauth"
},
"method": "GET",
"header": [],
"url": {
"raw": "{{<base-url>}}/api/v1/topics?to=sweet-home/34-ab-95-76-40-90/$name",
"host": [
"{{<base-url>}}"
],
"path": [
"api",
"v1",
"topics"
],
"query": [
{
"key": "to",
"value": "sweet-home/34-ab-95-76-40-90/$name"
}
]
}
},
"response": []
},
{
"name": "Set topics",
"request": {
"auth": {
"type": "noauth"
},
"method": "POST",
"header": [],
"body": {
"mode": "raw",
"raw": "{\"topics\":{\"sweet-home/34-ab-95-76-40-90/d/s\": \"true\"}}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "{{<base-url>}}/api/v1/topics/set",
"host": [
"{{<base-url>}}"
],
"path": [
"api",
"v1",
"topics",
"set"
]
}
},
"response": []
},
{
"name": "Get devices",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "{{<base-url>}}/api/v1/devices?only_ids=false",
"host": [
"{{<base-url>}}"
],
"path": [
"api",
"v1",
"devices"
],
"query": [
{
"key": "only_ids",
"value": "false"
}
]
}
},
"response": []
},
{
"name": "Get device by id",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "{{<base-url>}}/api/v1/device?deviceId=34-ab-95-76-40-90",
"host": [
"{{<base-url>}}"
],
"path": [
"api",
"v1",
"device"
],
"query": [
{
"key": "deviceId",
"value": "34-ab-95-76-40-90"
}
]
}
},
"response": []
},
{
"name": "Get node by id",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "{{<base-url>}}/api/v1/node?deviceId=34-ab-95-76-40-90&nodeId=firmware",
"host": [
"{{<base-url>}}"
],
"path": [
"api",
"v1",
"node"
],
"query": [
{
"key": "deviceId",
"value": "34-ab-95-76-40-90"
},
{
"key": "nodeId",
"value": "firmware"
}
]
}
},
"response": []
},
{
"name": "Get sensor by id",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "{{<base-url>}}/api/v1/sensor?deviceId=34-ab-95-76-40-90&nodeId=firmware&sensorId=upd-status",
"host": [
"{{<base-url>}}"
],
"path": [
"api",
"v1",
"sensor"
],
"query": [
{
"key": "deviceId",
"value": "34-ab-95-76-40-90"
},
{
"key": "nodeId",
"value": "firmware"
},
{
"key": "sensorId",
"value": "upd-status"
}
]
}
},
"response": []
},
{
"name": "Get option by id of device",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "{{<base-url>}}/api/v1/option?deviceId=34-ab-95-76-40-90&optionId=reboot",
"host": [
"{{<base-url>}}"
],
"path": [
"api",
"v1",
"option"
],
"query": [
{
"key": "deviceId",
"value": "34-ab-95-76-40-90"
},
{
"key": "optionId",
"value": "reboot"
}
]
}
},
"response": []
},
{
"name": "Get telemetry by id of node",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "{{<base-url>}}/api/v1/telemetry?deviceId=34-ab-95-76-40-90&telemetryId=ipw",
"host": [
"{{<base-url>}}"
],
"path": [
"api",
"v1",
"telemetry"
],
"query": [
{
"key": "deviceId",
"value": "34-ab-95-76-40-90"
},
{
"key": "telemetryId",
"value": "ipw"
}
]
}
},
"response": []
}
],
"event": [
{
"listen": "prerequest",
"script": {
"type": "text/javascript",
"exec": [
""
]
}
},
{
"listen": "test",
"script": {
"type": "text/javascript",
"exec": [
""
]
}
}
],
"variable": [
{
"key": "APP_SCHEMA",
"value": "",
"type": "string",
"disabled": true
},
{
"key": "APP_HOST",
"value": "",
"type": "string",
"disabled": true
},
{
"key": "SERVICE_ID",
"value": "",
"type": "string",
"disabled": true
},
{
"key": "<base-url>",
"value": "",
"type": "string"
}
]
}