ProducerEndpointImpl

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

Creates a new producer endpoint, taking the result 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

TResult

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


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

Creates a new producer endpoint, taking the result 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

TResult

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