swiss unihockey teams endpoint Endpoint Documentation

/rest/v1.0/teams
Read methods
Name Value and Notes
Method / Path: GET /{teamid}/games
Description: Returns the games of a team.
Path parameters: teamid: The team id
Required (form) parameters: apikey: Valid API key registered at swiss unihockey
Optional (query) parameters: season: The season (default: current season)
status: The game status (default: ignore parameter): 'planned' (games in future only) or 'played' (played games only)
limit: The maximum number of games returned (default: max. 20 games are returned) [20]
order: Games in output sorted by date in ascending (ASC) or descending (DESC) order [ASC]
Response formats: xml
Status codes: 200: OK — Returning the games for this team (for the given season and status).
404: Not Found — No games for this team found (for the given season and status).
Testing: Test form (click to reveal)
Name Value and Notes
Method / Path: GET /{teamid}/table
Description: Returns the table for the group of a team.
Path parameters: teamid: The team id
Required (form) parameters: apikey: Valid API key registered at swiss unihockey
Optional (query) parameters: season: The season (default: current season)
Response formats: xml
Status codes: 200: OK — Returning the table for the group of this team (for the given season).
404: Not Found — No table for this team found (for the given season).
Testing: Test form (click to reveal)
Name Value and Notes
Method / Path: GET /{teamid}/registrations
Description: Returns the registrations of a team.
Path parameters: teamid: The team id
Required (form) parameters: apikey: Valid API key registered at swiss unihockey
Optional (query) parameters: season: The season (default: current season)
Response formats: xml
Status codes: 200: OK — Returning the registrations for this team (for the given season).
404: Not Found — No registrations for this team found (for the given season).
Testing: Test form (click to reveal)
Name Value and Notes
Method / Path: GET /search
Description: Search for teams by the club name.
Required (form) parameters: apikey: Valid API key registered at swiss unihockey
Optional (query) parameters: q: The club name
season: The season (default: current season)
limit: The search result limit [30]
Response formats: xml
Status codes: 200: OK — Returning all teams found for the given club name.
404: Not Found — No team for the given club name found.
400: Bad Request — Given club name too short (at least 5 characters are required).
Testing: Test form (click to reveal)