jsonBody

inline fun <T : Any> jsonBody(name: String, mapper: ObjectMapper? = null): JsonBody<T>(source)

Builds a JSON Body definition using the provided Jackson codec.

Return

a JsonBody registered with a JacksonCodec for the requested type.

Parameters

T

domain type represented by the body.

name

human readable identifier used in error messages.

mapper

optional mapper override; defaults to defaultObjectMapper.

See also