{"info":{"_postman_id":"b75d1d34-6240-4ac6-953a-978bb05b7a8d","name":"Trigger-Queue","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"description":"<html><head></head><body></body></html>","owner":"1907478","collectionId":"b75d1d34-6240-4ac6-953a-978bb05b7a8d","publishedId":"RzZ6GzUp","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"EF5B25"},"publishDate":"2018-11-03T16:26:20.000Z"},"item":[{"name":"Test (ping-pong)","id":"dc4d904d-9392-4316-9f42-24cd4c0c9d16","request":{"method":"GET","header":[],"url":"http://localhost:8000/api/ping","description":"<p>a ping pong request to test if the server is up and running properly</p>\n","urlObject":{"protocol":"http","port":"8000","path":["api","ping"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"e00bd480-6a2d-4948-a6f3-e11f1d137fc7","name":"Test (ping-pong)","originalRequest":{"method":"GET","header":[],"url":"http://localhost:8000/api/ping"},"status":"OK","code":200,"_postman_previewlanguage":"plain","header":[{"key":"Date","value":"Sat, 03 Nov 2018 16:46:53 GMT"},{"key":"Content-Length","value":"6"},{"key":"Content-Type","value":"text/plain; charset=utf-8"}],"cookie":[],"responseTime":null,"body":"Pong!\n"}],"_postman_id":"dc4d904d-9392-4316-9f42-24cd4c0c9d16"},{"name":"Add Job to NLP Queue","id":"9e14898b-7c88-4ccf-9b0a-8d51d97816b9","request":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"service\": \"walk-through\",\n    \"action_key\": \"changeStepStove\",\n    \"action_params\": \"{\\\"increment_steps\\\": 2, \\\"send_to_nlp\\\": true, \\\"stove_start\\\": true}\",\n    \"trigger_keys\": [\n        \"passTrue\"\n    ],\n    \"trigger_params\": [\n        100\n    ]\n}"},"url":"10.0.0.3:8000/api/add","description":"<p>Add a job to the trigger queue for the service nlp</p>\n","urlObject":{"port":"8000","path":["api","add"],"host":["10","0","0","3"],"query":[],"variable":[]}},"response":[{"id":"344c4c3c-b95b-49cc-be54-d0ccf7b1728e","name":"Add Job to NLP Queue","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\"service\":\"nlp\",\"action_key\":\"mockAction\",\"action_params\":\"test action params\",\"trigger_keys\":[\"timer\"],\"trigger_params\": [10]}"},"url":"http://localhost:8000/api/add/nlp"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Date","value":"Sat, 03 Nov 2018 16:48:38 GMT"},{"key":"Content-Length","value":"55"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"nlp\",\n    \"job_id\": 6129484611666145821,\n    \"msg\": \"\"\n}"},{"id":"8d852345-4822-4839-bd86-401d952137e9","name":"Add Job to NLP Queue","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"service\": \"nlp\",\n    \"action_key\": \"changeStep\",\n    \"action_params\": \"{\\\"increment_steps\\\": 2, \\\"send_to_nlp\\\": true, \\\"stove_start\\\": true}\",\n    \"trigger_keys\": [\n        \"pass\"\n    ],\n    \"trigger_params\": [\n        100\n    ]\n}"},"url":"localhost:8000/api/add"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Date","value":"Wed, 05 Dec 2018 03:51:15 GMT"},{"key":"Content-Length","value":"55"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"nlp\",\n    \"job_id\": 8674665223082153551,\n    \"msg\": \"\"\n}"}],"_postman_id":"9e14898b-7c88-4ccf-9b0a-8d51d97816b9"},{"name":"Show NLP Queue","id":"82c64bb7-de30-4b35-a6c6-a8c7be81d3de","request":{"method":"GET","header":[],"url":"http://localhost:8000/api/show/nlp","description":"<p>Show the trigger queue for just NLP</p>\n","urlObject":{"protocol":"http","port":"8000","path":["api","show","nlp"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"1d568736-d022-42e2-8f4e-a93963e2c514","name":"Show NLP Queue","originalRequest":{"method":"GET","header":[],"url":"http://localhost:8000/api/show/nlp"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Date","value":"Wed, 05 Dec 2018 03:52:07 GMT"},{"key":"Content-Length","value":"302"}],"cookie":[],"responseTime":null,"body":"{\n    \"items\": {\n        \"8674665223082153551\": {\n            \"id\": 8674665223082153551,\n            \"trigger_keys\": [\n                \"pass\"\n            ],\n            \"trigger_params\": [\n                100\n            ],\n            \"action_key\": \"changeStep\",\n            \"action_params\": \"{\\\"increment_steps\\\": 2, \\\"send_to_nlp\\\": true, \\\"stove_start\\\": true}\",\n            \"subscriber\": \"nlp\",\n            \"created_at\": \"2018-12-04T21:51:15.152731-06:00\",\n            \"errors\": []\n        }\n    }\n}"}],"_postman_id":"82c64bb7-de30-4b35-a6c6-a8c7be81d3de"},{"name":"Show All Queues","id":"0765c08d-d9ff-4786-89a8-533306d32073","request":{"method":"GET","header":[],"url":"http://localhost:8000/api/show","description":"<p>Show all jobs in the trigger queues</p>\n","urlObject":{"protocol":"http","port":"8000","path":["api","show"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"1d5e07cf-cf4d-49a9-a99e-b03c2b38b038","name":"Show All Queues","originalRequest":{"method":"GET","header":[],"url":"http://localhost:8000/api/show"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Date","value":"Wed, 05 Dec 2018 03:52:52 GMT"},{"key":"Content-Length","value":"673"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"body\": {\n        \"nlp\": {\n            \"items\": {\n                \"8674665223082153551\": {\n                    \"id\": 8674665223082153551,\n                    \"trigger_keys\": [\n                        \"pass\"\n                    ],\n                    \"trigger_params\": [\n                        100\n                    ],\n                    \"action_key\": \"changeStep\",\n                    \"action_params\": \"{\\\"increment_steps\\\": 2, \\\"send_to_nlp\\\": true, \\\"stove_start\\\": true}\",\n                    \"subscriber\": \"nlp\",\n                    \"created_at\": \"2018-12-04T21:51:15.152731-06:00\",\n                    \"errors\": []\n                }\n            }\n        },\n        \"other\": {\n            \"items\": {}\n        },\n        \"walk-through\": {\n            \"items\": {\n                \"5577006791947779410\": {\n                    \"id\": 5577006791947779410,\n                    \"trigger_keys\": [\n                        \"weight_>=\"\n                    ],\n                    \"trigger_params\": [\n                        3785\n                    ],\n                    \"action_key\": \"changeStep\",\n                    \"action_params\": \"{\\\"increment_steps\\\": 1, \\\"send_to_nlp\\\": true}\",\n                    \"subscriber\": \"walk-through\",\n                    \"created_at\": \"2018-12-04T21:39:49.839349-06:00\",\n                    \"errors\": []\n                }\n            }\n        }\n    }\n}"}],"_postman_id":"0765c08d-d9ff-4786-89a8-533306d32073"},{"name":"Delete Job From NLP Queue","id":"33cc865d-fd1e-4409-8f79-69ee62fce869","request":{"method":"DELETE","header":[],"url":"http://localhost:8000/api/delete/nlp/{id}","urlObject":{"protocol":"http","port":"8000","path":["api","delete","nlp","{id}"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"33cc865d-fd1e-4409-8f79-69ee62fce869"},{"name":"Clear NLP Queue","id":"9271eb60-f68f-49ad-8b25-a7e8273c5f07","request":{"method":"DELETE","header":[],"url":"http://localhost:8000/api/clear/nlp","description":"<p>Clear a particular queue by name</p>\n","urlObject":{"protocol":"http","port":"8000","path":["api","clear","nlp"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"1049e5e5-7482-4b3a-ae14-bb007942c628","name":"Clear Walk-Through Queue","originalRequest":{"method":"DELETE","header":[],"url":"http://localhost:8000/api/clear/walk-through"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Date","value":"Wed, 05 Dec 2018 03:54:03 GMT"},{"key":"Content-Length","value":"21"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\"\n}"}],"_postman_id":"9271eb60-f68f-49ad-8b25-a7e8273c5f07"},{"name":"Get Temperature Value","id":"3ed3b7a2-a6d3-4f58-ba48-915cc366a25e","request":{"method":"GET","header":[],"url":"localhost:8000/api/getTemp","urlObject":{"port":"8000","path":["api","getTemp"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"3ed3b7a2-a6d3-4f58-ba48-915cc366a25e"},{"name":"Get Weight from scale","id":"d811d075-542f-4ec9-96d1-f5d62eec6992","request":{"method":"GET","header":[],"url":"10.0.0.2:8000/api/getWeight","urlObject":{"port":"8000","path":["api","getWeight"],"host":["10","0","0","2"],"query":[],"variable":[]}},"response":[],"_postman_id":"d811d075-542f-4ec9-96d1-f5d62eec6992"},{"name":"Force execute an action","id":"56bc6bca-8c7a-41f1-b5dc-5e46651deb5a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"url":"http://localhost:8000/api/execute/nlp/5577006791947779410","urlObject":{"protocol":"http","port":"8000","path":["api","execute","nlp","5577006791947779410"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"56bc6bca-8c7a-41f1-b5dc-5e46651deb5a"}]}