Hi there, Does somebody knows how i can implement a DELETE submmited form Request on Kotlin", I already ahce the GET Request working but im having problems implementing a DELETE one,
Welcome to the community, @CarlosGabriel! Maybe this post discussed previously should help you solve your issue:
Hi! thanks for the answer. I found what i was doing wrong, for DELETE request in kotlin, was necesary to set Headers in a diferente way than in a GET request:
Headers(“Authorization: token …”)
fun deletefunction(@Path(“id”) id :String): Call <Unit(>)
Headers(“Name: Authorization”,“Value: token …” )
fun getfunction(): Call<ArrayList?>?
@CarlosGabriel, thank you for sharing this with the entire community!