{ "opencollection": "1.0.0", "info": { "name": "Spotio 2.0 Territories API", "version": "v1" }, "request": { "auth": { "type": "apikey", "key": "Authorization", "value": "{{Authorization}}", "placement": "header" } }, "items": [ { "info": { "name": "Territories", "type": "folder" }, "items": [ { "info": { "name": "Get all existing territories", "type": "http" }, "http": { "method": "GET", "url": "https://api.spotio2.com/api/Territories/all", "auth": { "type": "apikey", "key": "Authorization", "value": "{{Authorization}}", "placement": "header" } }, "docs": "Get all existing territories" }, { "info": { "name": "Add a new territory", "type": "http" }, "http": { "method": "POST", "url": "https://api.spotio2.com/api/Territories", "body": { "type": "json", "data": "{}" }, "auth": { "type": "apikey", "key": "Authorization", "value": "{{Authorization}}", "placement": "header" } }, "docs": "Add a new territory" }, { "info": { "name": "Get existing territory", "type": "http" }, "http": { "method": "GET", "url": "https://api.spotio2.com/api/Territories/:id", "params": [ { "name": "optimized", "value": "", "type": "query" }, { "name": "id", "value": "", "type": "path", "description": "Territory Id" } ], "auth": { "type": "apikey", "key": "Authorization", "value": "{{Authorization}}", "placement": "header" } }, "docs": "Get existing territory" }, { "info": { "name": "Update existing territory", "type": "http" }, "http": { "method": "PUT", "url": "https://api.spotio2.com/api/Territories/:id", "params": [ { "name": "id", "value": "", "type": "path", "description": "Territory Id" } ], "body": { "type": "json", "data": "{}" }, "auth": { "type": "apikey", "key": "Authorization", "value": "{{Authorization}}", "placement": "header" } }, "docs": "Update existing territory" }, { "info": { "name": "Get territory in GeoJSON format", "type": "http" }, "http": { "method": "GET", "url": "https://api.spotio2.com/api/Territories/:id/geojson", "params": [ { "name": "optimized", "value": "", "type": "query" }, { "name": "addPolyline", "value": "", "type": "query" }, { "name": "id", "value": "", "type": "path", "description": "Territory Id" } ], "auth": { "type": "apikey", "key": "Authorization", "value": "{{Authorization}}", "placement": "header" } }, "docs": "Get territory in GeoJSON format" } ] } ], "bundled": true }