TeamApiService

interface TeamApiService

Defines the network operations related to basketball teams.

This interface declares the API endpoints for fetching team data using Retrofit. The operations are defined as suspend functions to ensure they're called within a coroutine, providing built-in support for asynchronous operations.

Functions

Link copied to clipboard
@GET(value = "teams")
abstract suspend fun getTeams(): ApiResponseTeam

Fetches a list of all teams from the API.

Link copied to clipboard

Converts the network response for teams into a Flow.