{ "uuid": "cefaa560-18de-4d48-934f-0d91f6992595", "lastMigration": 29, "name": "City Context", "endpointPrefix": "v1", "latency": 0, "port": 3000, "hostname": "", "routes": [ { "uuid": "04f06e8d-737f-491e-a026-9956645e69a1", "documentation": "Query by coordinates (SRID 4326 - decimal degrees)", "method": "get", "endpoint": "@:lat,:lon", "responses": [ { "uuid": "da802530-029d-40e0-96eb-fc778d556e0a", "body": "{\n \"location\": {\n \"lat\": {{faker 'number.float'}},\n \"lon\": {{faker 'number.float'}},\n \"withinLondonCCZ\": {{faker 'datatype.boolean'}}\n },\n \"lsoa\": {\n \"crimes\": {},\n \"name\": \"\",\n \"population\": {\n \"allUsualResidents\": {{faker 'number.int' max=99999}},\n \"communalEstablishmentResidents\": {{faker 'number.int' max=99999}},\n \"householdResidents\": {{faker 'number.int' max=99999}},\n \"households\": {{faker 'number.int' max=99999}},\n \"personsPerHectare\": {{faker 'number.int' max=99999}},\n \"personsPerHousehold\": {{faker 'number.int' max=99999}}\n }\n },\n \"parks\": [\n {\n \"areaSqm\": {{faker 'number.int' max=99999}},\n \"centroid\": \"\",\n \"distanceMeters\": {{faker 'number.int' max=99999}},\n \"name\": \"\"\n }\n ],\n \"schools\": [\n {\n \"distanceMeters\": {{faker 'number.int' max=99999}},\n \"lastInpectionUrl\": \"\",\n \"lastInspectionDate\": \"{{faker 'date.recent' 365}}\",\n \"leadershipAndManagement\": {{faker 'number.int' max=99999}},\n \"location\": \"\",\n \"overallEffectiveness\": {{faker 'number.int' max=99999}},\n \"phase\": \"\",\n \"qualityOfTeaching\": {{faker 'number.int' max=99999}},\n \"schoolName\": \"\",\n \"typeOfEstablishment\": \"\",\n \"urn\": {{faker 'number.int' max=99999}}\n }\n ]\n}", "latency": 0, "statusCode": 200, "label": "No response was specified", "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": "47c8ea0e-28e7-46b7-ada9-b02421bcc2ad", "documentation": "Query by postcode", "method": "get", "endpoint": "postcodes/:postcode", "responses": [ { "uuid": "370508f8-8a6c-463d-a251-7fe879198de8", "body": "{\n \"location\": {\n \"lat\": {{faker 'number.float'}},\n \"lon\": {{faker 'number.float'}},\n \"withinLondonCCZ\": {{faker 'datatype.boolean'}}\n },\n \"lsoa\": {\n \"crimes\": {},\n \"name\": \"\",\n \"population\": {\n \"allUsualResidents\": {{faker 'number.int' max=99999}},\n \"communalEstablishmentResidents\": {{faker 'number.int' max=99999}},\n \"householdResidents\": {{faker 'number.int' max=99999}},\n \"households\": {{faker 'number.int' max=99999}},\n \"personsPerHectare\": {{faker 'number.int' max=99999}},\n \"personsPerHousehold\": {{faker 'number.int' max=99999}}\n }\n },\n \"parks\": [\n {\n \"areaSqm\": {{faker 'number.int' max=99999}},\n \"centroid\": \"\",\n \"distanceMeters\": {{faker 'number.int' max=99999}},\n \"name\": \"\"\n }\n ],\n \"schools\": [\n {\n \"distanceMeters\": {{faker 'number.int' max=99999}},\n \"lastInpectionUrl\": \"\",\n \"lastInspectionDate\": \"{{faker 'date.recent' 365}}\",\n \"leadershipAndManagement\": {{faker 'number.int' max=99999}},\n \"location\": \"\",\n \"overallEffectiveness\": {{faker 'number.int' max=99999}},\n \"phase\": \"\",\n \"qualityOfTeaching\": {{faker 'number.int' max=99999}},\n \"schoolName\": \"\",\n \"typeOfEstablishment\": \"\",\n \"urn\": {{faker 'number.int' max=99999}}\n }\n ]\n}", "latency": 0, "statusCode": 200, "label": "No response was specified", "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": "5195ac66-16a0-4bc8-98de-0ad1d6c055c0", "documentation": "Get usage in current month", "method": "get", "endpoint": "usage", "responses": [ { "uuid": "babde980-0c87-463a-b46b-6c5721a22b5a", "body": "{\n \"allowance\": {{faker 'number.int' max=99999}},\n \"period\": \"\",\n \"periodEnd\": \"{{faker 'date.recent' 365}}\",\n \"periodStart\": \"{{faker 'date.recent' 365}}\",\n \"plan\": \"\",\n \"usage\": {{faker 'number.int' max=99999}}\n}", "latency": 0, "statusCode": 200, "label": "No response was specified", "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": "04f06e8d-737f-491e-a026-9956645e69a1" }, { "type": "route", "uuid": "47c8ea0e-28e7-46b7-ada9-b02421bcc2ad" }, { "type": "route", "uuid": "5195ac66-16a0-4bc8-98de-0ad1d6c055c0" } ] }