{ "uuid": "6282a203-ed21-4136-92f5-fba9c4fd6164", "lastMigration": 19, "name": "Dealer", "endpointPrefix": "dealer_tryout/v1", "latency": 0, "port": 3000, "hostname": "0.0.0.0", "routes": [ { "uuid": "a160674f-92b4-47c1-90fd-e9a266f8987e", "documentation": "This request returns the countries supported by the Dealer API", "method": "get", "endpoint": "countries", "responses": [ { "uuid": "6752def4-2213-42e6-914a-5080ec28d1b9", "body": "{\n \"_links\": {\n \"next\": {\n \"href\": \"\"\n },\n \"previous\": {\n \"href\": \"\"\n },\n \"self\": {\n \"href\": \"\"\n }\n },\n \"countries\": [\n {\n \"countryId\": \"\",\n \"isoCode\": \"\",\n \"name\": \"\"\n }\n ]\n}", "latency": 0, "statusCode": 200, "label": "OK", "headers": [ { "key": "Content-Type", "value": "application/json" } ], "filePath": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false }, { "uuid": "28a282c7-3781-49d9-aa55-40e58b926a7f", "body": "", "latency": 0, "statusCode": 400, "label": "Invalid parameter was specified:\n * Page is not valid\n * Page size is not valid", "headers": [ { "key": "Content-Type", "value": "application/json" } ], "filePath": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false }, { "uuid": "57615fc8-3a9c-4235-a460-b4e021372aa6", "body": "", "latency": 0, "statusCode": 401, "label": "Unauthorized:\n * Failed to resolve API Key query parameter\n * Invalid API Key", "headers": [ { "key": "Content-Type", "value": "application/json" } ], "filePath": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false }, { "uuid": "88f6b999-23f8-4078-aa02-ae91e1e7636f", "body": "", "latency": 0, "statusCode": 429, "label": "Quota limit is exceeded", "headers": [ { "key": "Content-Type", "value": "application/json" } ], "filePath": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false }, { "uuid": "29b5abb1-0a4e-4660-89e3-f1bb492f1a73", "body": "", "latency": 0, "statusCode": 500, "label": "Internal server error", "headers": [ { "key": "Content-Type", "value": "application/json" } ], "filePath": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false } ], "enabled": true, "randomResponse": false, "sequentialResponse": false }, { "uuid": "7d3074fe-b60b-4bb8-80e6-aaf53a220e97", "documentation": "This request returns dealers (dealer, garage, retailer, etc.) for given parameters", "method": "get", "endpoint": "dealers", "responses": [ { "uuid": "a4ecb6a0-eebe-42f0-af2f-9332fb4b537d", "body": "{\n \"_links\": {\n \"next\": {\n \"href\": \"\"\n },\n \"previous\": {\n \"href\": \"\"\n },\n \"self\": {\n \"href\": \"\"\n }\n },\n \"dealers\": [\n {\n \"_links\": {\n \"self\": {\n \"href\": \"\"\n }\n },\n \"address\": {\n \"addressAddition\": \"\",\n \"city\": \"\",\n \"countryIsoCode\": \"\",\n \"district\": \"\",\n \"street\": \"\",\n \"zipCode\": \"\"\n },\n \"brandCodes\": [\n {\n \"brand\": {\n \"code\": \"\",\n \"name\": \"\"\n }\n }\n ],\n \"communication\": {\n \"general\": {\n \"email\": \"\",\n \"facebook\": \"\",\n \"fax\": \"\",\n \"googlePlus\": \"\",\n \"mobile\": \"\",\n \"phone\": \"\",\n \"twitter\": \"\",\n \"website\": \"\"\n }\n },\n \"dealerId\": \"\",\n \"distance\": {\n \"unit\": \"{{oneOf (array 'M' 'KM' 'MILE')}}\",\n \"value\": {{faker 'random.float'}}\n },\n \"functions\": [\n {\n \"activity\": {\n \"code\": \"\",\n \"name\": \"\"\n },\n \"brand\": {\n \"code\": \"\",\n \"name\": \"\"\n },\n \"productGroup\": {\n \"code\": \"\",\n \"name\": \"\"\n }\n }\n ],\n \"geoCoordinates\": {\n \"latitude\": {{faker 'random.float'}},\n \"longitude\": {{faker 'random.float'}}\n },\n \"legalName\": \"\",\n \"nameAddition\": \"\",\n \"openingHours\": [\n {\n \"function\": {\n \"activity\": {\n \"code\": \"\",\n \"name\": \"\"\n },\n \"brand\": {\n \"code\": \"\",\n \"name\": \"\"\n },\n \"productGroup\": {\n \"code\": \"\",\n \"name\": \"\"\n }\n },\n \"weekdays\": {\n \"FRIDAY\": {\n \"periods\": [\n {\n \"from\": \"\",\n \"until\": \"\"\n }\n ],\n \"status\": \"{{oneOf (array 'OPEN' 'CLOSED')}}\"\n },\n \"MONDAY\": {\n \"periods\": [\n {\n \"from\": \"\",\n \"until\": \"\"\n }\n ],\n \"status\": \"{{oneOf (array 'OPEN' 'CLOSED')}}\"\n },\n \"SATURDAY\": {\n \"periods\": [\n {\n \"from\": \"\",\n \"until\": \"\"\n }\n ],\n \"status\": \"{{oneOf (array 'OPEN' 'CLOSED')}}\"\n },\n \"SUNDAY\": {\n \"periods\": [\n {\n \"from\": \"\",\n \"until\": \"\"\n }\n ],\n \"status\": \"{{oneOf (array 'OPEN' 'CLOSED')}}\"\n },\n \"THURSDAY\": {\n \"periods\": [\n {\n \"from\": \"\",\n \"until\": \"\"\n }\n ],\n \"status\": \"{{oneOf (array 'OPEN' 'CLOSED')}}\"\n },\n \"TUESDAY\": {\n \"periods\": [\n {\n \"from\": \"\",\n \"until\": \"\"\n }\n ],\n \"status\": \"{{oneOf (array 'OPEN' 'CLOSED')}}\"\n },\n \"WEDNESDAY\": {\n \"periods\": [\n {\n \"from\": \"\",\n \"until\": \"\"\n }\n ],\n \"status\": \"{{oneOf (array 'OPEN' 'CLOSED')}}\"\n }\n }\n }\n ],\n \"region\": {\n \"region\": \"\",\n \"subRegion\": \"\"\n }\n }\n ]\n}", "latency": 0, "statusCode": 200, "label": "OK", "headers": [ { "key": "Content-Type", "value": "application/json" } ], "filePath": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false }, { "uuid": "7b0146a7-4423-4a01-b997-e5d567aebb59", "body": "", "latency": 0, "statusCode": 204, "label": "The search did not match any dealers.", "headers": [ { "key": "Content-Type", "value": "application/json" } ], "filePath": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false }, { "uuid": "9755dcf7-301e-4430-9d16-5b498baab81a", "body": "", "latency": 0, "statusCode": 400, "label": "Invalid parameter was specified:\n * DealerId is not valid\n * Area search is not valid (latitude or longitude missing or invalid)\n * Country ISO code is not valid\n * Brand code is not valid\n * Product group is not valid\n * Activity is not valid\n * Page is not valid\n * Page size is not valid", "headers": [ { "key": "Content-Type", "value": "application/json" } ], "filePath": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false }, { "uuid": "0ca58805-4e67-49b9-9e3a-b2fe56ab2569", "body": "", "latency": 0, "statusCode": 401, "label": "Unauthorized:\n * Failed to resolve API Key query parameter\n * Invalid API Key", "headers": [ { "key": "Content-Type", "value": "application/json" } ], "filePath": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false }, { "uuid": "7821011b-e519-421e-9cf3-bfadc3f4aabc", "body": "", "latency": 0, "statusCode": 429, "label": "Quota limit is exceeded", "headers": [ { "key": "Content-Type", "value": "application/json" } ], "filePath": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false }, { "uuid": "dadb411a-ce12-474f-a2b6-22a0a5988600", "body": "", "latency": 0, "statusCode": 500, "label": "Internal server error", "headers": [ { "key": "Content-Type", "value": "application/json" } ], "filePath": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false } ], "enabled": true, "randomResponse": false, "sequentialResponse": false }, { "uuid": "be970506-2896-4c3a-ab94-04baeab0705b", "documentation": "This request returns dealers for given parameters", "method": "get", "endpoint": "dealers/:dealerId", "responses": [ { "uuid": "181eb698-eac5-4209-a35c-db1cb824c2a8", "body": "{\n \"_links\": {\n \"self\": {\n \"href\": \"\"\n }\n },\n \"address\": {\n \"addressAddition\": \"\",\n \"city\": \"\",\n \"countryIsoCode\": \"\",\n \"district\": \"\",\n \"street\": \"\",\n \"zipCode\": \"\"\n },\n \"brandCodes\": [\n {\n \"brand\": {\n \"code\": \"\",\n \"name\": \"\"\n }\n }\n ],\n \"communication\": {\n \"general\": {\n \"email\": \"\",\n \"facebook\": \"\",\n \"fax\": \"\",\n \"googlePlus\": \"\",\n \"mobile\": \"\",\n \"phone\": \"\",\n \"twitter\": \"\",\n \"website\": \"\"\n }\n },\n \"dealerId\": \"\",\n \"distance\": {\n \"unit\": \"{{oneOf (array 'M' 'KM' 'MILE')}}\",\n \"value\": {{faker 'random.float'}}\n },\n \"functions\": [\n {\n \"activity\": {\n \"code\": \"\",\n \"name\": \"\"\n },\n \"brand\": {\n \"code\": \"\",\n \"name\": \"\"\n },\n \"productGroup\": {\n \"code\": \"\",\n \"name\": \"\"\n }\n }\n ],\n \"geoCoordinates\": {\n \"latitude\": {{faker 'random.float'}},\n \"longitude\": {{faker 'random.float'}}\n },\n \"legalName\": \"\",\n \"nameAddition\": \"\",\n \"openingHours\": [\n {\n \"function\": {\n \"activity\": {\n \"code\": \"\",\n \"name\": \"\"\n },\n \"brand\": {\n \"code\": \"\",\n \"name\": \"\"\n },\n \"productGroup\": {\n \"code\": \"\",\n \"name\": \"\"\n }\n },\n \"weekdays\": {\n \"FRIDAY\": {\n \"periods\": [\n {\n \"from\": \"\",\n \"until\": \"\"\n }\n ],\n \"status\": \"{{oneOf (array 'OPEN' 'CLOSED')}}\"\n },\n \"MONDAY\": {\n \"periods\": [\n {\n \"from\": \"\",\n \"until\": \"\"\n }\n ],\n \"status\": \"{{oneOf (array 'OPEN' 'CLOSED')}}\"\n },\n \"SATURDAY\": {\n \"periods\": [\n {\n \"from\": \"\",\n \"until\": \"\"\n }\n ],\n \"status\": \"{{oneOf (array 'OPEN' 'CLOSED')}}\"\n },\n \"SUNDAY\": {\n \"periods\": [\n {\n \"from\": \"\",\n \"until\": \"\"\n }\n ],\n \"status\": \"{{oneOf (array 'OPEN' 'CLOSED')}}\"\n },\n \"THURSDAY\": {\n \"periods\": [\n {\n \"from\": \"\",\n \"until\": \"\"\n }\n ],\n \"status\": \"{{oneOf (array 'OPEN' 'CLOSED')}}\"\n },\n \"TUESDAY\": {\n \"periods\": [\n {\n \"from\": \"\",\n \"until\": \"\"\n }\n ],\n \"status\": \"{{oneOf (array 'OPEN' 'CLOSED')}}\"\n },\n \"WEDNESDAY\": {\n \"periods\": [\n {\n \"from\": \"\",\n \"until\": \"\"\n }\n ],\n \"status\": \"{{oneOf (array 'OPEN' 'CLOSED')}}\"\n }\n }\n }\n ],\n \"region\": {\n \"region\": \"\",\n \"subRegion\": \"\"\n }\n}", "latency": 0, "statusCode": 200, "label": "OK", "headers": [ { "key": "Content-Type", "value": "application/json" } ], "filePath": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false }, { "uuid": "399d7b1c-e564-473c-a951-229e65d9b99f", "body": "", "latency": 0, "statusCode": 400, "label": "Invalid format for parameter dealerId was specified", "headers": [ { "key": "Content-Type", "value": "application/json" } ], "filePath": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false }, { "uuid": "2a5cd31b-1a48-4878-80d9-661aa72596b4", "body": "", "latency": 0, "statusCode": 401, "label": "Unauthorized:\n * Failed to resolve API Key query parameter\n * Invalid API Key", "headers": [ { "key": "Content-Type", "value": "application/json" } ], "filePath": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false }, { "uuid": "0d2188e9-8964-4dfa-8934-43aeb72d2180", "body": "", "latency": 0, "statusCode": 404, "label": "Dealer not found", "headers": [ { "key": "Content-Type", "value": "application/json" } ], "filePath": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false }, { "uuid": "4e879e23-9829-4cae-a9a0-d32741c84264", "body": "", "latency": 0, "statusCode": 429, "label": "Quota limit is exceeded", "headers": [ { "key": "Content-Type", "value": "application/json" } ], "filePath": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false }, { "uuid": "4afaaf0f-6ee8-4892-b0a3-b82f30c270c3", "body": "", "latency": 0, "statusCode": 500, "label": "Internal server error", "headers": [ { "key": "Content-Type", "value": "application/json" } ], "filePath": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false } ], "enabled": true, "randomResponse": false, "sequentialResponse": false } ], "proxyMode": false, "proxyHost": "", "proxyRemovePrefix": false, "tlsOptions": { "enabled": false, "type": "CERT", "pfxPath": "", "certPath": "", "keyPath": "", "caPath": "", "passphrase": "" }, "cors": true, "headers": [], "proxyReqHeaders": [ { "key": "", "value": "" } ], "proxyResHeaders": [ { "key": "", "value": "" } ] }