I am using Retrofit and I want to make a request using the tge delete method. I want to use a specific body, but the delete method does not support this. I created my own class for the delete method as follows:
@Target(METHOD)
@Retention(RUNTIME)
@RestMethod( hasBody = true,value = "DELETE")
public @interface CustomDelete {
String value();
}
But when I use it, I have this error:
10-31 16:24:09.459: I/System.out(21090): retrofit.RetrofitError: DELETE does not support writing
source
share