Builder

sealed interface Builder(source)

The super-type for the endpoint declaration syntax.

See AnyEndpoint to learn more about the syntax.

This interface uses the same trick as AnyEndpoint to avoid source-incompatible breaking changes. See its documentation for details.

Functions

Link copied to clipboard

Declares query parameters that the client will need to provide to the server.

Link copied to clipboard
abstract fun <T : Any> request(kClass: KClass<T>): AnyEndpoint.Builder

Declares the request body type.

Link copied to clipboard
abstract fun <T : Any> response(kClass: KClass<T>): AnyEndpoint.Builder

Declares the response body type.