When I try to create a delete method:
public interface ImageService {
@DELETE(\"api/v1/attachment\")
Call delete(@Body DeleteMode
Here's an excerpt from the docs, it's a documented feature of the HTTP annotation.
This annotation can also used for sending DELETE with a request body:
interface Service {
@HTTP(method = "DELETE", path = "remove/", hasBody = true)
Call deleteObject(@Body RequestBody object);
}
https://square.github.io/retrofit/2.x/retrofit/retrofit2/http/HTTP.html