Club
List
Definition
GET https://api-v2.swissunihockey.ch/api/clubs
Lists all clubs that have played in a given season.
Parameters:
- season
- integer
- The season to query
Return value is a dropdown with the following columns:
- text
- string
- The name of the dropdown.
- resource
- array(object)
- A list of header columns. Contains the text to display,
- how it is aligned, and how wide it is.
- entries
- array(object)
- Dropdown selections with set_in_content where saison_id is set, and a textual representation of a saison.
- levels
- array(string)
- There is only one level, "Verein".
- highlight
- boolean
- Always false.
Returns a structure of type dropdown
:
{
"type": "dropdown",
"text": "Verein",
"resource": "/clubs",
"entries": [
{"text": "Verein 1", "set_in_context": {"club_id": 467}, "entries": [], "highlight": true}
],
"levels": ["Verein"],
"highlight": false
}
Team overview
Definition
GET https://api-v2.swissunihockey.ch/api/clubs/:club_id/statistics
Lists all teams of the club that have played in a given season and their achievements. If no season is specified, the current season is assumed.
Parameters apart from :club_id
:
- season
- integer
- The season to query
Return value is a table with the following columns:
- team
- text
- League the team plays in
- tournament
- text
- Current position in the tournament
- cup
- text
- Current position in Cup tournament, if any.