Last active
October 12, 2020 10:13
-
-
Save AlanJenkinsVS/dc6e438b91763eda084c7de45bc0c82f to your computer and use it in GitHub Desktop.
Competitions List endpoint with EssentialFields
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"meta": { | |
"request_ref": "get.competitions.5f842b59dac02", | |
"num_notices": 0, | |
"num_data_lines": 3, | |
"num_warnings": 0, | |
"num_errors": 0, | |
"time_taken": 0.30497, | |
"org_id": 1 | |
}, | |
"warnings": null, | |
"links": { | |
"self": "http://headlessapi.visualsoft.io/v1/competitions?perPage=10&common_filter=EssentialFields&handler=none&page=1", | |
"next": null, | |
"prev": null, | |
"last": "http://headlessapi.visualsoft.io/v1/competitions?perPage=10&common_filter=EssentialFields&handler=none&page=1", | |
"total": 3, | |
"per_page": 10, | |
"current_page": 1, | |
"last_page": 1 | |
}, | |
"errors": null, | |
"data": [ | |
[ | |
{ | |
"id": 1, | |
"type": "competition", | |
"attributes": { | |
"name": "Updated competition again26", | |
"active_status": "N", | |
"sort_order": 1 | |
}, | |
"links": { | |
"self": "/v1/competitions/1" | |
}, | |
"relationships": { | |
"winners": { | |
"data": [ | |
{ | |
"type": "form_submission", | |
"id": 3 | |
}, | |
{ | |
"type": "form_submission", | |
"id": 4 | |
} | |
] | |
} | |
} | |
}, | |
{ | |
"id": 12, | |
"type": "competition", | |
"attributes": { | |
"name": "Win a Parno! 2", | |
"active_status": "Y", | |
"sort_order": 12 | |
}, | |
"links": { | |
"self": "/v1/competitions/12" | |
} | |
}, | |
{ | |
"id": 13, | |
"type": "competition", | |
"attributes": { | |
"name": "Testing Competition", | |
"active_status": "N", | |
"sort_order": 13 | |
}, | |
"links": { | |
"self": "/v1/competitions/13" | |
} | |
} | |
] | |
], | |
"request_url": "competitions?common_filter=EssentialFields&handler=none" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment