{ "uuid": "d7ecaece-3fdb-4367-8a39-28ca2a9ddab6", "lastMigration": 29, "name": "Football Prediction API", "endpointPrefix": "", "latency": 0, "port": 3000, "hostname": "", "routes": [ { "uuid": "a52b8ad4-5c99-454e-9ef9-abf53ffe35c1", "documentation": "Returns an array of all the available federations.", "method": "get", "endpoint": "api/v2/list-federations", "responses": [ { "uuid": "935ca9a7-ac4d-4f81-bccf-69f6b7682d21", "body": "{\n \"data\": [\n \"\"\n ]\n}", "latency": 0, "statusCode": 200, "label": "Static response, shows available federations.", "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": "f43c28fd-c41f-488d-a4e3-d381501ff295", "body": "{\n \"errors\": {}\n}", "latency": 0, "statusCode": 404, "label": "Bad request, check response for detailed errors.", "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": "a5af224e-e035-4bd3-be61-c181daa00e7f", "documentation": "Returns an array of all the supported prediction markets", "method": "get", "endpoint": "api/v2/list-markets", "responses": [ { "uuid": "f945eb8b-7a39-4f49-89c9-c2133bf6f091", "body": "{\n \"data\": {\n \"all\": [\n \"\"\n ],\n \"allowed_for_your_subscription\": [\n \"\"\n ]\n }\n}", "latency": 0, "statusCode": 200, "label": "Static response, shows available markets for the current subscription and all available markets in general.", "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": "fd28813c-e97c-48af-82ef-b078dbe6f6e9", "body": "{\n \"errors\": {}\n}", "latency": 0, "statusCode": 404, "label": "Bad request, check response for detailed errors.", "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": "a80be351-81a3-4380-903b-98846685675c", "documentation": "Returns predictions accuracy in the last 1, 7, 14, 30 days.", "method": "get", "endpoint": "api/v2/performance-stats", "responses": [ { "uuid": "d767a222-2118-4bae-8630-acd307502b3f", "body": "{\n \"data\": {\n \"accuracy\": {\n \"last_14_days\": {{faker 'number.int' max=99999}},\n \"last_30_days\": {{faker 'number.int' max=99999}},\n \"last_7_days\": {{faker 'number.int' max=99999}},\n \"yesterday\": {{faker 'number.int' max=99999}}\n },\n \"details\": {\n \"last_14_days\": {\n \"lost\": {{faker 'number.int' max=99999}},\n \"pending\": {{faker 'number.int' max=99999}},\n \"postponed\": {{faker 'number.int' max=99999}},\n \"total\": {{faker 'number.int' max=99999}},\n \"won\": {{faker 'number.int' max=99999}}\n },\n \"last_30_days\": {\n \"lost\": {{faker 'number.int' max=99999}},\n \"pending\": {{faker 'number.int' max=99999}},\n \"postponed\": {{faker 'number.int' max=99999}},\n \"total\": {{faker 'number.int' max=99999}},\n \"won\": {{faker 'number.int' max=99999}}\n },\n \"last_7_days\": {\n \"lost\": {{faker 'number.int' max=99999}},\n \"pending\": {{faker 'number.int' max=99999}},\n \"postponed\": {{faker 'number.int' max=99999}},\n \"total\": {{faker 'number.int' max=99999}},\n \"won\": {{faker 'number.int' max=99999}}\n },\n \"yesterday\": {\n \"lost\": {{faker 'number.int' max=99999}},\n \"pending\": {{faker 'number.int' max=99999}},\n \"postponed\": {{faker 'number.int' max=99999}},\n \"total\": {{faker 'number.int' max=99999}},\n \"won\": {{faker 'number.int' max=99999}}\n }\n },\n \"market\": \"\"\n }\n}", "latency": 0, "statusCode": 200, "label": "Good request, returns object that contains accuracy and other datails about predictions.", "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": "7f47ec2f-c4a7-49d6-887b-2895de8093ea", "body": "{\n \"errors\": {}\n}", "latency": 0, "statusCode": 404, "label": "Bad request, check response for detailed errors.", "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": "c13146dd-0f7f-4f8e-892c-41c80b564db2", "documentation": "This endpoint returns by default the next non-expired football predictions. URL parameters can be specified to show specific date in the past or future or to filter by federation and prediction market name.", "method": "get", "endpoint": "api/v2/predictions", "responses": [ { "uuid": "40edcfbc-d12c-4a60-8892-e701138f2f86", "body": "", "latency": 0, "statusCode": 200, "label": "Good request, returns object that contains data array with all predictions.", "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": "8eed7c3c-f4d0-414c-b48e-3d17241917b8", "body": "{\n \"errors\": {}\n}", "latency": 0, "statusCode": 404, "label": "Bad request, check response for detailed errors.", "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": "f855224b-e36b-4841-84ec-8b50fecc6a11", "documentation": "Returns all predictions available for a match id.", "method": "get", "endpoint": "api/v2/predictions/:id", "responses": [ { "uuid": "41c4f95f-88ca-4c78-8522-b370680600c8", "body": "{\n \"data\": [\n {}\n ]\n}", "latency": 0, "statusCode": 200, "label": "Good request, returns object that contains all the predictions for a certain event.", "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": "3e315515-ab94-4fd1-9fca-495f952594ce", "body": "{\n \"errors\": {}\n}", "latency": 0, "statusCode": 404, "label": "Bad request, check response for detailed errors.", "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": "a52b8ad4-5c99-454e-9ef9-abf53ffe35c1" }, { "type": "route", "uuid": "a5af224e-e035-4bd3-be61-c181daa00e7f" }, { "type": "route", "uuid": "a80be351-81a3-4380-903b-98846685675c" }, { "type": "route", "uuid": "c13146dd-0f7f-4f8e-892c-41c80b564db2" }, { "type": "route", "uuid": "f855224b-e36b-4841-84ec-8b50fecc6a11" } ] }