Package-level declarations

Generic endpoints allow you to model collections and elements.

Types

Link copied to clipboard
abstract class AbstractCachingEndpoint(referrer: Endpoint, relativeUri: URI) : AbstractEndpoint, CachingEndpoint

Base class for building endpoints that use ETags and Last-Modified timestamps for caching and to avoid lost updates.

Link copied to clipboard

Endpoint for a collection of TEntitys addressable as ElementEndpoints.

Link copied to clipboard
Link copied to clipboard

Endpoint for an individual resource.

Link copied to clipboard
open class ElementEndpointImpl<TEntity>(referrer: Endpoint, relativeUri: URI, entityType: Type) : AbstractCachingEndpoint, ElementEndpoint<TEntity>

Endpoint for an individual resource.

Link copied to clipboard
Link copied to clipboard
open class GenericCollectionEndpointImpl<TEntity, TElementEndpoint : ElementEndpoint<TEntity>>(referrer: Endpoint, relativeUri: URI, entityType: Type, elementEndpointFactory: (referrer: Endpoint, relativeUri: URI) -> TElementEndpoint) : AbstractCachingEndpoint, GenericCollectionEndpoint<TEntity, TElementEndpoint>

Endpoint for a collection of TEntitys addressable as TElementEndpoints.

Link copied to clipboard

Endpoint that addresses child TElementEndpoints by ID.

Link copied to clipboard
open class IndexerEndpointImpl<TElementEndpoint : Endpoint>(referrer: Endpoint, relativeUri: URI, elementEndpointFactory: (referrer: Endpoint, relativeUri: URI) -> TElementEndpoint) : AbstractEndpoint, IndexerEndpoint<TElementEndpoint>

Endpoint that addresses child TElementEndpoints by ID.

Functions

Link copied to clipboard
inline fun <reified TEntity> CollectionEndpointImpl(referrer: Endpoint, relativeUri: URI): CollectionEndpointImpl<TEntity>
inline fun <reified TEntity> CollectionEndpointImpl(referrer: Endpoint, relativeUri: String): CollectionEndpointImpl<TEntity>

Creates a new element collection endpoint, taking the entity type from the reified type argument.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
inline fun <reified TEntity> ElementEndpointImpl(referrer: Endpoint, relativeUri: URI): ElementEndpointImpl<TEntity>
inline fun <reified TEntity> ElementEndpointImpl(referrer: Endpoint, relativeUri: String): ElementEndpointImpl<TEntity>

Creates a new element endpoint, taking the entity type from the reified type argument.

Link copied to clipboard
inline fun <reified TEntity, TElementEndpoint : ElementEndpoint<TEntity>> GenericCollectionEndpointImpl(referrer: Endpoint, relativeUri: URI, noinline elementEndpointFactory: (referrer: Endpoint, relativeUri: URI) -> TElementEndpoint): GenericCollectionEndpointImpl<TEntity, TElementEndpoint>
inline fun <reified TEntity, TElementEndpoint : ElementEndpoint<TEntity>> GenericCollectionEndpointImpl(referrer: Endpoint, relativeUri: String, noinline elementEndpointFactory: (referrer: Endpoint, relativeUri: URI) -> TElementEndpoint): GenericCollectionEndpointImpl<TEntity, TElementEndpoint>

Creates a new element collection endpoint, taking the entity type from the reified type argument.

Link copied to clipboard

Modifies an existing element in the collection by merging changes on the server-side.

Link copied to clipboard

Sets/replaces an existing element in the collection.