Clarification of documentation for "Competitions" and "SoccerSeasons" methods.
This commit makes clear that the list methods for the Competition/SoccerSeason resource only return data for the current season or for any targeted season. Fetching the complete list is not possible.develop
parent
0c3d78739e
commit
6eb67ba541
|
@ -21,7 +21,7 @@ func (r CompetitionsRequest) Do() (s CompetitionList, err error) {
|
|||
return
|
||||
}
|
||||
|
||||
// Competitions prepares a request to fetch the complete list of soccer seasons.
|
||||
// Competitions prepares a request to fetch the list of competitions for the current season or for any specified season (via the "Season" submethod).
|
||||
func (c *Client) Competitions() CompetitionsRequest {
|
||||
return CompetitionsRequest{c.req("competitions")}
|
||||
}
|
||||
|
|
|
@ -29,7 +29,7 @@ func (r SoccerSeasonsRequest) Do() (s SoccerSeasonList, err error) {
|
|||
|
||||
// DEPRECATED.
|
||||
//
|
||||
// SoccerSeasons prepares a request to fetch the complete list of soccer seasons.
|
||||
// SoccerSeasons prepares a request to fetch the list of soccer seasons for the current season or for any specified season (via the "Season" submethod).
|
||||
func (c *Client) SoccerSeasons() SoccerSeasonsRequest {
|
||||
return SoccerSeasonsRequest{c.req("soccerseasons")}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue