Update vertical life api
parent
315972a992
commit
2016f3bd4d
1 changed files with 19 additions and 1 deletions
|
@ -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/<leagueId>```
|
||||
- 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
|
||||
|
|
Loading…
Reference in a new issue