Hi. I'm using Retrofit together with <JW's kotlinx...
# squarelibraries
g
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
If you use dependency injection you can change the retrofit used by each service
g
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
g
Exactly what I wanted. Thanks Jake 👍