Package-level declarations

Types

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

A wrapper for a collection of resources.

Link copied to clipboard

A collection JSON:API response

Link copied to clipboard
@Serializable
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: JsonObject? = null)

An error returned by the JSON:API server.

Link copied to clipboard
@Serializable
data class JsonApiErrorResponse(val errors: List<JsonApiError>)

An error returned by the JSON:API server.

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

An exception thrown by the JSON:API server.

Link copied to clipboard
class JsonApiRelationship(response: Map<String, Any>) : Map<String, Any?>

A JSON:API relationship

Link copied to clipboard

A JSON:API relationship data

Link copied to clipboard

A JSON:API relationship links

Link copied to clipboard
class JsonApiResource(response: Map<String, Any>) : Map<String, Any?>

A JSON:API resource

Link copied to clipboard
abstract class JsonApiResponse(response: Map<String, Any>) : Map<String, Any?>

Base fields for a JSON:API response

Link copied to clipboard

A single JSON:API response

Link copied to clipboard

The strategy to use for pagination.

Link copied to clipboard
data class RecordProxy<R : Resource>(val data: R, val meta: Map<String, Any>, val raw: JsonApiSingleResponse)

A wrapper for a single resource.

Link copied to clipboard
@Serializable(with = ResourceSerializer::class)
abstract class Resource

A JSON:API resource.

Link copied to clipboard

A JSON:API resource.

Link copied to clipboard
object ResourceSerializer : KSerializer<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.