{ "info": { "_postman_id": "4df65e23-cd35-4df2-db44-7bd0df8f9744", "name": "SmartSDK", "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json" }, "item": [ { "name": "Orion", "description": "", "item": [ { "name": "Orion entities", "request": { "method": "GET", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "fiware-service", "value": "default", "disabled": true }, { "key": "fiware-ServicePath", "value": "/", "disabled": true } ], "body": {}, "url": { "raw": "http://{{ORION_EP}}/v2/entities", "protocol": "http", "host": [ "{{ORION_EP}}" ], "path": [ "v2", "entities" ] }, "description": "Orion entities in Swarm" }, "response": [] }, { "name": "Orion version", "request": { "method": "GET", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "fiware-service", "value": "default", "disabled": true }, { "key": "fiware-ServicePath", "value": "/", "disabled": true } ], "body": {}, "url": { "raw": "http://{{ORION_EP}}/version", "protocol": "http", "host": [ "{{ORION_EP}}" ], "path": [ "version" ] }, "description": "Orion version in Swarm" }, "response": [] }, { "name": "Orion entity", "request": { "method": "POST", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" }, { "key": "fiware-service", "value": "default", "disabled": true }, { "key": "fiware-ServicePath", "value": "/", "disabled": true } ], "body": { "mode": "raw", "raw": "{\n \"id\": \"air_quality_observer_be_001\",\n \"type\": \"AirQualityObserved\",\n \"address\": {\n \"streetAddress\": \"IJzerlaan\",\n \"postOfficeBoxNumber\": \"18\",\n \"addressLocality\": \"Antwerpen\",\n \"addressCountry\": \"BE\"\n },\n \"dateObserved\": \"2017-11-03T12:37:23.734827\",\n \"source\": \"http://testing.data.from.smartsdk\",\n \"precipitation\": 0,\n \"relativeHumidity\": 0.54,\n \"temperature\": 12.2,\n \"windDirection\": 186,\n \"windSpeed\": 0.64,\n \"airQualityLevel\": \"moderate\",\n \"airQualityIndex\": 65,\n \"reliability\": 0.7,\n \"CO\": 500,\n \"NO\": 45,\n \"NO2\": 69,\n \"NOx\": 139,\n \"SO2\": 11,\n \"CO_Level\": \"moderate\",\n \"refPointOfInterest\": \"null\"\n}" }, "url": { "raw": "http://{{ORION_EP}}/v2/entities?options=keyValues", "protocol": "http", "host": [ "{{ORION_EP}}" ], "path": [ "v2", "entities" ], "query": [ { "key": "options", "value": "keyValues" } ] }, "description": "Insert entities into Orion in Swarm" }, "response": [] }, { "name": "Orion update", "request": { "method": "PATCH", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" }, { "key": "fiware-service", "value": "default", "disabled": true }, { "key": "fiware-ServicePath", "value": "/", "disabled": true } ], "body": { "mode": "raw", "raw": "{\n \"precipitation\": {\n \"value\": 101,\n \"type\": \"Number\"\n }\n}" }, "url": { "raw": "http://{{ORION_EP}}/v2/entities/air_quality_observer_be_001/attrs", "protocol": "http", "host": [ "{{ORION_EP}}" ], "path": [ "v2", "entities", "air_quality_observer_be_001", "attrs" ] }, "description": "Update atttrs of Orion entities in Swarm" }, "response": [] }, { "name": "Orion entity", "request": { "method": "DELETE", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "fiware-service", "value": "default", "disabled": true }, { "key": "fiware-ServicePath", "value": "/", "disabled": true } ], "body": {}, "url": { "raw": "http://{{ORION_EP}}/v2/entities/air_quality_observer_be_001", "protocol": "http", "host": [ "{{ORION_EP}}" ], "path": [ "v2", "entities", "air_quality_observer_be_001" ] } }, "response": [] }, { "name": "Orion subscriptions", "request": { "method": "GET", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "fiware-service", "value": "default", "disabled": true }, { "key": "fiware-ServicePath", "value": "/", "disabled": true } ], "body": {}, "url": { "raw": "http://{{ORION_EP}}/v2/subscriptions", "protocol": "http", "host": [ "{{ORION_EP}}" ], "path": [ "v2", "subscriptions" ] }, "description": "Orion subscriptions in Swarm" }, "response": [] }, { "name": "Orion subscription v1", "request": { "method": "POST", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "fiware-service", "value": "default" }, { "key": "fiware-ServicePath", "value": "/", "disabled": true }, { "key": "Content-Type", "value": "application/json", "disabled": true } ], "body": { "mode": "raw", "raw": "{\n \"entities\": [\n {\n \"type\": \"TrafficFlowObserved\",\n \"id\": \".*\",\n \"isPattern\": \"true\"\n }\n ],\n \"attributes\": [\n ],\n \"reference\": \"http://comet:8666/notify\",\n \"duration\": \"P1Y\",\n \"notifyConditions\": [\n {\n \"type\": \"ONCHANGE\",\n \"condValues\": [\n ]\n }\n ]\n}" }, "url": { "raw": "http://{{ORION_EP}}/v1/subscribeContext", "protocol": "http", "host": [ "{{ORION_EP}}" ], "path": [ "v1", "subscribeContext" ] }, "description": "Subscribe Comet to Orion changes in Swarm" }, "response": [] }, { "name": "Orion subscription v2", "request": { "method": "POST", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" }, { "key": "fiware-service", "value": "default", "disabled": true }, { "key": "fiware-ServicePath", "value": "/", "disabled": true } ], "body": { "mode": "raw", "raw": "{\n \"description\": \"Manual Subscription created from Postman\",\n \"notification\": {\n \"attrs\": [],\n \"http\": {\n \"url\": \"http://quantumleap:8668/v2/notify\"\n },\n \"metadata\": [\n \"dateCreated\",\n \"dateModified\"\n ]\n },\n \"subject\": {\n \"condition\": {\n \"attrs\": []\n },\n \"entities\": [\n {\n \"idPattern\": \".*\",\n \"type\": \"Device\"\n }\n ]\n }\n}" }, "url": { "raw": "http://{{ORION_EP}}/v2/subscriptions", "protocol": "http", "host": [ "{{ORION_EP}}" ], "path": [ "v2", "subscriptions" ] }, "description": "Subscribe Comet to Orion changes in Swarm" }, "response": [] }, { "name": "Orion subscription", "request": { "method": "DELETE", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "fiware-service", "value": "default", "disabled": true }, { "key": "fiware-ServicePath", "value": "/", "disabled": true } ], "body": {}, "url": { "raw": "http://{{ORION_EP}}/v2/subscriptions/5b3df2ae940fcc446763ef90", "protocol": "http", "host": [ "{{ORION_EP}}" ], "path": [ "v2", "subscriptions", "5b3df2ae940fcc446763ef90" ] } }, "response": [] }, { "name": "Orion subscription", "request": { "method": "PATCH", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "fiware-service", "value": "default" }, { "key": "fiware-ServicePath", "value": "/" } ], "body": { "mode": "raw", "raw": "{\n \"subject\": {\n \"entities\": [\n {\n \"idPattern\": \".*\",\n \"type\": \"TrafficFlowObserved\"\n }\n ],\n \"condition\": {\n \"attrs\": []\n }\n }\n}" }, "url": { "raw": "http://{{ORION_EP}}/v2/subscriptions/5a9ffeea40ec920fbdffb0e6", "protocol": "http", "host": [ "{{ORION_EP}}" ], "path": [ "v2", "subscriptions", "5a9ffeea40ec920fbdffb0e6" ] } }, "response": [] } ] }, { "name": "Comet", "description": "", "item": [ { "name": "Comet version", "request": { "method": "GET", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "fiware-service", "value": "default" }, { "key": "fiware-ServicePath", "value": "/" } ], "body": {}, "url": { "raw": "http://{{COMET_EP}}/version", "protocol": "http", "host": [ "{{COMET_EP}}" ], "path": [ "version" ] }, "description": "Orion version in Swarm" }, "response": [] }, { "name": "Comet subscribe", "request": { "method": "POST", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "fiware-service", "value": "default" }, { "key": "fiware-ServicePath", "value": "/" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"entities\": [\n {\n \"type\": \"Room\",\n \"id\": \"Room1\"\n }\n ],\n \"attributes\": [\n \"temperature\",\n \"pressure\"\n ],\n \"reference\": \"http://comet:8666/notify\",\n \"notifyConditions\": [\n {\n \"type\": \"ONCHANGE\",\n \"condValues\": [\n \"temperature\",\n \"pressure\"\n ]\n }\n ]\n}" }, "url": { "raw": "http://{{ORION_EP}}/v1/subscribeContext", "protocol": "http", "host": [ "{{ORION_EP}}" ], "path": [ "v1", "subscribeContext" ] }, "description": "Subscribe Comet to Orion changes in Swarm" }, "response": [] }, { "name": "Comet raw information", "request": { "method": "GET", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "fiware-service", "value": "default" }, { "key": "fiware-ServicePath", "value": "/" } ], "body": {}, "url": { "raw": "http://{{COMET_EP}}/STH/v1/contextEntities/type/TrafficFlowObserved/id/traffic_flow_observer_0/attributes/intensity?lastN=10&hLimit=10", "protocol": "http", "host": [ "{{COMET_EP}}" ], "path": [ "STH", "v1", "contextEntities", "type", "TrafficFlowObserved", "id", "traffic_flow_observer_0", "attributes", "intensity" ], "query": [ { "key": "lastN", "value": "10" }, { "key": "hLimit", "value": "10" } ] }, "description": "Historical data in Swarm" }, "response": [ { "id": "eed6ecd6-00d6-425d-84a6-9b840fd42f51", "name": "Comet raw information", "originalRequest": { "method": "GET", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "fiware-service", "value": "default" }, { "key": "fiware-ServicePath", "value": "/" } ], "body": {}, "url": { "raw": "http://{{COMET_EP}}/STH/v1/contextEntities/type/TrafficFlowObserved/id/traffic_flow_observer_0/attributes/intensity?lastN=10&hLimit=10", "protocol": "http", "host": [ "{{COMET_EP}}" ], "path": [ "STH", "v1", "contextEntities", "type", "TrafficFlowObserved", "id", "traffic_flow_observer_0", "attributes", "intensity" ], "query": [ { "key": "lastN", "value": "10" }, { "key": "hLimit", "value": "10" } ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Connection", "value": "keep-alive", "name": "Connection", "description": "Options that are desired for the connection" }, { "key": "Date", "value": "Tue, 28 Nov 2017 12:05:34 GMT", "name": "Date", "description": "The date and time that the message was sent" }, { "key": "Transfer-Encoding", "value": "chunked", "name": "Transfer-Encoding", "description": "The form of encoding used to safely transfer the entity to the user. Currently defined methods are: chunked, compress, deflate, gzip, identity." }, { "key": "cache-control", "value": "no-cache", "name": "cache-control", "description": "Tells all caching mechanisms from server to client whether they may cache this object. It is measured in seconds" }, { "key": "content-encoding", "value": "gzip", "name": "content-encoding", "description": "The type of encoding used on the data." }, { "key": "content-type", "value": "application/json; charset=utf-8", "name": "content-type", "description": "The mime type of this content" }, { "key": "fiware-correlator", "value": "fa01e0e2-f6de-4dfd-96b5-2c6c43b40c6c", "name": "fiware-correlator", "description": "Custom header" }, { "key": "vary", "value": "accept-encoding", "name": "vary", "description": "Tells downstream proxies how to match future request headers to decide whether the cached response can be used rather than requesting a fresh one from the origin server." } ], "cookie": [], "body": "{\"contextResponses\":[{\"contextElement\":{\"attributes\":[{\"name\":\"intensity\",\"values\":[{\"recvTime\":\"2017-11-24T09:30:17.797Z\",\"attrType\":\"Number\",\"attrValue\":0},{\"recvTime\":\"2017-11-24T09:30:26.859Z\",\"attrType\":\"Number\",\"attrValue\":1},{\"recvTime\":\"2017-11-24T09:30:35.915Z\",\"attrType\":\"Number\",\"attrValue\":1},{\"recvTime\":\"2017-11-24T09:30:44.974Z\",\"attrType\":\"Number\",\"attrValue\":3},{\"recvTime\":\"2017-11-24T09:30:54.051Z\",\"attrType\":\"Number\",\"attrValue\":0},{\"recvTime\":\"2017-11-24T09:31:03.140Z\",\"attrType\":\"Number\",\"attrValue\":1},{\"recvTime\":\"2017-11-24T09:31:12.209Z\",\"attrType\":\"Number\",\"attrValue\":3},{\"recvTime\":\"2017-11-24T09:31:21.290Z\",\"attrType\":\"Number\",\"attrValue\":3},{\"recvTime\":\"2017-11-24T09:31:30.342Z\",\"attrType\":\"Number\",\"attrValue\":1},{\"recvTime\":\"2017-11-24T17:03:30.560Z\",\"attrType\":\"Number\",\"attrValue\":9}]}],\"id\":\"traffic_flow_observer_0\",\"isPattern\":false,\"type\":\"TrafficFlowObserved\"},\"statusCode\":{\"code\":\"200\",\"reasonPhrase\":\"OK\"}}]}" } ] }, { "name": "Comet aggregated information", "request": { "method": "GET", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "fiware-service", "value": "default" }, { "key": "fiware-ServicePath", "value": "/" } ], "body": {}, "url": { "raw": "http://{{COMET_EP}}/STH/v1/contextEntities/type/TrafficFlowObserved/id/traffic_flow_observer_0/attributes/intensity?aggrMethod=max&aggrPeriod=hour&hLimit=10", "protocol": "http", "host": [ "{{COMET_EP}}" ], "path": [ "STH", "v1", "contextEntities", "type", "TrafficFlowObserved", "id", "traffic_flow_observer_0", "attributes", "intensity" ], "query": [ { "key": "aggrMethod", "value": "max" }, { "key": "aggrPeriod", "value": "hour" }, { "key": "hLimit", "value": "10" } ] }, "description": "Historical data in Swarm" }, "response": [] } ] }, { "name": "QuantumLeap", "description": "", "item": [ { "name": "QL version", "request": { "method": "GET", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "fiware-service", "value": "default", "disabled": true }, { "key": "fiware-ServicePath", "value": "/", "disabled": true } ], "body": {}, "url": { "raw": "http://{{QL_EP}}/v2/version", "protocol": "http", "host": [ "{{QL_EP}}" ], "path": [ "v2", "version" ] }, "description": "Orion version in Swarm" }, "response": [] }, { "name": "QL subscribe", "request": { "method": "POST", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "fiware-service", "value": "default", "disabled": true }, { "key": "fiware-ServicePath", "value": "/", "disabled": true } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "http://{{QL_EP}}/v2/subscribe?orionUrl=http://orion:1026/v2&quantumleapUrl=http://quantumleap:8668/v2&entityType=AirQualityObserved", "protocol": "http", "host": [ "{{QL_EP}}" ], "path": [ "v2", "subscribe" ], "query": [ { "key": "orionUrl", "value": "http://orion:1026/v2" }, { "key": "quantumleapUrl", "value": "http://quantumleap:8668/v2" }, { "key": "entityType", "value": "AirQualityObserved" }, { "key": "idPattern", "value": null, "disabled": true }, { "key": "attributes", "value": null, "disabled": true } ] }, "description": "Subscribe Comet to Orion changes in Swarm" }, "response": [] }, { "name": "QL notify", "request": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "Fiware-Service", "value": "default", "disabled": true }, { "key": "Fiware-ServicePath", "value": "/", "disabled": true } ], "body": { "mode": "raw", "raw": "{\n\t\"subscriptionId\": \"5947d174793fe6f7eb5e3923\", \n\t\"data\": [{\n\t\t\"id\": \"wcbe001\",\n\t\t\"type\": \"WasteContainer\", \n\t\t\"address\": {\n\t\t\"type\": \"StructuredValue\",\n\t\t\"value\": {\n\t\t\t\"streetAddress\": \"Slachthuislaan\",\n \t\t\"postOfficeBoxNumber\": \"44\",\n \t\t\"addressLocality\": \"Antwerpen\",\n \t\t\"addressCountry\": \"BE\"\n\t\t},\n\t\t\"metadata\": {}\n\t\t},\n\t\t\"load\": {\"type\": \"Number\", \"value\": 0.4, \"metadata\": {}}, \n\t\t\"humidity\": {\"type\": \"Number\", \"value\": 0.8, \"metadata\": {}}\n\t}]\n}" }, "url": { "raw": "http://{{QL_EP}}/v2/notify", "protocol": "http", "host": [ "{{QL_EP}}" ], "path": [ "v2", "notify" ] }, "description": "Insert entities into QL" }, "response": [] }, { "name": "QL query 1T1E1A", "request": { "method": "GET", "header": [ { "key": "Accept", "value": "application/json" } ], "body": {}, "url": { "raw": "http://{{QL_EP}}/v2/entities/air_quality_observer_be_001/attrs/precipitation?type=AirQualityObserved", "protocol": "http", "host": [ "{{QL_EP}}" ], "path": [ "v2", "entities", "air_quality_observer_be_001", "attrs", "precipitation" ], "query": [ { "key": "type", "value": "AirQualityObserved", "description": "COMPULSORY FOR NOW" }, { "key": "fromDate", "value": "2018-04-04T00:00:00", "disabled": true }, { "key": "toDate", "value": "2018-04-04T00:00:00", "disabled": true }, { "key": "lastN", "value": "4", "disabled": true }, { "key": "limit", "value": "2", "disabled": true }, { "key": "offset", "value": "1", "disabled": true }, { "key": "aggrMethod", "value": "max", "disabled": true } ] }, "description": "Query historical values of 1 attribute of 1 entity of 1 type." }, "response": [] }, { "name": "QL query 1T1ENA", "request": { "method": "GET", "header": [ { "key": "Accept", "value": "application/json" } ], "body": {}, "url": { "raw": "http://{{QL_EP}}/v2/entities/air_quality_observer_be_001?type=AirQualityObserved&attrs=NO2,CO,precipitation&lastN=4", "protocol": "http", "host": [ "{{QL_EP}}" ], "path": [ "v2", "entities", "air_quality_observer_be_001" ], "query": [ { "key": "type", "value": "AirQualityObserved", "description": "COMPULSORY FOR NOW" }, { "key": "attrs", "value": "NO2,CO,precipitation" }, { "key": "aggrMethod", "value": "avg", "disabled": true }, { "key": "fromDate", "value": "2018-04-04T00:00:00", "disabled": true }, { "key": "toDate", "value": "2018-04-04T00:00:00", "disabled": true }, { "key": "lastN", "value": "4" }, { "key": "limit", "value": "2", "disabled": true }, { "key": "offset", "value": "1", "disabled": true } ] }, "description": "Query historical values of 1 attribute of 1 entity of 1 type." }, "response": [] }, { "name": "QL delete entity", "request": { "method": "DELETE", "header": [], "body": {}, "url": { "raw": "http://{{QL_EP}}/v2/entities/airqualityobserved_0?type=AirQualityObserved&fromDate=2018-04-04T00:00:00&toDate=2018-04-04T00:00:00&lastN=10", "protocol": "http", "host": [ "{{QL_EP}}" ], "path": [ "v2", "entities", "airqualityobserved_0" ], "query": [ { "key": "type", "value": "AirQualityObserved" }, { "key": "fromDate", "value": "2018-04-04T00:00:00" }, { "key": "toDate", "value": "2018-04-04T00:00:00" }, { "key": "lastN", "value": "10" } ] } }, "response": [] }, { "name": "QL delete entities", "request": { "method": "DELETE", "header": [], "body": {}, "url": { "raw": "http://{{QL_EP}}/v2/types/AirQualityObserved", "protocol": "http", "host": [ "{{QL_EP}}" ], "path": [ "v2", "types", "AirQualityObserved" ] } }, "response": [] } ] } ] }