path

inline fun <P : Any> path(name: String, codec: StringCodec<P>): PathVariable<P>(source)

Creates a path parameter with the given name and codec.

Return

path variable definition that is required by default.

Parameters

name

parameter name as it appears inside the URI template.

codec

codec used to encode and decode parameter values.

See also


Shorthand accessor to factory helpers for path parameters.