CollectionEndpointImpl

inline fun <reified TEntity> CollectionEndpointImpl(referrer: Endpoint, relativeUri: URI): CollectionEndpointImpl<TEntity>

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

Parameters

referrer

The endpoint used to navigate to this one.

relativeUri

The URI of this endpoint relative to the referrer's.

Type Parameters

TEntity

The type of individual elements in the collection. Can be a generic type such as Versioned<Contact>.


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.

Parameters

referrer

The endpoint used to navigate to this one.

relativeUri

The URI of this endpoint relative to the referrer's. Add a ./ prefix here to imply a trailing slash on referrer's URI.

Type Parameters

TEntity

The type of individual elements in the collection. Can be a generic type such as Versioned<Contact>.