Closed joseluisgs closed 2 years ago
OK, I solved with
private val ktorfit by lazy {
// Podemos meterle flow directamente!!!
// ktorfit.responseConverter(FlowResponseConverter())
Ktorfit.Builder()
.httpClient {
install(ContentNegotiation) {
json(Json { isLenient = true; ignoreUnknownKeys = true })
}
install(DefaultRequest) {
header(HttpHeaders.ContentType, ContentType.Application.Json)
}
}
.baseUrl(API_URL)
.build()
}
Hi I have the following Client
I have the following interface
when I make val res = client.create(entity) I have the following exception
I don't Know why, Because gets work fine. My user model is
Could you help me? I try to solve using @Headers("Content-Type: application/json"), but I have installed the context serializer pluging,
Thank you