IAPIClient

interface IAPIClient

API client interface defining the contract for making HTTP requests.

Inheritors

Properties

Link copied to clipboard
abstract val baseUrl: String

Base URL of the API.

Link copied to clipboard

Use case to get the current token, if applicable.

Link copied to clipboard

Use case to log out, if applicable.

Link copied to clipboard

Use case to renew the token, if applicable.

Functions

Link copied to clipboard
abstract suspend fun request(method: HttpMethod, path: String, builder: HttpRequestBuilder.() -> Unit = {}): HttpResponse

Makes an HTTP request to the specified path with the given method and request builder. It also applies token management if the relevant use cases are provided.