{ "uuid": "f9f6dcdf-5d07-4fd2-92ec-ed56ea44666e", "lastMigration": 29, "name": "Canada Holidays API", "endpointPrefix": "", "latency": 0, "port": 3000, "hostname": "", "routes": [ { "uuid": "4597336c-6606-4f40-8af5-8def7c75bb7b", "documentation": "root", "method": "get", "endpoint": "api/v1", "responses": [ { "uuid": "504ba540-74d5-4bad-9ead-7ecbe1f36302", "body": "{\n \"_links\": {\n \"holidays\": {\n \"href\": \"http://localhost:3000/api/v1/holidays\"\n },\n \"provinces\": {\n \"href\": \"http://localhost:3000/api/v1/provinces\"\n },\n \"self\": {\n \"href\": \"http://localhost:3000/api/v1/\"\n }\n },\n \"message\": \"Hello / Bonjour!\"\n}", "latency": 0, "statusCode": 200, "label": "OK", "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": "991fd784-5c80-46ba-9efc-7af658f75efb", "documentation": "Get all holidays", "method": "get", "endpoint": "api/v1/holidays", "responses": [ { "uuid": "25775ff3-cd0c-4e54-9cb8-fe6167208c52", "body": "{\n \"holidays\": [\n \"\"\n ]\n}", "latency": 0, "statusCode": 200, "label": "OK", "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": "6a6aa2d8-5f24-4f02-812a-bdebeccac20d", "documentation": "Get a holiday by id", "method": "get", "endpoint": "api/v1/holidays/:holidayId", "responses": [ { "uuid": "c4f50cdd-db24-452d-99ab-7146881ae82d", "body": "{\n \"holiday\": \"\"\n}", "latency": 0, "statusCode": 200, "label": "OK", "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": "5ddf5fb1-f619-4a18-ba95-8675186879ae", "body": "{\n \"error\": {\n \"message\": \"Error: No holiday with id “100”\",\n \"status\": 404,\n \"timestamp\": \"2020-04-27T05:41:10.710Z\"\n }\n}", "latency": 0, "statusCode": 404, "label": "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" }, { "uuid": "7a552354-ef78-405f-89c5-c0ffa5fb5e71", "documentation": "Get all provinces", "method": "get", "endpoint": "api/v1/provinces", "responses": [ { "uuid": "53260e39-f8f4-44ac-b65b-2aa998acb3f8", "body": "{\n \"provinces\": [\n \"\"\n ]\n}", "latency": 0, "statusCode": 200, "label": "OK", "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": "38f3aacb-e3e8-4de9-b284-f64d4b920c2e", "documentation": "Get a province or territory by abbreviation", "method": "get", "endpoint": "api/v1/provinces/:provinceId", "responses": [ { "uuid": "00e9155c-01d4-4fa6-9bdf-9eaf4497c460", "body": "{\n \"province\": \"\"\n}", "latency": 0, "statusCode": 200, "label": "OK", "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": "28e01f64-33df-4490-bf48-81e6f6ebc7bc", "body": "{\n \"error\": {\n \"message\": \"Error: No holiday with id “100”\",\n \"status\": 404,\n \"timestamp\": \"2020-04-27T05:41:10.710Z\"\n }\n}", "latency": 0, "statusCode": 404, "label": "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": "4597336c-6606-4f40-8af5-8def7c75bb7b" }, { "type": "route", "uuid": "991fd784-5c80-46ba-9efc-7af658f75efb" }, { "type": "route", "uuid": "6a6aa2d8-5f24-4f02-812a-bdebeccac20d" }, { "type": "route", "uuid": "7a552354-ef78-405f-89c5-c0ffa5fb5e71" }, { "type": "route", "uuid": "38f3aacb-e3e8-4de9-b284-f64d4b920c2e" } ] }