{ "uuid": "ee080fba-eb70-4b0e-a3b6-0f742e7beb6f", "lastMigration": 29, "name": "Extension API", "endpointPrefix": "t/vbc.prod/provisioning", "latency": 0, "port": 3000, "hostname": "", "routes": [ { "uuid": "ed820b34-af1c-4ca5-af20-1ee0d762587d", "documentation": "Get account extensions data by account ID", "method": "get", "endpoint": "api/accounts/:account_id/extensions", "responses": [ { "uuid": "7bb89c8f-f7bf-481f-a559-93c5509f0029", "body": "{\n \"_embedded\": {\n \"data\": {\n \"block_caller_id\": {{faker 'datatype.boolean'}},\n \"caller_id\": \"John Smith\",\n \"dids\": [\n {\n \"custom_tag\": \"My Tag\",\n \"phone_number\": \"14155550100\"\n }\n ],\n \"dnd_enabled\": {{faker 'datatype.boolean'}},\n \"extension_handsets\": [\n {\n \"handset_name\": \"line1-VH6370927\",\n \"sip_id\": \"VH16370927\"\n }\n ],\n \"extension_number\": \"789\",\n \"location_id\": 145214,\n \"user\": {\n \"email\": \"john.smith@example.com\",\n \"first_name\": \"John\",\n \"last_name\": \"Smith\",\n \"login_name\": \"jsmith\"\n },\n \"vtt_enabled\": true\n }\n },\n \"_links\": {\n \"first\": {\n \"href\": \"\"\n },\n \"next\": {\n \"href\": \"\"\n },\n \"prev\": {\n \"href\": \"\"\n },\n \"self\": {\n \"href\": \"\"\n }\n },\n \"page\": 1,\n \"page_size\": 10,\n \"total_items\": 100,\n \"total_pages\": 10\n}", "latency": 0, "statusCode": 200, "label": "Success", "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": "9e136b8d-a939-4a8e-adc9-78cd6a4dbdeb", "body": "{\n \"instance\": \"\",\n \"invalid_parameters\": [\n {\n \"name\": \"\",\n \"reason\": \"\"\n }\n ],\n \"status\": {{faker 'number.int' max=99999}},\n \"title\": \"\"\n}", "latency": 0, "statusCode": 400, "label": "Invalid parameters given", "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" }, { "uuid": "9a98c601-65b9-487d-a1c5-94b9a15a295b", "documentation": "Get extension data by account ID and extension number", "method": "get", "endpoint": "api/accounts/:account_id/extensions/:extension_number", "responses": [ { "uuid": "0d5c1cee-c101-4e15-a760-f32715d7049c", "body": "{\n \"_embedded\": {\n \"data\": {\n \"block_caller_id\": {{faker 'datatype.boolean'}},\n \"caller_id\": \"John Smith\",\n \"dids\": [\n {\n \"custom_tag\": \"My Tag\",\n \"phone_number\": \"14155550100\"\n }\n ],\n \"dnd_enabled\": {{faker 'datatype.boolean'}},\n \"extension_handsets\": [\n {\n \"handset_name\": \"line1-VH6370927\",\n \"sip_id\": \"VH16370927\"\n }\n ],\n \"extension_number\": \"789\",\n \"location_id\": 145214,\n \"user\": {\n \"email\": \"john.smith@example.com\",\n \"first_name\": \"John\",\n \"last_name\": \"Smith\",\n \"login_name\": \"jsmith\"\n },\n \"vtt_enabled\": true\n }\n },\n \"_links\": {\n \"first\": {\n \"href\": \"\"\n },\n \"next\": {\n \"href\": \"\"\n },\n \"prev\": {\n \"href\": \"\"\n },\n \"self\": {\n \"href\": \"\"\n }\n },\n \"page\": 1,\n \"page_size\": 10,\n \"total_items\": 100,\n \"total_pages\": 10\n}", "latency": 0, "statusCode": 200, "label": "Success", "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": "21750c18-b2ff-435b-8a7d-0669b70a8000", "body": "{\n \"msg\": \"\",\n \"status\": {{faker 'number.int' max=99999}}\n}", "latency": 0, "statusCode": 404, "label": "Extension 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" } ], "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": "ed820b34-af1c-4ca5-af20-1ee0d762587d" }, { "type": "route", "uuid": "9a98c601-65b9-487d-a1c5-94b9a15a295b" } ] }