season → seasonCode (API uses seasonCode)teamId → playerCode or clubCode (API uses codes, not IDs)gameCode and gameNumber parametersconvertSeasonToCode() function to convert "2024-25" format to "E2024" formatBased on the Swagger spec schemas:
PlayerStats: Now matches SeasonPlayerModel
score (points), assistances (assists), totalRebounds, valuation (PIR)clubCode, clubName instead of team objectblocksFavour instead of blocksGame: Now matches GameResultModel
homeTeam, awayTeam as strings (not objects)homeCode, awayCode for team codesplayed boolean instead of status stringTeam: Now matches ClubModel
code, clubName, clubAlias instead of id, name, shortNameThe API returns different structures:
/teams → { clubs: [...] }/results → { gameResults: [...] }/standings → { group: [{ team: [...] }] } (nested structure)/schedules → { item: [...] }/players → Single object (not array) - handled by extracting from teamsSince /players endpoint returns a single player (requires playerCode), we now:
players array/teams?seasonCode=E2024 - should return clubs array/results?seasonCode=E2024 - should return gameResults array/standings?seasonCode=E2024 - should return group array/schedules?seasonCode=E2024 - should return item array/players?seasonCode=E2024&playerCode=XXX - should return single playerAPI Authentication: The Swagger spec shows OAuth2 required, but the API might work without it. If you get 401/403 errors, authentication may be needed.
XML Responses: The API may return XML by default. The code detects XML and shows an error. If JSON is available, we may need to add Accept: application/json header more explicitly.
Players Endpoint: The /players endpoint requires a playerCode to get a specific player. We work around this by extracting players from teams.
Season Format: The UI uses "2024-25" format but converts to "E2024" for the API. Make sure this conversion works for all seasons.