gotoOla
01/02/2019, 7:09 AMinstall(ContentNegotiation) {
jackson {
}
}
but then I get unsupported media type when posting with text/plain. Would like to support both of these formats as default
…my google wizardry is starting to drain 😞tKw
01/02/2019, 11:29 AMorangy
tKw
01/02/2019, 11:40 AMorangy
ContentNegotiation
only kicks in when you receive a custom class from the call, like call.receive<Person>()
, so if you wish to receive a data type from the call when content-type is set to text/plain
and treat is a JSON, you need to register JSON converter (see how jackson
function is implemented) for that content type.gotoOla
01/02/2019, 1:39 PM