{ "uuid": "d0b63df0-937c-483b-af81-8352df9a651d", "lastMigration": 29, "name": "Miataru", "endpointPrefix": "v1", "latency": 0, "port": 3000, "hostname": "", "routes": [ { "uuid": "cc4ec3ba-1b9a-4334-bab9-bfb509304308", "documentation": "To retrieve a specific devices latest known location the /GetLocation method is used. Please note that the MiataruConfig portion is optional. RequestMiataruDeviceID should be the ID of the device the request is sent from (or an identifier like an URL).", "method": "post", "endpoint": "GetLocation", "responses": [ { "uuid": "9b43bfc7-1b3f-40c4-b1b4-c31cca842b2c", "body": "{\n \"MiataruLocation\": [\n {\n \"Device\": \"7b8e6e0ee5296db345162dc2ef652c1350761823\",\n \"HorizontalAccuracy\": \"50\",\n \"Latitude\": \"41.079351\",\n \"Longitude\": \"-4.394531\",\n \"Timestamp\": \"1441360863\"\n }\n ]\n}", "latency": 0, "statusCode": 200, "label": "successful location responses", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": true, "crudKey": "id" } ], "enabled": true, "responseMode": null, "type": "http" }, { "uuid": "7d91ac82-e3c9-44c5-a0bc-43e8509f4424", "documentation": "Retrieves a devices Location in GeoJSON format.", "method": "get", "endpoint": "GetLocationGeoJSON/:deviceID", "responses": [ { "uuid": "1644192b-fe97-4698-af0d-77c78d1c2b79", "body": "{\n \"geometry\": {\n \"coordinates\": [\n {{faker 'number.float'}}\n ],\n \"type\": \"\"\n },\n \"properties\": {\n \"name\": \"\"\n },\n \"type\": \"\"\n}", "latency": 0, "statusCode": 200, "label": "geoJSON formatted device location", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": true, "crudKey": "id" } ], "enabled": true, "responseMode": null, "type": "http" }, { "uuid": "620b3ce2-a251-4585-9650-0f81d0931d3b", "documentation": "Location History is stored on the server only if the client told the server to do so using the “EnableLocationHistory” setting in the Location Update requests. For transitions of enabling/disabling that functionality - Everytime a Location Update is received by the server with “EnableLocationHistory=false” the server removes all stored Location History till that point. There is a server-side setting that controls up to how many Location Updates the server is storing in the Location History before it removes the oldest one. To request the Location History of a particular device the client sends the following POST request to the GetLocationHistory service URL. Please note that the MiataruConfig portion is optional. RequestMiataruDeviceID should be the ID of the device the request is sent from (or an identifier like an URL).", "method": "post", "endpoint": "GetLocationHistory", "responses": [ { "uuid": "96e65585-e912-4edd-a60e-9a1df4ca8714", "body": "{\n \"MiataruLocation\": [\n {\n \"Device\": \"7b8e6e0ee5296db345162dc2ef652c1350761823\",\n \"HorizontalAccuracy\": \"50\",\n \"Latitude\": \"41.079351\",\n \"Longitude\": \"-4.394531\",\n \"Timestamp\": \"1441360863\"\n }\n ],\n \"MiataruServerConfig\": {\n \"AvailableDeviceLocationUpdates\": \"\",\n \"MaximumNumberOfLocationUpdates\": \"\"\n }\n}", "latency": 0, "statusCode": 200, "label": "successful location history response", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": true, "crudKey": "id" } ], "enabled": true, "responseMode": null, "type": "http" }, { "uuid": "719e5b81-65d8-4bf5-8674-8ebf2194f8c5", "documentation": "Visitor History is stored on the server with every request to the location or location history information of a device. There is a server-side setting that controls up to how many Visitors the server is storing in the Visitor History before it removes the oldest one. To request the Visitor History of a particular device the client sends the following POST request to the GetVisitorHistory service URL.", "method": "post", "endpoint": "GetVisitorHistory", "responses": [ { "uuid": "70b11bc8-cc04-4a5a-be77-197d3d43fe6d", "body": "{\n \"MiataruServerConfig\": {\n \"AvailableVisitorHistory\": \"\",\n \"MaximumNumberOfVisitorHistory\": \"\"\n },\n \"MiataruVisitors\": [\n {\n \"DeviceID\": \"\",\n \"TimeStamp\": \"\"\n }\n ]\n}", "latency": 0, "statusCode": 200, "label": "visitor history response", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": true, "crudKey": "id" } ], "enabled": true, "responseMode": null, "type": "http" }, { "uuid": "a19d7a87-6e6e-4186-92e7-c62a14203c45", "documentation": "This method is used to update the location of a device. The device does not need to be known already to the Miataru server but it rather creates a unique identifier for itself in the client application. This unique identifier, or device ID is then used to address this particular device.", "method": "post", "endpoint": "UpdateLocation", "responses": [ { "uuid": "3ea0c35f-f089-42fe-99d9-17fbfa9a7438", "body": "{\n \"MiataruResponse\": \"ACK\",\n \"MiataruVerboseResponse\": \"\"\n}", "latency": 0, "statusCode": 200, "label": "successful request", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": true, "crudKey": "id" } ], "enabled": true, "responseMode": null, "type": "http" } ], "proxyMode": false, "proxyHost": "", "proxyRemovePrefix": false, "tlsOptions": { "enabled": false, "type": "CERT", "pfxPath": "", "certPath": "", "keyPath": "", "caPath": "", "passphrase": "" }, "cors": true, "headers": [], "proxyReqHeaders": [{ "key": "", "value": "" }], "proxyResHeaders": [{ "key": "", "value": "" }], "data": [], "folders": [], "rootChildren": [ { "type": "route", "uuid": "cc4ec3ba-1b9a-4334-bab9-bfb509304308" }, { "type": "route", "uuid": "7d91ac82-e3c9-44c5-a0bc-43e8509f4424" }, { "type": "route", "uuid": "620b3ce2-a251-4585-9650-0f81d0931d3b" }, { "type": "route", "uuid": "719e5b81-65d8-4bf5-8674-8ebf2194f8c5" }, { "type": "route", "uuid": "a19d7a87-6e6e-4186-92e7-c62a14203c45" } ] }