# \DefaultApi All URIs are relative to *https://api.lol-esports.mckernant1.com* Method | HTTP request | Description ------------- | ------------- | ------------- [**get_league_by_code**](DefaultApi.md#get_league_by_code) | **GET** /leagues/{leagueId} | [**get_leagues**](DefaultApi.md#get_leagues) | **GET** /leagues | [**get_matches_for_tournament**](DefaultApi.md#get_matches_for_tournament) | **GET** /matches/{tournamentId} | [**get_most_recent_tournament**](DefaultApi.md#get_most_recent_tournament) | **GET** /most-recent-tournament/{leagueId} | [**get_ongoing_tournanments**](DefaultApi.md#get_ongoing_tournanments) | **GET** /ongoing-tournaments | [**get_players_on_team**](DefaultApi.md#get_players_on_team) | **GET** /players/{teamId} | [**get_team_by_code**](DefaultApi.md#get_team_by_code) | **GET** /teams/{teamId} | [**get_teams**](DefaultApi.md#get_teams) | **GET** /teams | [**get_tournament**](DefaultApi.md#get_tournament) | **GET** /tournament/{tournamentId} | [**get_tournaments_for_league**](DefaultApi.md#get_tournaments_for_league) | **GET** /tournaments/{leagueId} | ## get_league_by_code > crate::models::League get_league_by_code(league_id) ### Parameters Name | Type | Description | Required | Notes ------------- | ------------- | ------------- | ------------- | ------------- **league_id** | **String** | Get a league by code | [required] | ### Return type [**crate::models::League**](League.md) ### Authorization No authorization required ### HTTP request headers - **Content-Type**: Not defined - **Accept**: application/json [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) ## get_leagues > Vec get_leagues() ### Parameters This endpoint does not need any parameter. ### Return type [**Vec**](League.md) ### Authorization No authorization required ### HTTP request headers - **Content-Type**: Not defined - **Accept**: application/json [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) ## get_matches_for_tournament > Vec get_matches_for_tournament(tournament_id) ### Parameters Name | Type | Description | Required | Notes ------------- | ------------- | ------------- | ------------- | ------------- **tournament_id** | **String** | The Tournament to get matches for | [required] | ### Return type [**Vec**](Match.md) ### Authorization No authorization required ### HTTP request headers - **Content-Type**: Not defined - **Accept**: application/json [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) ## get_most_recent_tournament > crate::models::Tournament get_most_recent_tournament(league_id) ### Parameters Name | Type | Description | Required | Notes ------------- | ------------- | ------------- | ------------- | ------------- **league_id** | **String** | The League to get tournament for | [required] | ### Return type [**crate::models::Tournament**](Tournament.md) ### Authorization No authorization required ### HTTP request headers - **Content-Type**: Not defined - **Accept**: application/json [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) ## get_ongoing_tournanments > Vec get_ongoing_tournanments() ### Parameters This endpoint does not need any parameter. ### Return type [**Vec**](Tournament.md) ### Authorization No authorization required ### HTTP request headers - **Content-Type**: Not defined - **Accept**: application/json [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) ## get_players_on_team > Vec get_players_on_team(team_id) ### Parameters Name | Type | Description | Required | Notes ------------- | ------------- | ------------- | ------------- | ------------- **team_id** | **String** | Get players on a team | [required] | ### Return type [**Vec**](Player.md) ### Authorization No authorization required ### HTTP request headers - **Content-Type**: Not defined - **Accept**: application/json [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) ## get_team_by_code > crate::models::Team get_team_by_code(team_id) ### Parameters Name | Type | Description | Required | Notes ------------- | ------------- | ------------- | ------------- | ------------- **team_id** | **String** | Get a team by code | [required] | ### Return type [**crate::models::Team**](Team.md) ### Authorization No authorization required ### HTTP request headers - **Content-Type**: Not defined - **Accept**: application/json [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) ## get_teams > Vec get_teams() ### Parameters This endpoint does not need any parameter. ### Return type [**Vec**](Team.md) ### Authorization No authorization required ### HTTP request headers - **Content-Type**: Not defined - **Accept**: application/json [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) ## get_tournament > crate::models::Tournament get_tournament(tournament_id) ### Parameters Name | Type | Description | Required | Notes ------------- | ------------- | ------------- | ------------- | ------------- **tournament_id** | **String** | The tournamentId to get | [required] | ### Return type [**crate::models::Tournament**](Tournament.md) ### Authorization No authorization required ### HTTP request headers - **Content-Type**: Not defined - **Accept**: application/json [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) ## get_tournaments_for_league > Vec get_tournaments_for_league(league_id) ### Parameters Name | Type | Description | Required | Notes ------------- | ------------- | ------------- | ------------- | ------------- **league_id** | **String** | The League to get tournaments for | [required] | ### Return type [**Vec**](Tournament.md) ### Authorization No authorization required ### HTTP request headers - **Content-Type**: Not defined - **Accept**: application/json [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)