PathVariable

data class PathVariable<P : Any>(val name: String, val codec: StringCodec<P>) : Parameter<P> (source)

Required path parameter definition.

Constructors

Link copied to clipboard
constructor(name: String, codec: StringCodec<P>)

Properties

Link copied to clipboard
open override val codec: StringCodec<P>

codec used to encode and decode path values.

Link copied to clipboard
open override val name: String

canonical parameter name embedded in the URI template.

Link copied to clipboard
open override val position: ParameterPosition

Location of the parameter within the HTTP request.

Link copied to clipboard
open override val required: Boolean = true

Indicates whether the parameter must be supplied by the caller.