RestQuery

fun <T, I, Q> RestQuery(resource: Resource<T, I>, initialId: I, contentType: String, remote: Request, buildQuery: suspend Request.(Q) -> Response)

Parameters

buildQuery

function to build a Request for a given object defining the query

contentType

to be used by the REST-API

initialId

id to compare a given resource for differentiation of adding or updating

remote

base Request to be used by all subsequent requests. Use it to configure authentication, etc.

resource

definition of the Resource