Simple REST adapter.postman_collection.json
{
"info": {
"_postman_id": "3614cca1-c4df-43c1-b2c8-92e24f9fe9b9",
"name": "Simple REST Adapter",
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
},
"item": [
{
"name": "Get some parameters",
"request": {
"auth": {
"type": "noauth"
},
"method": "GET",
"header": [],
"url": {
"raw": "{{APP_SCHEMA}}://{{APP_HOST}}/service/{{SERVICE_ID}}/api/v1/topics?topic=sweet-home/34-ab-95-76-40-90/$name",
"protocol": "{{APP_SCHEMA}}",
"host": [
"{{APP_HOST}}"
],
"path": [
"service",
"{{SERVICE_ID}}",
"api",
"v1",
"topics"
],
"query": [
{
"key": "topic",
"value": "sweet-home/34-ab-95-76-40-90/$name"
}
]
}
},
"response": []
},
{
"name": "Set some paremeters",
"request": {
"auth": {
"type": "noauth"
},
"method": "POST",
"header": [],
"body": {
"mode": "raw",
"raw": "{\n\"topic\": \"sweet-home/34-ab-95-76-40-90/d/s\",\n\"value\": \"true\"\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "{{APP_SCHEMA}}://{{APP_HOST}}/service/{{SERVICE_ID}}/api/v1/topics/set",
"protocol": "{{APP_SCHEMA}}",
"host": [
"{{APP_HOST}}"
],
"path": [
"service",
"{{SERVICE_ID}}",
"api",
"v1",
"topics",
"set"
]
}
},
"response": []
}
],
"event": [
{
"listen": "prerequest",
"script": {
"type": "text/javascript",
"exec": [
""
]
}
},
{
"listen": "test",
"script": {
"type": "text/javascript",
"exec": [
""
]
}
}
],
"variable": [
{
"key": "APP_SCHEMA",
"value": "",
"type": "string"
},
{
"key": "APP_HOST",
"value": "",
"type": "string"
},
{
"key": "SERVICE_ID",
"value": "",
"type": "string"
}
]
}