{"info":{"_postman_id":"9f5f398e-12cc-4ecc-8872-63c7ac175d01","name":"BUS ETA","description":"<html><head></head><body><h2 id=\"a-collection-holding-all-the-json-rpc-api-calls\">A collection holding all the JSON RPC API calls.</h2>\n<h4 id=\"error-codes\">Error Codes:</h4>\n<h6 id=\"500---internal-server-error\">500 - internal server error</h6>\n<h6 id=\"400---bad-request\">400 - bad request</h6>\n<h6 id=\"401---authentication-failed\">401 - authentication failed</h6>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"6873210","collectionId":"9f5f398e-12cc-4ecc-8872-63c7ac175d01","publishedId":"UzXLyxgr","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"EF5B25"},"publishDate":"2023-02-09T06:28:58.000Z"},"item":[{"name":"Auth","item":[{"name":"Authenticate","event":[{"listen":"test","script":{"id":"1939de6b-eb0b-498a-8adc-55b93e8d5818","exec":["var data = JSON.parse(responseBody);","postman.setEnvironmentVariable(\"sessionId\", data.result.credentials.sessionId)","postman.setEnvironmentVariable(\"customerId\", data.result.credentials.customerId)"],"type":"text/javascript"}}],"id":"02e92e25-e861-4390-ba65-f608ea82fbc1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"JSON-RPC","value":"{\n    \"method\": \"Authenticate\",\n    \"params\": {\n        \"database\": \"{{database}}\",\n        \"userName\": \"{{username}}\",\n        \"password\": \"{{password}}\"\n    }\n}","type":"text"}]},"url":"https://one-service.zenduit.com/api/","urlObject":{"protocol":"https","path":["api",""],"host":["one-service","zenduit","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"02e92e25-e861-4390-ba65-f608ea82fbc1"}],"id":"cef9109c-6877-4bfb-a831-6ab42585858b","_postman_id":"cef9109c-6877-4bfb-a831-6ab42585858b","description":""},{"name":"Traveler","item":[{"name":"Get","id":"5fc572d3-5f47-4a5b-89af-839c412baccd","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"JSON-RPC","value":"{\n    \"method\": \"Get\",\n    \"params\": {\n      \"typeName\": \"Traveler\",\n      \"search\": {  },\n      \"credentials\": {\n        \"sessionId\": \"{{sessionId}}\"\n      }\n    },\n    \"type\": \"bus_eta\"\n  }","type":"text"}]},"url":"https://one-service.zenduit.com/api/","description":"<p>Search options:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-typescript\">interface TravelerSearch {\n        /**\n         * Internal unique id\n         */\n        _id: string,\n        /**\n         * Custom ID\n         */\n        customId: string;\n    }\n\n</code></pre>\n","urlObject":{"protocol":"https","path":["api",""],"host":["one-service","zenduit","com"],"query":[],"variable":[]}},"response":[{"id":"4b29d65a-a761-4ac0-aa4e-98bcb3d4eb48","name":"Search by custom id","originalRequest":{"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"JSON-RPC","value":"{\n    \"method\": \"Get\",\n    \"params\": {\n      \"typeName\": \"Traveler\",\n      \"search\": {  \"customId\": \"customId\"  },\n      \"credentials\": {\n        \"sessionId\": \"\"\n      }\n    },\n    \"type\": \"bus_eta\"\n  }","type":"text"}]},"url":"https://one-service.zenduit.com/api/"},"_postman_previewlanguage":"json","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"result\": [\n        {\n            \"_id\": \"6377b1f2e691ce2510c72175\",\n            \"nfc\": \"000000\",\n            \"name\": \"traveler_name\",\n            \"guardians\": [\"guardian_id\"],\n            \"groups\": [],\n            \"database\": \"salesteam\",\n            \"routes\": [\n                {\n                    \"routeId\": \"route_id\",\n                    \"stopId\": \"stop_id\"\n                }\n            ],\n            \"address\": \"Route address\",\n            \"customId\": \"customId\"\n        }\n    ]\n}"}],"_postman_id":"5fc572d3-5f47-4a5b-89af-839c412baccd"},{"name":"Add","id":"501b2984-cb62-4008-bbb1-4d8ba0c08424","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"JSON-RPC","value":"{\n    \"method\": \"Add\",\n    \"params\": {\n      \"typeName\": \"Traveler\",\n      \"entity\": {\n        \"nfc\": \"000000\",\n        \"name\": \"traveler_name\",\n        \"guardians\": [\"guardian_id\"],\n        \"groups\": [],\n        \"database\": \"salesteam\",\n        \"routes\": [\n            {\n                \"routeId\": \"route_id\",\n                \"stopId\": \"stop_id\"\n            }\n        ],\n        \"address\": \"Route address\",\n        \"customId\": \"customId\"\n    },\n      \"credentials\": {\n        \"sessionId\": \"{{sessionId}}\"\n      }\n    },\n    \"type\": \"bus_eta\"\n  }","type":"text"}]},"url":"https://one-service.zenduit.com/api/","description":"<h4 id=\"adds-a-new-traveler-to-the-database-in-addition-to-the-credentials-the-method-will-require-a-minimum-of-two-parameters---the-type-of-entity-that-is-being-added-typename-and-the-entity-itself\">Adds a new Traveler to the database. In addition to the credentials, the method will require a minimum of two parameters - the type of entity that is being added (typeName) and the entity itself.</h4>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-typescript\">interface Traveller {\n        /**\n         * Traveller Name\n         */\n        name: string,\n        /**\n         * Address\n         */\n        address: GeoPoint;\n        /**\n         * Traveller ID# (NFC Serial number)\n         */\n        nfc: string,\n        /**\n         * guardian id\n         */\n        guardian: string,\n        /**\n         * routes\n         */\n        routes: Array;\n        /**\n         * Custom id\n         */\n        customId: string;\n    }\n\n</code></pre>\n","urlObject":{"protocol":"https","path":["api",""],"host":["one-service","zenduit","com"],"query":[],"variable":[]}},"response":[{"id":"00ab197d-d55d-44b9-b897-50c4a01abd93","name":"Add","originalRequest":{"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"JSON-RPC","value":"{\n    \"method\": \"Add\",\n    \"params\": {\n      \"typeName\": \"Traveler\",\n      \"entity\": {\n        \"nfc\": \"000000\",\n        \"name\": \"traveler_name\",\n        \"guardians\": [\"guardian_id\"],\n        \"groups\": [],\n        \"database\": \"salesteam\",\n        \"routes\": [\n            {\n                \"routeId\": \"route_id\",\n                \"stopId\": \"stop_id\"\n            }\n        ],\n        \"address\": \"Route address\",\n        \"customId\": \"customId\"\n    },\n      \"credentials\": {\n        \"sessionId\": \"\"\n      }\n    },\n    \"type\": \"bus_eta\"\n  }","type":"text"}]},"url":"https://one-service.zenduit.com/api/"},"_postman_previewlanguage":"json","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"result\": {\n        \"id\": \"6377b1f2e691ce2510c72175\"\n    }\n}"}],"_postman_id":"501b2984-cb62-4008-bbb1-4d8ba0c08424"},{"name":"Update","id":"6a6c1a65-7552-44e2-9752-e8560649ccef","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"JSON-RPC","value":"{\n    \"method\": \"Set\",\n    \"params\": {\n      \"typeName\": \"Traveler\",\n      \"entity\": {\n        \"nfc\": \"000000\",\n        \"name\": \"traveler_name\",\n        \"guardians\": [\"guardian_id\"],\n        \"groups\": [],\n        \"database\": \"salesteam\",\n        \"routes\": [\n            {\n                \"routeId\": \"route_id\",\n                \"stopId\": \"stop_id\"\n            }\n        ],\n        \"address\": \"Route address\",\n        \"customId\": \"customId\"\n    },\n      \"credentials\": {\n        \"sessionId\": \"{{sessionId}}\"\n      }\n    },\n    \"type\": \"bus_eta\"\n  }","type":"text"}]},"url":"https://one-service.zenduit.com/api/","urlObject":{"protocol":"https","path":["api",""],"host":["one-service","zenduit","com"],"query":[],"variable":[]}},"response":[{"id":"1ce10704-15de-460f-980f-6291e2d249ac","name":"Update by custom id","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/x-www-form-urlencoded","type":"text"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"JSON-RPC","value":"{\n    \"method\": \"Set\",\n    \"params\": {\n      \"typeName\": \"Traveler\",\n      \"entity\": {\n        \"customId\": \"customId\",\n        \"nfc\": \"000000\",\n        \"name\": \"traveler_name\",\n        \"guardians\": [\"guardian_id\"],\n        \"groups\": [],\n        \"database\": \"salesteam\",\n        \"routes\": [\n            {\n                \"routeId\": \"route_id\",\n                \"stopId\": \"stop_id\"\n            }\n        ],\n        \"address\": \"Route address\"\n        \n    },\n      \"credentials\": {\n        \"sessionId\": \"{{sessionId}}\"\n      }\n    },\n    \"type\": \"bus_eta\"\n  }","type":"text"}]},"url":"https://one-service.zenduit.com/api/"},"_postman_previewlanguage":"json","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"result\": {\n        \"success\": true\n    }\n}"}],"_postman_id":"6a6c1a65-7552-44e2-9752-e8560649ccef"},{"name":"Remove","id":"a62ca016-3b29-4238-8d29-7fadd90faccb","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"JSON-RPC","value":"{\n    \"method\": \"Remove\",\n    \"params\": {\n        \"typeName\": \"Traveler\",\n        \"entity\": {\n            \"_id\": \"000000000000000000000000\"\n        },\n        \"credentials\": {\n            \"sessionId\": \"{{sessionId}}\"\n        }\n    },\n    \"type\": \"bus_eta\"\n}","type":"text"}]},"url":"https://one-service.zenduit.com/api/","description":"<h4 id=\"remove-traveller-from-the-database-the-id-of-the-object-must-be-populated\">Remove Traveller from the database. The id of the object must be populated.</h4>\n","urlObject":{"protocol":"https","path":["api",""],"host":["one-service","zenduit","com"],"query":[],"variable":[]}},"response":[{"id":"5d9aa3cc-aa2b-4d45-b551-03531ab3a7fc","name":"Remove by custom id","originalRequest":{"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"JSON-RPC","value":"{\n    \"method\": \"Remove\",\n    \"params\": {\n        \"typeName\": \"Traveler\",\n        \"entity\": {\n            \"customId\": \"customId\"\n        },\n        \"credentials\": {\n            \"sessionId\": \"{{sessionId}}\"\n        }\n    },\n    \"type\": \"bus_eta\"\n}","type":"text"}]},"url":"https://one-service.zenduit.com/api/"},"_postman_previewlanguage":"json","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"result\": {\n        \"success\": true\n    }\n}"}],"_postman_id":"a62ca016-3b29-4238-8d29-7fadd90faccb"}],"id":"c3a58572-21fe-4605-b943-837dd4984255","description":"<h2 id=\"endpoints-to-manipulate-traveler-data\"><strong>Endpoints to manipulate Traveler data.</strong></h2>\n<h3 id=\"typename\">TYPENAME</h3>\n<ul>\n<li><em><strong>Traveler</strong></em></li>\n</ul>\n<h3 id=\"available-params\">AVAILABLE PARAMS</h3>\n<ul>\n<li><em><strong>search</strong></em></li>\n<li><em><strong>entity</strong></em></li>\n</ul>\n","_postman_id":"c3a58572-21fe-4605-b943-837dd4984255"},{"name":"Route","item":[{"name":"Get","id":"d06cf330-6258-4729-af5e-b2185bbaaa2f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"JSON-RPC","value":"{\n    \"method\": \"Get\",\n    \"params\": {\n      \"typeName\": \"Route\",\n      \"search\": {  },\n      \"credentials\": {\n        \"sessionId\": \"{{sessionId}}\"        \n      }\n    },\n    \"type\": \"bus_eta\"\n  }","type":"text"}]},"url":"https://one-service.zenduit.com/api/","description":"<p>Search options:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-typescript\">interface RouteSearch {\n        /**\n         * Internal unique route id\n         */\n        _id: string,\n        /**\n         * Custom ID\n         */\n        customId: string;\n    }\n\n</code></pre>\n","urlObject":{"protocol":"https","path":["api",""],"host":["one-service","zenduit","com"],"query":[],"variable":[]}},"response":[{"id":"14e6002a-32af-4b2a-bf43-f635372e4297","name":"Search by custom id","originalRequest":{"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"JSON-RPC","value":"{\n    \"method\": \"Get\",\n    \"params\": {\n      \"typeName\": \"Route\",\n      \"search\": { \"customId\": \"customId\" },\n      \"credentials\": {\n        \"sessionId\": \"{{sessionId}}\"        \n      }\n    },\n    \"type\": \"bus_eta\"\n  }","type":"text"}]},"url":"https://one-service.zenduit.com/api/"},"_postman_previewlanguage":"json","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"result\": [\n        {\n            \"_id\": \"6377af5ce691ce2510c72172\",\n            \"device\": {\n                \"id\": \"device_id\",\n                \"name\": \"device-name\",\n                \"lat\": 32,\n                \"lng\": 74,\n                \"heading\": 89\n            },\n            \"name\": \"test\",\n            \"stops\": [\n                {\n                    \"id\": \"start\",\n                    \"driveTime\": 0,\n                    \"stopTime\": 0,\n                    \"distance\": 0,\n                    \"location\": {\n                        \"lat\": 40,\n                        \"lng\": -80\n                    },\n                    \"name\": \"Toronto, Street #1, Canada\"\n                },\n                {\n                    \"id\": \"end\",\n                    \"driveTime\": 0,\n                    \"stopTime\": 0,\n                    \"distance\": 60710,\n                    \"location\": {\n                        \"lat\": 40,\n                        \"lng\": -80\n                    },\n                    \"name\": \"Toronto, Street #2, Canada\"\n                }\n            ],\n            \"time\": 0,\n            \"customId\": \"customId\",\n            \"database\": \"salesteam\",\n            \"path\": [\n                {\n                    \"lat\": 39.999924,\n                    \"lng\": -79.999986\n                },\n                {\n                    \"lat\": 39.999924,\n                    \"lng\": -79.999986\n                }\n            ]\n        }\n    ]\n}"}],"_postman_id":"d06cf330-6258-4729-af5e-b2185bbaaa2f"},{"name":"Add","id":"1eba31e0-3cbb-4c36-902a-ae6bab0b651d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"JSON-RPC","value":"{\n    \"method\": \"Add\",\n    \"params\": {\n        \"typeName\": \"Route\",\n        \"entity\": {\n            \"device\": {\n                \"id\": \"device_id\",\n                \"name\": \"device-name\",\n                \"lat\": 32,\n                \"lng\": 74,\n                \"heading\": 89\n            },\n            \"name\": \"test\",\n            \"stops\": [\n                {\n                    \"id\": \"start\",\n                    \"driveTime\": 0,\n                    \"stopTime\": 0,\n                    \"distance\": 0,\n                    \"location\": {\n                        \"lat\": 40,\n                        \"lng\": -80\n                    },\n                    \"name\": \"Toronto, Street #1, Canada\"\n                },\n                {\n                    \"id\": \"end\",\n                    \"driveTime\": 2779000,\n                    \"stopTime\": 0,\n                    \"distance\": 60710,\n                    \"location\": {\n                        \"lat\": 40,\n                        \"lng\": -80\n                    },\n                    \"name\": \"Toronto, Street #2, Canada\"\n                }\n            ],\n            \"time\": 0,\n            \"customId\": \"customId\"\n        },\n        \"credentials\": {\n            \"sessionId\": \"{{sessionId}}\"\n        }\n    },\n    \"type\": \"bus_eta\"\n}","type":"text"}]},"url":"https://one-service.zenduit.com/api/","description":"<h4 id=\"adds-a-new-route-to-the-database-in-addition-to-the-credentials-the-method-will-require-a-minimum-of-two-parameters---the-type-of-entity-that-is-being-added-typename-and-the-entity-itself\">Adds a new Route to the database. In addition to the credentials, the method will require a minimum of two parameters - the type of entity that is being added (typeName) and the entity itself.</h4>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-typescript\">interface Route {\n        /**\n         * Route name\n         */\n        name: string,\n        stops: RouteStop[];\n        /**\n         * route's path\n         */\n        path: GeoPoint[];\n        /**\n         * device\n         */\n        device: {\n            id: string,\n            name: string\n        };\n        /**\n         * time in ms\n         */\n        time: number;\n        /**\n         * Custom ID\n         */\n        customId: string;\n    }\n\n</code></pre>\n","urlObject":{"protocol":"https","path":["api",""],"host":["one-service","zenduit","com"],"query":[],"variable":[]}},"response":[{"id":"1de71507-9cda-4ab3-a865-79c906f99319","name":"Add","originalRequest":{"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"JSON-RPC","value":"{\n    \"method\": \"Add\",\n    \"params\": {\n        \"typeName\": \"Route\",\n        \"entity\": {\n            \"device\": {\n                \"id\": \"device_id\",\n                \"name\": \"device-name\",\n                \"lat\": 32,\n                \"lng\": 74,\n                \"heading\": 89\n            },\n            \"name\": \"test\",\n            \"stops\": [\n                {\n                    \"id\": \"start\",\n                    \"driveTime\": 0,\n                    \"stopTime\": 0,\n                    \"distance\": 0,\n                    \"location\": {\n                        \"lat\": 40,\n                        \"lng\": -80\n                    },\n                    \"name\": \"Toronto, Street #1, Canada\"\n                },\n                {\n                    \"id\": \"end\",\n                    \"driveTime\": 2779000,\n                    \"stopTime\": 0,\n                    \"distance\": 60710,\n                    \"location\": {\n                        \"lat\": 40,\n                        \"lng\": -80\n                    },\n                    \"name\": \"Toronto, Street #2, Canada\"\n                }\n            ],\n            \"time\": 0,\n            \"customId\": \"customId\"\n        },\n        \"credentials\": {\n            \"sessionId\": \"{{sessionId}}\"\n        }\n    },\n    \"type\": \"bus_eta\"\n}","type":"text"}]},"url":"https://one-service.zenduit.com/api/"},"_postman_previewlanguage":"json","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"result\": {\n        \"id\": \"6377b1f2e691ce2510c72175\"\n    }\n}"}],"_postman_id":"1eba31e0-3cbb-4c36-902a-ae6bab0b651d"},{"name":"Update","id":"de113ba7-c341-4a64-a1fe-0c587ded5a0e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"JSON-RPC","value":"{\n    \"method\": \"Set\",\n    \"params\": {\n        \"typeName\": \"Route\",\n        \"entity\": {\n            \"_id\": \"route_id\",\n            \"device\": {\n                \"id\": \"device_id\",\n                \"name\": \"device-name\",\n                \"lat\": 32,\n                \"lng\": 74,\n                \"heading\": 89\n            },\n            \"name\": \"test\",\n            \"stops\": [\n                {\n                    \"id\": \"start\",\n                    \"driveTime\": 0,\n                    \"stopTime\": 0,\n                    \"distance\": 0,\n                    \"location\": {\n                        \"lat\": 40,\n                        \"lng\": -80\n                    },\n                    \"name\": \"Toronto, Street #1, Canada\"\n                },\n                {\n                    \"id\": \"end\",\n                    \"driveTime\": 2779000,\n                    \"stopTime\": 0,\n                    \"distance\": 60710,\n                    \"location\": {\n                        \"lat\": 40,\n                        \"lng\": -80\n                    },\n                    \"name\": \"Toronto, Street #2, Canada\"\n                }\n            ],\n            \"time\": 0,\n            \"customId\": \"customId\"\n        },\n        \"credentials\": {\n            \"sessionId\": \"{{sessionId}}\"\n        }\n    },\n    \"type\": \"bus_eta\"\n}","type":"text"}]},"url":"https://one-service.zenduit.com/api/","description":"<h4 id=\"modify-route-which-is-an-object-in-the-database-the-id-of-the-object-must-be-populated\">Modify Route which is an object in the database. The id of the object must be populated.</h4>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-typescript\">interface RouteSearch {\n        /**\n         * Internal unique route id\n         */\n        _id: string,\n        /**\n         * Custom ID\n         */\n        customId: string;\n    }\n\n</code></pre>\n","urlObject":{"protocol":"https","path":["api",""],"host":["one-service","zenduit","com"],"query":[],"variable":[]}},"response":[{"id":"117e4bec-d993-47fd-8716-e3f79bb394bf","name":"Update by cusom id","originalRequest":{"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"JSON-RPC","value":"{\n    \"method\": \"Set\",\n    \"params\": {\n        \"typeName\": \"Route\",\n        \"entity\": {\n            \"customId\": \"customId\",\n            \"device\": {\n                \"id\": \"device_id\",\n                \"name\": \"device-name\",\n                \"lat\": 32,\n                \"lng\": 74,\n                \"heading\": 89\n            },\n            \"name\": \"test\",\n            \"stops\": [\n                {\n                    \"id\": \"start\",\n                    \"driveTime\": 0,\n                    \"stopTime\": 0,\n                    \"distance\": 0,\n                    \"location\": {\n                        \"lat\": 40,\n                        \"lng\": -80\n                    },\n                    \"name\": \"Toronto, Street #1, Canada\"\n                },\n                {\n                    \"id\": \"end\",\n                    \"driveTime\": 2779000,\n                    \"stopTime\": 0,\n                    \"distance\": 60710,\n                    \"location\": {\n                        \"lat\": 40,\n                        \"lng\": -80\n                    },\n                    \"name\": \"Toronto, Street #2, Canada\"\n                }\n            ],\n            \"time\": 0            \n        },\n        \"credentials\": {\n            \"sessionId\": \"{{sessionId}}\"\n        }\n    },\n    \"type\": \"bus_eta\"\n}","type":"text"}]},"url":"https://one-service.zenduit.com/api/"},"_postman_previewlanguage":"json","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"result\": {\n        \"success\": true\n    }\n}"}],"_postman_id":"de113ba7-c341-4a64-a1fe-0c587ded5a0e"},{"name":"Remove","id":"84045666-3f9c-49e5-ba28-0be4fdd2d285","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"JSON-RPC","value":"{\n    \"method\": \"Remove\",\n    \"params\": {\n        \"typeName\": \"Route\",\n        \"entity\": {\n            \"_id\": \"000000000000000000000000\"\n        },\n        \"credentials\": {\n            \"sessionId\": \"{{sessionId}}\"\n        }\n    },\n    \"type\": \"bus_eta\"\n}","type":"text"}]},"url":"https://one-service.zenduit.com/api/","description":"<h4 id=\"remove-route-from-the-database-the-id-of-the-object-must-be-populated\">Remove Route from the database. The id of the object must be populated.</h4>\n","urlObject":{"protocol":"https","path":["api",""],"host":["one-service","zenduit","com"],"query":[],"variable":[]}},"response":[{"id":"00abaf8e-0e24-4fcd-bf42-1f9fadbba887","name":"Remove by custom id","originalRequest":{"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"JSON-RPC","value":"{\n    \"method\": \"Remove\",\n    \"params\": {\n        \"typeName\": \"Route\",\n        \"entity\": {\n            \"customId\": \"customId\"\n        },\n        \"credentials\": {\n            \"sessionId\": \"{{sessionId}}\"\n        }\n    },\n    \"type\": \"bus_eta\"\n}","type":"text"}]},"url":"https://one-service.zenduit.com/api/"},"_postman_previewlanguage":"json","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"result\": {\n        \"success\": true\n    }\n}"}],"_postman_id":"84045666-3f9c-49e5-ba28-0be4fdd2d285"}],"id":"dcf95b29-b271-43ae-91f3-e4943a4a4093","description":"<h2 id=\"endpoints-to-manipulate-route-data\"><strong>Endpoints to manipulate Route data.</strong></h2>\n<h3 id=\"typename\">TYPENAME</h3>\n<ul>\n<li><em><strong>Route</strong></em></li>\n</ul>\n<h3 id=\"available-params\">AVAILABLE PARAMS</h3>\n<ul>\n<li><em><strong>search</strong></em></li>\n<li><em><strong>entity</strong></em></li>\n</ul>\n","_postman_id":"dcf95b29-b271-43ae-91f3-e4943a4a4093"},{"name":"Guardian","item":[{"name":"Get","id":"62acc36e-c124-4bdb-8538-af1465609fc6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"JSON-RPC","value":"{\n    \"method\": \"Get\",\n    \"params\": {\n      \"typeName\": \"Guardian\",\n      \"search\": { },\n      \"credentials\": {\n        \"sessionId\": \"{{sessionId}}\"     \n      }\n    },\n    \"type\": \"bus_eta\"\n  }","type":"text"}]},"url":"https://one-service.zenduit.com/api/","description":"<h4 id=\"gets-the-guardians-this-method-can-be-used-in-various-ways-to-return-all-one-or-some-specific-set-of-data-for-the-guardians\">Gets the Guardians. This method can be used in various ways to return all, one or some specific set of data for the Guardians.</h4>\n","urlObject":{"protocol":"https","path":["api",""],"host":["one-service","zenduit","com"],"query":[],"variable":[]}},"response":[{"id":"644d45cc-ac78-43b8-94ce-2023b9960aad","name":"Search by custom id","originalRequest":{"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"JSON-RPC","value":"{\n    \"method\": \"Get\",\n    \"params\": {\n      \"typeName\": \"Guardian\",\n      \"search\": {  \"customId\": \"customId\" },\n      \"credentials\": {\n        \"sessionId\": \"{{sessionId}}\"     \n      }\n    },\n    \"type\": \"bus_eta\"\n  }","type":"text"}]},"url":"https://one-service.zenduit.com/api/"},"_postman_previewlanguage":"json","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"result\": [\n        {\n            \"_id\": \"6377b151e691ce2510c72174\",\n            \"name\": \"guardian_name\",\n            \"email\": \"email@zenduit.com\",\n            \"phone\": \"+11111111111\",\n            \"customId\": \"customId\",\n            \"database\": \"salesteam\"\n        }\n    ]\n}"}],"_postman_id":"62acc36e-c124-4bdb-8538-af1465609fc6"},{"name":"Add","id":"7a10ca2f-66b1-4f12-a792-9fee626dca3f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"JSON-RPC","value":"{\n    \"method\": \"Add\",\n    \"params\": {\n        \"typeName\": \"Guardian\",\n        \"entity\": {\n            \"name\": \"guardian_name\",\n            \"email\": \"email@zenduit.com\",\n            \"phone\": \"+11111111111\",\n            \"customId\": \"customId\"\n        },\n        \"credentials\": {\n            \"sessionId\": \"{{sessionId}}\"\n        }\n    },\n    \"type\": \"bus_eta\"\n}","type":"text"}]},"url":"https://one-service.zenduit.com/api/","description":"<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-typescript\"> interface Guardian {\n        /**\n         * Customer database\n         */\n        database: string;\n        /**\n         * Guardian name\n         */\n        name: string,\n        email: string;\n        phone: string;\n        secondary?: Array&lt;{\n            name: string,\n            email: string;\n            phone: string;\n        }&gt;,\n        /**\n         * Custom ID\n         */\n        customId: string;\n    }\n\n</code></pre>\n","urlObject":{"protocol":"https","path":["api",""],"host":["one-service","zenduit","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"7a10ca2f-66b1-4f12-a792-9fee626dca3f"},{"name":"Update","id":"8d67b3c2-9dba-4438-b94a-a36399a38c79","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"JSON-RPC","value":"{\n    \"method\": \"Set\",\n    \"params\": {\n        \"typeName\": \"Guardian\",\n        \"entity\": {\n            \"_id\": \"000000000000000000000000\",\n            \"name\": \"name\",\n            \"email\": \"email@zenduit.com\",\n            \"phone\": \"+11111111111\",\n            \"customId\": \"customId\"\n        },\n        \"credentials\": {\n            \"sessionId\": \"{{sessionId}}\"\n        }\n    },\n    \"type\": \"bus_eta\"\n}","type":"text"}]},"url":"https://one-service.zenduit.com/api/","description":"<h4 id=\"modify-guardian-which-is-an-object-in-the-database-the-id-of-the-object-must-be-populated\">Modify Guardian which is an object in the database. The id of the object must be populated.</h4>\n","urlObject":{"protocol":"https","path":["api",""],"host":["one-service","zenduit","com"],"query":[],"variable":[]}},"response":[{"id":"a4cbb943-eab0-41d7-85d8-204063b3561f","name":"Update by custom id","originalRequest":{"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"JSON-RPC","value":"{\n    \"method\": \"Set\",\n    \"params\": {\n        \"typeName\": \"Guardian\",\n        \"entity\": {\n            \"customId\": \"customId\",\n            \"name\": \"name\",\n            \"email\": \"email@zenduit.com\",\n            \"phone\": \"+11111111111\",\n            \"customId\": \"customId\"\n        },\n        \"credentials\": {\n            \"sessionId\": \"{{sessionId}}\"\n        }\n    },\n    \"type\": \"bus_eta\"\n}","type":"text"}]},"url":"https://one-service.zenduit.com/api/"},"_postman_previewlanguage":"json","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"result\": {\n        \"success\": true\n    }\n}"}],"_postman_id":"8d67b3c2-9dba-4438-b94a-a36399a38c79"},{"name":"Remove","id":"b6eebbc4-9a68-44c7-a84a-fa184b52eb6d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"JSON-RPC","value":"{\n    \"method\": \"Remove\",\n    \"params\": {\n        \"typeName\": \"Guardian\",\n        \"entity\": {\n            \"_id\": \"000000000000000000000000\",\n            \"customId\": \"customId\"\n        },\n        \"credentials\": {\n            \"sessionId\": \"{{sessionId}}\"\n        }\n    },\n    \"type\": \"bus_eta\"\n}","type":"text"}]},"url":"https://one-service.zenduit.com/api/","description":"<h4 id=\"remove-guardian-from-the-database-the-id-of-the-object-must-be-populated\">Remove Guardian from the database. The id of the object must be populated.</h4>\n","urlObject":{"protocol":"https","path":["api",""],"host":["one-service","zenduit","com"],"query":[],"variable":[]}},"response":[{"id":"fb301ddf-2ff2-4367-9b61-4f10280b4e13","name":"Remove by custom id","originalRequest":{"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"JSON-RPC","value":"{\n    \"method\": \"Remove\",\n    \"params\": {\n        \"typeName\": \"Guardian\",\n        \"entity\": {\n            \"customId\": \"customId\"\n        },\n        \"credentials\": {\n            \"sessionId\": \"{{sessionId}}\"\n        }\n    },\n    \"type\": \"bus_eta\"\n}","type":"text"}]},"url":"https://one-service.zenduit.com/api/"},"_postman_previewlanguage":"json","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"result\": {\n        \"success\": true\n    }\n}"}],"_postman_id":"b6eebbc4-9a68-44c7-a84a-fa184b52eb6d"}],"id":"6c888b5f-80d1-4237-a4d2-c2fc13a03d7e","_postman_id":"6c888b5f-80d1-4237-a4d2-c2fc13a03d7e","description":""}]}