Joris
11/29/2019, 10:38 AMapplication/vnd.api+json
that in the end is also Json ?
My current settings for ContentNegotiation
install(ContentNegotiation) {
jackson {
enable(SerializationFeature.INDENT_OUTPUT)
disable(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES)
registerKotlinModule()
}
}
tjohnn
11/29/2019, 12:56 PMval type = ContentType("application", "vnd.api+json")
install(ContentNegotiation) {
register(type, JacksonConnverter())
jackson {
enable(SerializationFeature.INDENT_OUTPUT)
disable(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES)
registerKotlinModule()
}
}
Joris
11/29/2019, 1:50 PM