Hi. I'm using Retrofit together with JW's kotlinx.serialization converter and I have a problem with one endpoint returning YAML instead of JSON like the rest of the API. Is there a way to configure Retrofit to use a different converter for a specific endpoint?
j
Javier
07/23/2020, 9:14 AM
If you use dependency injection you can change the retrofit used by each service
g
gsala
07/23/2020, 9:49 AM
Yeah, I could just have two Retrofit instances, but since it's only one endpoint, I was hoping I could customize it with an annotation or something