getTeams

@GET(value = "teams")
abstract suspend fun getTeams(): ApiResponseTeam

Fetches a list of all teams from the API.

This suspend function should be called within a coroutine context. It fetches all basketball teams' data provided by the API and encapsulates them in an ApiResponseTeam object.

Return

ApiResponseTeam containing the list of teams and additional metadata.

Throws

for any network or conversion errors.