API
Entry point for declaring endpoint sets with Tapik's DSL.
Implement this interface, usually on a singleton object, to group related endpoints under one type and gain access to the endpoint builders that capture each declaration as an HttpEndpoint.
Functions
Link copied to clipboard
open fun <T, P : Parameters, I : Input<*, *>, O : Outputs> endpoint(description: String? = null, details: String? = null, builder: HttpEndpointVerbBuildingContext.() -> HttpEndpointBuildingContext<P, I, O>): ReadOnlyProperty<T, HttpEndpoint<P, I, O>>
Declares an endpoint as a property delegate.
open fun <P : Parameters, I : Input<*, *>, O : Outputs> endpoint(id: String, description: String? = null, details: String? = null, builder: HttpEndpointVerbBuildingContext.() -> HttpEndpointBuildingContext<P, I, O>): HttpEndpoint<P, I, O>
Builds an endpoint immediately using the supplied id.