FunctionEndpointImpl

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

Creates a new function endpoint, taking the entity and result types from the reified type arguments.

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 entity the endpoint takes as input. Can be a generic type such as List<Contact>.

TResult

The type of entity the endpoint returns as output. Can be a generic type such as List<Contact>.


inline fun <reified TEntity, reified TResult> FunctionEndpointImpl(referrer: Endpoint, relativeUri: String): FunctionEndpointImpl<TEntity, TResult>

Creates a new function endpoint, taking the entity and result types from the reified type arguments.

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 entity the endpoint takes as input. Can be a generic type such as List<Contact>.

TResult

The type of entity the endpoint returns as output. Can be a generic type such as List<Contact>.