I m trying to make a request in which I want to include a Header , a form-urlencoded field and a json body. My Retrofit interface is as follows
@FormUrlEnc
Send Authentication header with json Body to API sample code in Kotlin :
@POST("/api/user/sendlist/") fun callSendJsonListPost( @Header("Authheader") header: String, @Body list: StringBuilder ) : Observable