How do I make a post in xml using a serial number and api key and receive back json?
I am using an existing API that requires a POST in XML. That XML will contain an API key and a serial number and the response will be in JSON. I am using Android Studio and Kotlin to write the app. I am also trying to use Retrofit2.
My problem is that I can not find how to use both XML and JSON. I know this code is incomplete but I would be interested in a good source of information on these topics. If you have any good lessons please share.
This is my Interface
package com.example.project...