Package dev. fritz2. repository. rest
Types
Functions
Link copied to clipboard
fun <T, I> restEntityOf(resource: Resource<T, I>, remote: Request, initialId: I, contentType: String = "application/json; charset=utf-8"): EntityRepository<T, I>
Content copied to clipboard
provides crud-functions for REST-API to a defined Resource
fun <T, I> restEntityOf(resource: Resource<T, I>, url: String, initialId: I, contentType: String = "application/json; charset=utf-8"): EntityRepository<T, I>
Content copied to clipboard
provides CRUD-functions for REST-API to a defined Resource
Link copied to clipboard
fun <T, I, Q> restQueryOf(resource: Resource<T, I>, remote: Request, initialId: I, contentType: String = "application/json; charset=utf-8", buildQuery: suspend Request.(Q) -> Response = { accept(contentType).get() }): QueryRepository<T, I, Q>
Content copied to clipboard
fun <T, I, Q> restQueryOf(resource: Resource<T, I>, url: String, initialId: I, contentType: String = "application/json; charset=utf-8", buildQuery: suspend Request.(Q) -> Response = { accept(contentType).get() }): QueryRepository<T, I, Q>
Content copied to clipboard
provides services to deal with queries for REST-API to a defined Resource