{"info":{"_postman_id":"1457c82a-5810-4d64-8593-8922d2c4974b","name":"cmdboss","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"description":"<html><head></head><body></body></html>","owner":"2391814","collectionId":"1457c82a-5810-4d64-8593-8922d2c4974b","publishedId":"TzRPjV5h","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"EF5B25"},"publishDate":"2021-05-06T11:11:09.000Z"},"item":[{"name":"model management","item":[{"name":"add model","id":"577afee0-6841-46f2-bedb-1c4cd2250e81","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"x-api-key","value":"","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"base64_payload\": \"ZnJvbSBweWRhbnRpYyBpbXBvcnQgQmFzZU1vZGVsCgpjbGFzcyBkZXZpY2UoQmFzZU1vZGVsKToKICAgIGlkOiBpbnQKICAgIG5hbWUgPSAnSmFuZSBEb2Un\"\r\n}","options":{"raw":{"language":"json"}}},"url":"/models/device","urlObject":{"path":["models","device"],"host":[""],"query":[],"variable":[]}},"response":[],"_postman_id":"577afee0-6841-46f2-bedb-1c4cd2250e81"},{"name":"update model by object_id","id":"00eab3ce-36ba-4598-bf06-f7e28399d1f2","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[{"key":"x-api-key","type":"text","value":""}],"body":{"mode":"raw","raw":"        {\r\n            \"base64_payload\": \"eZnJvbeSBweWRhbnRpYyBpbXBvcnQgQmFzZU1vZGVsCgpjbGFzcyBkZXZpY2UoQmFzZU1vZGVsKToKICAgIG5hbWU6IHN0cg==\",\r\n            \"name\": \"device\",\r\n            \"object_id\": \"6095eec2e6854c844bb8abbd\"\r\n        }","options":{"raw":{"language":"json"}}},"url":"/models/6095eec2e6854c844bb8abbd","urlObject":{"path":["models","6095eec2e6854c844bb8abbd"],"host":[""],"query":[],"variable":[]}},"response":[],"_postman_id":"00eab3ce-36ba-4598-bf06-f7e28399d1f2"},{"name":"delete model","id":"2b7c7bec-7fe7-47a9-9443-e53cba1cddd2","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"x-api-key","type":"text","value":""}],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"/models/model_two","urlObject":{"path":["models","model_two"],"host":[""],"query":[],"variable":[]}},"response":[],"_postman_id":"2b7c7bec-7fe7-47a9-9443-e53cba1cddd2"},{"name":"retrieve models","id":"3feeed81-1ffe-40ea-8364-588d3e878b0b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"x-api-key","type":"text","value":""}],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"/models","urlObject":{"path":["models"],"host":[""],"query":[],"variable":[]}},"response":[],"_postman_id":"3feeed81-1ffe-40ea-8364-588d3e878b0b"},{"name":"retrieve model","id":"9d4ad1a2-d787-4619-9468-1d3e7b97a8be","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"x-api-key","type":"text","value":""}],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"/models/device","urlObject":{"path":["models","device"],"host":[""],"query":[],"variable":[]}},"response":[],"_postman_id":"9d4ad1a2-d787-4619-9468-1d3e7b97a8be"},{"name":"reload models","id":"7a894e94-9417-4f87-b543-5977f7d22f78","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"x-api-key","type":"text","value":""}],"body":{"mode":"raw","raw":"{\r\n    \"model_name\": \"test\",\r\n    \"base64_payload\": \"YWJjMTIzIT8kKiYoKSctPUB+\"\r\n}","options":{"raw":{"language":"json"}}},"url":"/reload-models","urlObject":{"path":["reload-models"],"host":[""],"query":[],"variable":[]}},"response":[],"_postman_id":"7a894e94-9417-4f87-b543-5977f7d22f78"}],"id":"ec590a62-9813-4270-b918-c89f1de561ba","_postman_id":"ec590a62-9813-4270-b918-c89f1de561ba","description":""},{"name":"hook management","item":[{"name":"add hook","id":"a70378e1-30ba-41df-b968-04aa8f4bfb3e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"x-api-key","type":"text","value":""}],"body":{"mode":"raw","raw":"{\r\n  \"name\": \"test_hook\",\r\n  \"base64_payload\": \"aW1wb3J0IGxvZ2dpbmcKCmZyb20gdHlwaW5nIGltcG9ydCBPcHRpb25hbAoKIiIiCmRlZmF1bHQgaG9vayBhbmQgYm9pbGVycGxhdGUgaG9vayB0ZW1wbGF0ZQpJTVBPUlRBTlQgTk9URVM6CiAgICAtIGhvb2sgZnVuY3Rpb24gbmFtZSBtdXN0IGJlICJydW5faG9vayIKICAgIC0gcGF5bG9hZCBpcyBhIGRpY3QgY29udGFpbmluZyB0aGUgcmVjb3JkCiIiIgoKbG9nID0gbG9nZ2luZy5nZXRMb2dnZXIoX19uYW1lX18pCgoKZGVmIHJ1bl9ob29rKHBheWxvYWQ6IE9wdGlvbmFsW2RpY3RdID0gTm9uZSk6CiAgICB0cnk6CiAgICAgICAgIyBwdXQgeW91ciBjb2RlIGhlcmUKICAgICAgICBsb2cuaW5mbygiaW0gYSBzdHVwaWQgaG9vayIpCiAgICBleGNlcHQgRXhjZXB0aW9uOgogICAgICAgIGxvZy5lcnJvcigiaW0gYSBzdHVwaWQgYnJva2VuIGhvb2siKQ==\",\r\n  \"events\": [\r\n    {\r\n      \"model\": \"device\",\r\n      \"order\": 0,\r\n      \"operation\": \"retrieve\"\r\n    },\r\n    {\r\n      \"model\": \"device\",\r\n      \"order\": 0,\r\n      \"operation\": \"update\"\r\n    }\r\n  ]\r\n}","options":{"raw":{"language":"json"}}},"url":"/hooks","urlObject":{"path":["hooks"],"host":[""],"query":[],"variable":[]}},"response":[],"_postman_id":"a70378e1-30ba-41df-b968-04aa8f4bfb3e"},{"name":"retrieve hooks","id":"575c5c61-b8d1-41cf-ac1d-5ca563358970","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"x-api-key","type":"text","value":""}],"body":{"mode":"raw","raw":"{\r\n    \"filter\": {\r\n    }\r\n}","options":{"raw":{"language":"json"}}},"url":"/hooks","urlObject":{"path":["hooks"],"host":[""],"query":[],"variable":[]}},"response":[],"_postman_id":"575c5c61-b8d1-41cf-ac1d-5ca563358970"},{"name":"delete hook","id":"efcc8a76-6f70-4ac0-87ee-55628b2d42a3","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"x-api-key","type":"text","value":""}],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"/hooks/device","urlObject":{"path":["hooks","device"],"host":[""],"query":[],"variable":[]}},"response":[],"_postman_id":"efcc8a76-6f70-4ac0-87ee-55628b2d42a3"},{"name":"update hook by object_id","id":"d0e28a28-ded8-4ad2-9fb4-84f139e2d495","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[{"key":"x-api-key","type":"text","value":""}],"body":{"mode":"raw","raw":"{\r\n  \"name\": \"test_hook\",\r\n  \"base64_payload\": \"aW1wb3J0IGxvZ2dpbmcKCmZyb20gdHlwaW5nIGltcG9ydCBPcHRpb25hbAoKIiIiCmRlZmF1bHQgaG9vayBhbmQgYm9pbGVycGxhdGUgaG9vayB0ZW1wbGF0ZQpJTVBPUlRBTlQgTk9URVM6CiAgICAtIGhvb2sgZnVuY3Rpb24gbmFtZSBtdXN0IGJlICJydW5faG9vayIKICAgIC0gcGF5bG9hZCBpcyBhIGRpY3QgY29udGFpbmluZyB0aGUgcmVjb3JkCiIiIgoKbG9nID0gbG9nZ2luZy5nZXRMb2dnZXIoX19uYW1lX18pCgoKZGVmIHJ1bl9ob29rKHBheWxvYWQ6IE9wdGlvbmFsW2RpY3RdID0gTm9uZSk6CiAgICB0cnk6CiAgICAgICAgIyBwdXQgeW91cyBjb2RlIGhlcmUKICAgICAgICBsb2cuaW5mbygiaW0gYSBzdHVwaWQgaG9vayIpCiAgICBleGNlcHQgRXhjZXB0aW9uOgogICAgICAgIGxvZy5lcnJvcigiaW0gYSBzdHVwaWQgYnJva2VuIGhvb2siKQ==\",\r\n  \"events\": [\r\n    {\r\n      \"model\": \"cat\",\r\n      \"order\": 0,\r\n      \"operation\": \"retrieve\"\r\n    },\r\n    {\r\n      \"model\": \"device\",\r\n      \"order\": 0,\r\n      \"operation\": \"update\"\r\n    }\r\n  ]\r\n}","options":{"raw":{"language":"json"}}},"url":"/hooks/6095ef20e6854c844bb8abc4","urlObject":{"path":["hooks","6095ef20e6854c844bb8abc4"],"host":[""],"query":[],"variable":[]}},"response":[],"_postman_id":"d0e28a28-ded8-4ad2-9fb4-84f139e2d495"},{"name":"retrieve hook","id":"bd2bbd08-3919-4949-87c0-bb0d042de82a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"x-api-key","type":"text","value":""}],"body":{"mode":"raw","raw":"{\r\n    \"filter\": {\r\n    }\r\n}","options":{"raw":{"language":"json"}}},"url":"/hooks/:_object_id","urlObject":{"path":["hooks",":_object_id"],"host":[""],"query":[],"variable":[{"type":"any","value":"","key":"_object_id"}]}},"response":[],"_postman_id":"bd2bbd08-3919-4949-87c0-bb0d042de82a"}],"id":"d3426c28-2a48-4c16-a27c-dae305ecfcf4","_postman_id":"d3426c28-2a48-4c16-a27c-dae305ecfcf4","description":""},{"name":"table examples","item":[{"name":"query table with filter","id":"bff12d4b-362d-4cc1-8e86-cd3ca152c35b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"x-api-key","value":"","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"filter\": {\r\n        \"name\": \"bob\"\r\n    }\r\n}","options":{"raw":{"language":"json"}}},"url":"/table/device","urlObject":{"path":["table","device"],"host":[""],"query":[],"variable":[]}},"response":[],"_postman_id":"bff12d4b-362d-4cc1-8e86-cd3ca152c35b"},{"name":"query table by object_id","id":"63ee2b8f-d224-40c3-a294-955881a082df","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"x-api-key","type":"text","value":""}],"body":{"mode":"raw","raw":"{\r\n}","options":{"raw":{"language":"json"}}},"url":"/table/device/:object_id","urlObject":{"path":["table","device",":object_id"],"host":[""],"query":[],"variable":[{"type":"any","value":"","key":"object_id"}]}},"response":[],"_postman_id":"63ee2b8f-d224-40c3-a294-955881a082df"},{"name":"query all records in table","id":"4c91296d-5514-4fc0-b164-2546c99890b1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"x-api-key","value":"","type":"text"}],"body":{"mode":"raw","raw":"{}","options":{"raw":{"language":"json"}}},"url":"/table/device","urlObject":{"path":["table","device"],"host":[""],"query":[],"variable":[]}},"response":[],"_postman_id":"4c91296d-5514-4fc0-b164-2546c99890b1"},{"name":"insert record to table","id":"ddb237c1-51ff-4bf0-b53d-12eefe96931e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"x-api-key","value":"","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"name\":\"bob\"\r\n}","options":{"raw":{"language":"json"}}},"url":"/table/device","urlObject":{"path":["table","device"],"host":[""],"query":[],"variable":[]}},"response":[],"_postman_id":"ddb237c1-51ff-4bf0-b53d-12eefe96931e"},{"name":"insert multiple records to table","id":"1cafb6ea-afb6-40ea-a3b1-e20bc9e7410c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"x-api-key","type":"text","value":""}],"body":{"mode":"raw","raw":"[{\r\n    \"name\":\"bob\"\r\n},{\r\n    \"name\":\"bob\"\r\n}]","options":{"raw":{"language":"json"}}},"url":"/table/device","urlObject":{"path":["table","device"],"host":[""],"query":[],"variable":[]}},"response":[],"_postman_id":"1cafb6ea-afb6-40ea-a3b1-e20bc9e7410c"},{"name":"delete record form table","id":"59206873-6535-4ab1-83c9-fe5e39494c6f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"x-api-key","value":"","type":"text"}],"body":{"mode":"raw","raw":"{\r\n}","options":{"raw":{"language":"json"}}},"url":"/table/device/6051de66f608b2d9878b3531","urlObject":{"path":["table","device","6051de66f608b2d9878b3531"],"host":[""],"query":[],"variable":[]}},"response":[],"_postman_id":"59206873-6535-4ab1-83c9-fe5e39494c6f"},{"name":"delete multiple records from table with filter","id":"d6e8e649-8a14-4175-a8c9-3e132ce72fe5","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"x-api-key","type":"text","value":""}],"body":{"mode":"raw","raw":"{\r\n    \"filter\": {\r\n        \"name\": \"dave\"\r\n    }\r\n}","options":{"raw":{"language":"json"}}},"url":"/table/device/","urlObject":{"path":["table","device",""],"host":[""],"query":[],"variable":[]}},"response":[],"_postman_id":"d6e8e649-8a14-4175-a8c9-3e132ce72fe5"},{"name":"update one record by object_id","id":"ce4e8a99-32a0-4b51-9913-76730bdbd94b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[{"key":"x-api-key","type":"text","value":""}],"body":{"mode":"raw","raw":"{\r\n    \"name\":\"john\"\r\n}","options":{"raw":{"language":"json"}}},"url":"/table/device/6051e664608d45175f7ee650","urlObject":{"path":["table","device","6051e664608d45175f7ee650"],"host":[""],"query":[],"variable":[]}},"response":[],"_postman_id":"ce4e8a99-32a0-4b51-9913-76730bdbd94b"},{"name":"update multiple objects","id":"71a95578-d6e8-4a2a-a28c-79525787e86b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[{"key":"x-api-key","type":"text","value":""}],"body":{"mode":"raw","raw":"{\r\n    \"name\":\"john\"\r\n}","options":{"raw":{"language":"json"}}},"url":"/table/device","urlObject":{"path":["table","device"],"host":[""],"query":[],"variable":[]}},"response":[],"_postman_id":"71a95578-d6e8-4a2a-a28c-79525787e86b"}],"id":"59c41284-ee04-471b-8530-8412e1294130","_postman_id":"59c41284-ee04-471b-8530-8412e1294130","description":""}],"event":[{"listen":"prerequest","script":{"id":"c07dd95d-cf61-4bf4-a519-f95f5a1ea40e","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"9ba5253a-7aa1-4137-9860-5ffe7c4cf91a","type":"text/javascript","exec":[""]}}],"variable":[{"key":"cmdboss_host","value":""},{"key":"api_key","value":""}]}