Igor Milakovic
04/03/2023, 9:56 PMapplication/json
?
install(ContentNegotiation) {
json()
}
The API I'm working with wants to deal with application/vnd.api+json
only, and however I try to manipulate the headers, my requests are always sent with both (Accept: application/vnd.api+json; application/json
)
Thanks!Aleksei Tirman [JB]
04/04/2023, 4:07 AMapplication/vnd.api+json
content type:
install(ContentNegotiation) {
register(ContentType.parse("application/vnd.api+json"), KotlinxSerializationConverter(DefaultJson))
}
Igor Milakovic
04/04/2023, 2:47 PM