From f92db09290edc936d949fff7e0fdbd9581152951 Mon Sep 17 00:00:00 2001 From: Drasko DRASKOVIC Date: Wed, 18 May 2016 20:38:36 +0200 Subject: [PATCH] Add Postman HTTP RESTful API testing collections Signed-off-by: Drasko DRASKOVIC --- .../mainfluxHttp.postman_collection.json | 88 +++++++++++++++++++ 1 file changed, 88 insertions(+) create mode 100644 utils/postman/mainfluxHttp.postman_collection.json diff --git a/utils/postman/mainfluxHttp.postman_collection.json b/utils/postman/mainfluxHttp.postman_collection.json new file mode 100644 index 00000000..4faf42ca --- /dev/null +++ b/utils/postman/mainfluxHttp.postman_collection.json @@ -0,0 +1,88 @@ +{ + "id": "d9799076-e11c-8926-da5e-9092763cf5bb", + "name": "mainfluxHttp", + "description": "", + "order": [ + "b27812bf-0e9b-7a20-102c-b901c535e35f", + "2609fa8b-e39b-5cd9-407e-81ff4d1124b7", + "c28e0d5b-b271-960b-6b41-f3c2b52670b1", + "887ad31c-2e30-f600-1035-68c38c11c3f7" + ], + "folders": [], + "timestamp": 1463596373226, + "owner": "", + "remoteLink": "", + "public": false, + "requests": [ + { + "id": "2609fa8b-e39b-5cd9-407e-81ff4d1124b7", + "url": "http://localhost:7070/devices/3686f6d0-1c68-11e6-8610-27f9510f1a02", + "method": "DELETE", + "headers": "Content-Type: application/json\n", + "data": null, + "dataMode": "params", + "tests": null, + "preRequestScript": null, + "currentHelper": "normal", + "pathVariables": {}, + "version": 2, + "name": "http://localhost:7070/devices/3686f6d0-1c68-11e6-8610-27f9510f1a02", + "description": "", + "descriptionFormat": "html", + "collectionId": "d9799076-e11c-8926-da5e-9092763cf5bb" + }, + { + "id": "887ad31c-2e30-f600-1035-68c38c11c3f7", + "url": "http://localhost:7070/devices", + "method": "POST", + "headers": "Content-Type: application/json\n", + "data": [], + "dataMode": "raw", + "tests": null, + "preRequestScript": null, + "currentHelper": "normal", + "pathVariables": {}, + "version": 2, + "name": "http://localhost:7070/devices", + "description": "", + "descriptionFormat": "html", + "collectionId": "d9799076-e11c-8926-da5e-9092763cf5bb", + "rawModeData": "{\n \"deviceName\" : \"board01\",\n \"deviceType\" : \"weio\"\n}" + }, + { + "id": "b27812bf-0e9b-7a20-102c-b901c535e35f", + "url": "http://localhost:7070/devices", + "method": "GET", + "headers": "Content-Type: application/json\n", + "data": null, + "dataMode": "params", + "tests": null, + "preRequestScript": null, + "currentHelper": "normal", + "pathVariables": {}, + "version": 2, + "name": "http://localhost:7070/devices", + "description": "", + "descriptionFormat": "html", + "collectionId": "d9799076-e11c-8926-da5e-9092763cf5bb" + }, + { + "id": "c28e0d5b-b271-960b-6b41-f3c2b52670b1", + "url": "http://localhost:7070/devices/3686f6d0-1c68-11e6-8610-27f9510f1a02", + "method": "PUT", + "headers": "Content-Type: application/json\n", + "data": [], + "dataMode": "raw", + "tests": null, + "preRequestScript": null, + "currentHelper": "normal", + "pathVariables": {}, + "version": 2, + "name": "http://localhost:7070/devices/3686f6d0-1c68-11e6-8610-27f9510f1a02", + "description": "", + "descriptionFormat": "html", + "collectionId": "d9799076-e11c-8926-da5e-9092763cf5bb", + "rawModeData": "{\n \"deviceName\" : \"board05\",\n \"deviceType\" : \"ESP7766\",\n \"attributes\": [\n {\n \"temperature\": 15\n },\n {\n \"pressure\": 10\n \n }\n ]\n}\n" + } + ] +} \ No newline at end of file