receiving

fun <T> receiving(body: Pair<BiDiBodyLens<T>, T>, definitionId: String? = null, schemaPrefix: String? = null)

Add an example request (using a Lens and a value) to this Route. It is also possible to pass in the definitionId for this request body which will override the naturally generated one.


@JvmName(name = "receivingNegotiated")
fun <T> receiving(negotiated: Pair<AutoContentNegotiator<T>, T>, definitionId: String? = null, schemaPrefix: String? = null)

Add negotiated example requests to this route. It is also possible to pass in the definitionId for this request body which will override the naturally generated one.


fun receiving(requestMeta: HttpMessageMeta<Request>)

Add request metadata to this Route. A route only supports a single possible request.


fun <T> receiving(bodyLens: BiDiBodyLens<T>)

Set the input body type for this request WITHOUT an example. Hence the content-type will be registered but no example schema will be generated.