{ "uuid": "a69950e0-cfd7-4e00-bcaa-7e05404f9765", "lastMigration": 29, "name": "Vehicle Enquiry API", "endpointPrefix": "vehicle-enquiry", "latency": 0, "port": 3000, "hostname": "", "routes": [ { "uuid": "04d0234c-45b6-4aa4-87ca-e33bef195664", "documentation": "Get vehicle details by registration number", "method": "post", "endpoint": "v1/vehicles", "responses": [ { "uuid": "a52ab494-cabc-4dd3-b8e9-2bbc8214419c", "body": "{\n \"artEndDate\": \"2007-12-25\",\n \"co2Emissions\": {{faker 'number.int' max=99999}},\n \"colour\": \"Blue\",\n \"dateOfLastV5CIssued\": \"2016-12-25\",\n \"engineCapacity\": 1796,\n \"euroStatus\": \"Euro 5\",\n \"fuelType\": \"PETROL\",\n \"make\": \"ROVER\",\n \"markedForExport\": true,\n \"monthOfFirstDvlaRegistration\": \"2011-11\",\n \"monthOfFirstRegistration\": \"2012-12\",\n \"motExpiryDate\": \"2008-12-25\",\n \"motStatus\": \"{{oneOf (array 'No details held by DVLA' 'No results returned' 'Not valid' 'Valid')}}\",\n \"realDrivingEmissions\": \"1\",\n \"registrationNumber\": \"WN67DSO\",\n \"revenueWeight\": 1640,\n \"taxDueDate\": \"2017-12-25\",\n \"taxStatus\": \"{{oneOf (array 'Not Taxed for on Road Use' 'SORN' 'Taxed' 'Untaxed')}}\",\n \"typeApproval\": \"N1\",\n \"wheelplan\": \"NON STANDARD\",\n \"yearOfManufacture\": 2004\n}", "latency": 0, "statusCode": 200, "label": "Successful 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" }, { "uuid": "37f127dd-54b2-48bc-8046-6ca7991138d5", "body": "{\n \"errors\": [\n {\n \"code\": \"105\",\n \"detail\": \"Invalid format for field - vehicle registration number\",\n \"status\": \"400\",\n \"title\": \"Invalid vrn number\"\n }\n ]\n}", "latency": 0, "statusCode": 400, "label": "Bad Request", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" }, { "uuid": "37ea387c-3a7b-4a92-aaa8-018bfc058405", "body": "{\n \"errors\": [\n {\n \"code\": \"105\",\n \"detail\": \"Invalid format for field - vehicle registration number\",\n \"status\": \"400\",\n \"title\": \"Invalid vrn number\"\n }\n ]\n}", "latency": 0, "statusCode": 404, "label": "Vehicle Not Found", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" }, { "uuid": "1dd1eae6-e769-4fa4-8afd-41a7dca6f814", "body": "{\n \"errors\": [\n {\n \"code\": \"105\",\n \"detail\": \"Invalid format for field - vehicle registration number\",\n \"status\": \"400\",\n \"title\": \"Invalid vrn number\"\n }\n ]\n}", "latency": 0, "statusCode": 500, "label": "Internal Server Error", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" }, { "uuid": "0a44076d-305d-4d85-868a-f3e10b8a8d62", "body": "{\n \"errors\": [\n {\n \"code\": \"105\",\n \"detail\": \"Invalid format for field - vehicle registration number\",\n \"status\": \"400\",\n \"title\": \"Invalid vrn number\"\n }\n ]\n}", "latency": 0, "statusCode": 503, "label": "Service Unavailable", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "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": "04d0234c-45b6-4aa4-87ca-e33bef195664" } ] }