get

inline suspend fun <R> ApiFetcher.get(apiPath: String, headers: Map<String, Any>? = FetchDefaults.Headers, redirect: RequestRedirect? = FetchDefaults.Redirect, abortController: AbortController? = null, responseDeserializer: DeserializationStrategy<R> = serializer()): R(source)

Call GET on a target API path with R as the expected return type.

See also tryGet, which will return null if the request fails for any reason.

Note: you should NOT prepend your path with "api/", as that will be added automatically.