diff --git a/vertical-life-api.md b/vertical-life-api.md index e7f99cb..3b111cc 100644 --- a/vertical-life-api.md +++ b/vertical-life-api.md @@ -11,11 +11,29 @@ The VL API is located at [https://ifsc.results.info/api/v1/](https://ifsc.result - For easy use, a browser plugin can be used to inject the header automatically, [this one](https://addons.mozilla.org/en-US/firefox/addon/modify-header-value/) worked just fine for me on Firefox. # Usage -## Get competition types ("leagues") +## Get all seasons and leagues - Path: ```/``` - This will return all seasons with leagues and the current one - Example: [https://ifsc.results.info/api/v1/](https://ifsc.results.info/api/v1/) +## Get league data +- Path: ```https://ifsc.results.info/api/v1/season_leagues/``` +- This will return a list of competitions in the season +- content: + - ```d_cats```: categories [array] + - ```events```: competitions [array] + - ```d_cats```: categories in the competitions [array] + - ```status```: current status of the competitions [string] + - ```registration_active``` + - ```registration_pending``` + - ```active``` ? + - ```finished``` + - ```category_rounds``` + - ```status```: current status of the round + - ```pending``` + - ```active``` + - ```finished``` + # Examples - [All seasons](https://ifsc.results.info/api/v1/) ## Boulder