{"info":{"_postman_id":"e2f9ea8b-dc4a-491d-9355-6bd1e690c4dc","name":"Dispatcher Client API","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"description":"<html><head></head><body></body></html>","owner":"8745432","collectionId":"e2f9ea8b-dc4a-491d-9355-6bd1e690c4dc","publishedId":"SW7bzSEv","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"306D8A","highlight":"16BBE5"},"publishDate":"2019-11-21T23:39:34.000Z"},"item":[{"name":"Data API","item":[{"name":"Get Transporters","id":"f74a0c5c-f6c5-4900-b886-80b78242a664","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":"{\r\n    \"client_id\": 1,\r\n    \"host\": \"127.0.0.1\",\r\n    \"port\": 8502,\r\n    \"name\": \"Signal Injector\",\r\n    \"address\": 0,\r\n    \"signal\": {\r\n      \"name\": \"Signal A\",\r\n      \"unit\": \"seconds\",\r\n      \"datatype\": \"INT16\",\r\n      \"values\": [\r\n        { \"time\": 1, \"value\": 1 },\r\n        { \"time\": 2, \"value\": 2 },\r\n        { \"time\": 3, \"value\": 3 },\r\n        { \"time\": 4, \"value\": 4 },\r\n        { \"time\": 5, \"value\": 5 },\r\n        { \"time\": 10, \"value\": 10 },\r\n        { \"time\": 15, \"value\": 15 },\r\n        { \"time\": 20, \"value\": -20 },\r\n        { \"time\": 30, \"value\": -30 },\r\n        { \"time\": 60, \"value\": -60 }\r\n      ]\r\n    }\r\n  }"},"url":"{{url}}/api/transporters/","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{auth}}"}]},"isInherited":true,"source":{"_postman_id":"e2f9ea8b-dc4a-491d-9355-6bd1e690c4dc","id":"e2f9ea8b-dc4a-491d-9355-6bd1e690c4dc","name":"Dispatcher Client API","type":"collection"}},"urlObject":{"path":["api","transporters",""],"host":["{{url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"f74a0c5c-f6c5-4900-b886-80b78242a664"},{"name":"Get Transporter Resources","id":"36b6f3a7-6e55-4b58-a7dc-78fd0d3eb74d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":"{\r\n    \"client_id\": 1,\r\n    \"host\": \"127.0.0.1\",\r\n    \"port\": 8502,\r\n    \"name\": \"Signal Injector\",\r\n    \"address\": 0,\r\n    \"signal\": {\r\n      \"name\": \"Signal A\",\r\n      \"unit\": \"seconds\",\r\n      \"datatype\": \"INT16\",\r\n      \"values\": [\r\n        { \"time\": 1, \"value\": 1 },\r\n        { \"time\": 2, \"value\": 2 },\r\n        { \"time\": 3, \"value\": 3 },\r\n        { \"time\": 4, \"value\": 4 },\r\n        { \"time\": 5, \"value\": 5 },\r\n        { \"time\": 10, \"value\": 10 },\r\n        { \"time\": 15, \"value\": 15 },\r\n        { \"time\": 20, \"value\": -20 },\r\n        { \"time\": 30, \"value\": -30 },\r\n        { \"time\": 60, \"value\": -60 }\r\n      ]\r\n    }\r\n  }"},"url":"{{url}}/api/transporter-resources/?transporter_id=1","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{auth}}"}]},"isInherited":true,"source":{"_postman_id":"e2f9ea8b-dc4a-491d-9355-6bd1e690c4dc","id":"e2f9ea8b-dc4a-491d-9355-6bd1e690c4dc","name":"Dispatcher Client API","type":"collection"}},"urlObject":{"path":["api","transporter-resources",""],"host":["{{url}}"],"query":[{"key":"transporter_id","value":"1"}],"variable":[]}},"response":[],"_postman_id":"36b6f3a7-6e55-4b58-a7dc-78fd0d3eb74d"},{"name":"Get Sources","id":"e80d2189-b836-47ce-bdb9-383cae1570d5","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":"{\r\n    \"client_id\": 1,\r\n    \"host\": \"127.0.0.1\",\r\n    \"port\": 8502,\r\n    \"name\": \"Signal Injector\",\r\n    \"address\": 0,\r\n    \"signal\": {\r\n      \"name\": \"Signal A\",\r\n      \"unit\": \"seconds\",\r\n      \"datatype\": \"INT16\",\r\n      \"values\": [\r\n        { \"time\": 1, \"value\": 1 },\r\n        { \"time\": 2, \"value\": 2 },\r\n        { \"time\": 3, \"value\": 3 },\r\n        { \"time\": 4, \"value\": 4 },\r\n        { \"time\": 5, \"value\": 5 },\r\n        { \"time\": 10, \"value\": 10 },\r\n        { \"time\": 15, \"value\": 15 },\r\n        { \"time\": 20, \"value\": -20 },\r\n        { \"time\": 30, \"value\": -30 },\r\n        { \"time\": 60, \"value\": -60 }\r\n      ]\r\n    }\r\n  }"},"url":"{{url}}/api/sources/","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{auth}}"}]},"isInherited":true,"source":{"_postman_id":"e2f9ea8b-dc4a-491d-9355-6bd1e690c4dc","id":"e2f9ea8b-dc4a-491d-9355-6bd1e690c4dc","name":"Dispatcher Client API","type":"collection"}},"urlObject":{"path":["api","sources",""],"host":["{{url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"e80d2189-b836-47ce-bdb9-383cae1570d5"},{"name":"Get Devices","id":"98fa98a0-6dca-450b-bea4-bebd7bec56cc","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":"{\r\n    \"client_id\": 1,\r\n    \"host\": \"127.0.0.1\",\r\n    \"port\": 8502,\r\n    \"name\": \"Signal Injector\",\r\n    \"address\": 0,\r\n    \"signal\": {\r\n      \"name\": \"Signal A\",\r\n      \"unit\": \"seconds\",\r\n      \"datatype\": \"INT16\",\r\n      \"values\": [\r\n        { \"time\": 1, \"value\": 1 },\r\n        { \"time\": 2, \"value\": 2 },\r\n        { \"time\": 3, \"value\": 3 },\r\n        { \"time\": 4, \"value\": 4 },\r\n        { \"time\": 5, \"value\": 5 },\r\n        { \"time\": 10, \"value\": 10 },\r\n        { \"time\": 15, \"value\": 15 },\r\n        { \"time\": 20, \"value\": -20 },\r\n        { \"time\": 30, \"value\": -30 },\r\n        { \"time\": 60, \"value\": -60 }\r\n      ]\r\n    }\r\n  }"},"url":"{{url}}/api/devices/","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{auth}}"}]},"isInherited":true,"source":{"_postman_id":"e2f9ea8b-dc4a-491d-9355-6bd1e690c4dc","id":"e2f9ea8b-dc4a-491d-9355-6bd1e690c4dc","name":"Dispatcher Client API","type":"collection"}},"urlObject":{"path":["api","devices",""],"host":["{{url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"98fa98a0-6dca-450b-bea4-bebd7bec56cc"},{"name":"Get Modbus Data","id":"af837903-8698-407e-922a-957ed50bbe70","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{url}}/api/data/?timestamp[$gt]=2019-10-23T18:55:00Z&timestamp[$lt]=2019-10-23T19:10:00Z&device_id=8388&field_table=HOLDING_REGISTER&field_address=40001&$limit=100\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{auth}}"}]},"isInherited":true,"source":{"_postman_id":"e2f9ea8b-dc4a-491d-9355-6bd1e690c4dc","id":"e2f9ea8b-dc4a-491d-9355-6bd1e690c4dc","name":"Dispatcher Client API","type":"collection"}},"urlObject":{"path":["api","data",""],"host":["{{url}}"],"query":[{"key":"timestamp[$gt]","value":"2019-10-23T18:55:00Z"},{"key":"timestamp[$lt]","value":"2019-10-23T19:10:00Z"},{"key":"device_id","value":"8388"},{"key":"field_table","value":"HOLDING_REGISTER"},{"key":"field_address","value":"40001"},{"key":"$limit","value":"100\n"}],"variable":[]}},"response":[],"_postman_id":"af837903-8698-407e-922a-957ed50bbe70"}],"id":"bf8251f9-209e-47be-9a95-3f35cfa08d91","_postman_id":"bf8251f9-209e-47be-9a95-3f35cfa08d91","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{auth}}"}]},"isInherited":true,"source":{"_postman_id":"e2f9ea8b-dc4a-491d-9355-6bd1e690c4dc","id":"e2f9ea8b-dc4a-491d-9355-6bd1e690c4dc","name":"Dispatcher Client API","type":"collection"}}},{"name":"Authenticate","id":"dfdaceb1-80fa-485f-b516-b539cd5853b4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n\t\"strategy\": \"local\",\n\t\"email\": \"{{username}}\",\n\t\"password\": \"{{password}}\"\n}"},"url":"{{url}}/api/authentication","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{auth}}"}]},"isInherited":true,"source":{"_postman_id":"e2f9ea8b-dc4a-491d-9355-6bd1e690c4dc","id":"e2f9ea8b-dc4a-491d-9355-6bd1e690c4dc","name":"Dispatcher Client API","type":"collection"}},"urlObject":{"path":["api","authentication"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"dfdaceb1-80fa-485f-b516-b539cd5853b4"},{"name":"Get Injectors","id":"7235e778-e309-4205-8c5d-ec317f5632d1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":"{\r\n    \"client_id\": 1,\r\n    \"host\": \"127.0.0.1\",\r\n    \"port\": 8502,\r\n    \"name\": \"Signal Injector\",\r\n    \"address\": 0,\r\n    \"signal\": {\r\n      \"name\": \"Signal A\",\r\n      \"unit\": \"seconds\",\r\n      \"datatype\": \"INT16\",\r\n      \"values\": [\r\n        { \"time\": 1, \"value\": 1 },\r\n        { \"time\": 2, \"value\": 2 },\r\n        { \"time\": 3, \"value\": 3 },\r\n        { \"time\": 4, \"value\": 4 },\r\n        { \"time\": 5, \"value\": 5 },\r\n        { \"time\": 10, \"value\": 10 },\r\n        { \"time\": 15, \"value\": 15 },\r\n        { \"time\": 20, \"value\": -20 },\r\n        { \"time\": 30, \"value\": -30 },\r\n        { \"time\": 60, \"value\": -60 }\r\n      ]\r\n    }\r\n  }"},"url":"{{url}}/api/injectors/","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{auth}}"}]},"isInherited":true,"source":{"_postman_id":"e2f9ea8b-dc4a-491d-9355-6bd1e690c4dc","id":"e2f9ea8b-dc4a-491d-9355-6bd1e690c4dc","name":"Dispatcher Client API","type":"collection"}},"urlObject":{"path":["api","injectors",""],"host":["{{url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"7235e778-e309-4205-8c5d-ec317f5632d1"},{"name":"Set Signal Injector state","id":"2c31d186-83b6-4aff-be8e-29b925a5db1c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":"{\r\n    \"state\": \"RESUME\"\r\n  }"},"url":"{{url}}/api/injectors/signal-injector-test","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{auth}}"}]},"isInherited":true,"source":{"_postman_id":"e2f9ea8b-dc4a-491d-9355-6bd1e690c4dc","id":"e2f9ea8b-dc4a-491d-9355-6bd1e690c4dc","name":"Dispatcher Client API","type":"collection"}},"urlObject":{"path":["api","injectors","signal-injector-test"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"2c31d186-83b6-4aff-be8e-29b925a5db1c"},{"name":"Create Signal Injector","id":"800c377a-3a74-4c5b-ac6d-a68070a3b1f0","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":"{\r\n    \"client_id\": 1,\r\n    \"host\": \"127.0.0.1\",\r\n    \"port\": 8502,\r\n    \"name\": \"Signal Injector Test\",\r\n    \"address\": 0,\r\n    \"signal\": {\r\n      \"name\": \"Signal A\",\r\n      \"unit\": \"seconds\",\r\n      \"datatype\": \"INT16\",\r\n      \"values\": [\r\n        { \"time\": 1, \"value\": 1 },\r\n        { \"time\": 2, \"value\": 2 },\r\n        { \"time\": 3, \"value\": 3 },\r\n        { \"time\": 4, \"value\": 4 },\r\n        { \"time\": 5, \"value\": 5 },\r\n        { \"time\": 10, \"value\": 10 },\r\n        { \"time\": 15, \"value\": 15 },\r\n        { \"time\": 20, \"value\": -20 },\r\n        { \"time\": 30, \"value\": -30 },\r\n        { \"time\": 60, \"value\": -60 }\r\n      ]\r\n    }\r\n  }"},"url":"{{url}}/api/injectors","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{auth}}"}]},"isInherited":true,"source":{"_postman_id":"e2f9ea8b-dc4a-491d-9355-6bd1e690c4dc","id":"e2f9ea8b-dc4a-491d-9355-6bd1e690c4dc","name":"Dispatcher Client API","type":"collection"}},"urlObject":{"path":["api","injectors"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"800c377a-3a74-4c5b-ac6d-a68070a3b1f0"},{"name":"Delete Injector","id":"361c9308-6df2-4ff5-9a1b-3ed18bddfd92","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":"{\r\n    \"client_id\": 1,\r\n    \"host\": \"127.0.0.1\",\r\n    \"port\": 8502,\r\n    \"name\": \"Signal Injector\",\r\n    \"address\": 0,\r\n    \"signal\": {\r\n      \"name\": \"Signal A\",\r\n      \"unit\": \"seconds\",\r\n      \"datatype\": \"INT16\",\r\n      \"values\": [\r\n        { \"time\": 1, \"value\": 1 },\r\n        { \"time\": 2, \"value\": 2 },\r\n        { \"time\": 3, \"value\": 3 },\r\n        { \"time\": 4, \"value\": 4 },\r\n        { \"time\": 5, \"value\": 5 },\r\n        { \"time\": 10, \"value\": 10 },\r\n        { \"time\": 15, \"value\": 15 },\r\n        { \"time\": 20, \"value\": -20 },\r\n        { \"time\": 30, \"value\": -30 },\r\n        { \"time\": 60, \"value\": -60 }\r\n      ]\r\n    }\r\n  }"},"url":"{{url}}/api/injectors/signal-injector-test/","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{auth}}"}]},"isInherited":true,"source":{"_postman_id":"e2f9ea8b-dc4a-491d-9355-6bd1e690c4dc","id":"e2f9ea8b-dc4a-491d-9355-6bd1e690c4dc","name":"Dispatcher Client API","type":"collection"}},"urlObject":{"path":["api","injectors","signal-injector-test",""],"host":["{{url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"361c9308-6df2-4ff5-9a1b-3ed18bddfd92"},{"name":"Get Signals","id":"5e957740-03e5-4916-a647-17143347cc92","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":"{\r\n    \"client_id\": 1,\r\n    \"host\": \"127.0.0.1\",\r\n    \"port\": 8502,\r\n    \"name\": \"Signal Injector\",\r\n    \"address\": 0,\r\n    \"signal\": {\r\n      \"name\": \"Signal A\",\r\n      \"unit\": \"seconds\",\r\n      \"datatype\": \"INT16\",\r\n      \"values\": [\r\n        { \"time\": 1, \"value\": 1 },\r\n        { \"time\": 2, \"value\": 2 },\r\n        { \"time\": 3, \"value\": 3 },\r\n        { \"time\": 4, \"value\": 4 },\r\n        { \"time\": 5, \"value\": 5 },\r\n        { \"time\": 10, \"value\": 10 },\r\n        { \"time\": 15, \"value\": 15 },\r\n        { \"time\": 20, \"value\": -20 },\r\n        { \"time\": 30, \"value\": -30 },\r\n        { \"time\": 60, \"value\": -60 }\r\n      ]\r\n    }\r\n  }"},"url":"{{url}}/api/signals/","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{auth}}"}]},"isInherited":true,"source":{"_postman_id":"e2f9ea8b-dc4a-491d-9355-6bd1e690c4dc","id":"e2f9ea8b-dc4a-491d-9355-6bd1e690c4dc","name":"Dispatcher Client API","type":"collection"}},"urlObject":{"path":["api","signals",""],"host":["{{url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"5e957740-03e5-4916-a647-17143347cc92"},{"name":"Create Signal","id":"36392c62-5c1b-4cd9-8910-39334e5f83fb","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"name\": \"Signal A\",\n    \"unit\": \"seconds\",\n    \"datatype\": \"INT16\",\n    \"values\": [\n        {\n            \"time\": 1,\n            \"value\": 1\n        },\n        {\n            \"time\": 2,\n            \"value\": 2\n        },\n        {\n            \"time\": 3,\n            \"value\": 3\n        },\n        {\n            \"time\": 4,\n            \"value\": 4\n        },\n        {\n            \"time\": 5,\n            \"value\": 5\n        },\n        {\n            \"time\": 10,\n            \"value\": 10\n        },\n        {\n            \"time\": 15,\n            \"value\": 15\n        },\n        {\n            \"time\": 20,\n            \"value\": -20\n        },\n        {\n            \"time\": 30,\n            \"value\": -30\n        },\n        {\n            \"time\": 60,\n            \"value\": -60\n        }\n    ]\n}"},"url":"{{url}}/api/signals","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{auth}}"}]},"isInherited":true,"source":{"_postman_id":"e2f9ea8b-dc4a-491d-9355-6bd1e690c4dc","id":"e2f9ea8b-dc4a-491d-9355-6bd1e690c4dc","name":"Dispatcher Client API","type":"collection"}},"urlObject":{"path":["api","signals"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"36392c62-5c1b-4cd9-8910-39334e5f83fb"},{"name":"Delete Signal","id":"5bba04d4-33a9-4012-8c97-eaeba67a9cc2","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"{{url}}/api/signals/:id","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{auth}}"}]},"isInherited":true,"source":{"_postman_id":"e2f9ea8b-dc4a-491d-9355-6bd1e690c4dc","id":"e2f9ea8b-dc4a-491d-9355-6bd1e690c4dc","name":"Dispatcher Client API","type":"collection"}},"urlObject":{"path":["api","signals",":id"],"host":["{{url}}"],"query":[],"variable":[{"id":"7eb5e49f-438f-4773-b715-4347f0ef2b43","type":"string","value":"","key":"id"}]}},"response":[],"_postman_id":"5bba04d4-33a9-4012-8c97-eaeba67a9cc2"}],"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{auth}}"}]}},"event":[{"listen":"prerequest","script":{"id":"30561483-4974-4e6b-a785-646a203d14dc","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"cd0725ec-05b2-4f05-bd3e-05f1249c0ea6","type":"text/javascript","exec":[""]}}]}