Package-level declarations

Types

Link copied to clipboard
data class CollectionProxy<R : Resource>(val data: List<R>, val meta: Map<String, <Error class: unknown class>>, val raw: JsonApiCollectionResponse)

A wrapper for a collection of resources.

Link copied to clipboard
data class JsonApiCollectionResponse(val data: List<JsonApiResource>, val meta: Map<String, <Error class: unknown class>> = emptyMap(), val links: JsonApiLinks? = null, val included: List<JsonApiResource> = emptyList(), val jsonapi: JsonApiObject? = null) : JsonApiResponse

A collection JSON:API response.

Link copied to clipboard
data class JsonApiError(val id: String? = null, val links: JsonApiError.Links? = null, val status: String? = null, val code: String? = null, val title: String? = null, val detail: String? = null, val source: JsonApiError.Source? = null, val meta: Map<String, <Error class: unknown class>>? = null)

An error returned by the JSON:API server.

Link copied to clipboard
data class JsonApiErrorResponse(val errors: List<JsonApiError>, val meta: Map<String, <Error class: unknown class>> = emptyMap(), val links: JsonApiLinks? = null, val jsonapi: JsonApiObject? = null)

An error returned by the JSON:API server.

Link copied to clipboard
class JsonApiException(val statusCode: Int, val body: String)

An exception thrown by the JSON:API server.

Link copied to clipboard
sealed interface JsonApiLink

A JSON:API link.

Link copied to clipboard
sealed interface JsonApiLinkage

JSON:API relationship linkage.

Link copied to clipboard
data class JsonApiLinks(val self: JsonApiLink? = null, val related: JsonApiLink? = null, val first: JsonApiLink? = null, val last: JsonApiLink? = null, val prev: JsonApiLink? = null, val next: JsonApiLink? = null, val describedBy: JsonApiLink? = null)

A JSON:API links object.

Link copied to clipboard
data class JsonApiObject(val version: String? = null, val ext: List<String> = emptyList(), val profile: List<String> = emptyList(), val meta: Map<String, <Error class: unknown class>> = emptyMap())

Information about the server's JSON:API implementation.

Link copied to clipboard
data class JsonApiRelationship(val data: JsonApiLinkage = JsonApiLinkage.Missing, val links: JsonApiLinks? = null, val meta: Map<String, <Error class: unknown class>> = emptyMap())

A JSON:API relationship.

Link copied to clipboard
data class JsonApiRelationshipData(val id: String, val type: String)

A JSON:API relationship linkage object.

Link copied to clipboard
Link copied to clipboard
data class JsonApiResource(val id: String, val type: String, val attributes: Map<String, <Error class: unknown class>> = emptyMap(), val relationships: Map<String, JsonApiRelationship> = emptyMap(), val links: JsonApiLinks? = null, val meta: Map<String, <Error class: unknown class>> = emptyMap())

A JSON:API resource.

Link copied to clipboard
sealed interface JsonApiResponse

Base fields for a JSON:API response.

Link copied to clipboard
data class JsonApiSingleResponse(val data: JsonApiResource? = null, val meta: Map<String, <Error class: unknown class>> = emptyMap(), val links: JsonApiLinks? = null, val included: List<JsonApiResource> = emptyList(), val jsonapi: JsonApiObject? = null) : JsonApiResponse

A single JSON:API response.

Link copied to clipboard

The strategy to use for pagination.

Link copied to clipboard
data class RecordProxy<R>(val data: R, val meta: Map<String, <Error class: unknown class>>, val raw: JsonApiSingleResponse, val error: JsonApiException? = null)

A wrapper for a single resource.

Link copied to clipboard
interface Resource

A JSON:API resource.

Link copied to clipboard

A JSON:API resource.

Link copied to clipboard
abstract class ResourceSerializer<R : Resource>
Link copied to clipboard
class Scope<R : Resource>(resourceClass: KClass<R>, options: Scope<R>.() -> Unit = {})

A scope for querying the server.

Link copied to clipboard
data class ScopePagination(var number: Number? = null, var size: Number? = null, var limit: Number? = null, var offset: Number? = null)

The pagination options.

Link copied to clipboard

The direction of the sorting.