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.
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.
Add request metadata to this Route. A route only supports a single possible request.
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.