How to send a HTTP-delete with a body in retrofit?

后端 未结 6 1246
暖寄归人
暖寄归人 2020-12-14 01:44

When I try to create a delete method:

public interface ImageService {
    @DELETE(\"api/v1/attachment\")
    Call delete(@Body DeleteMode         


        
6条回答
  •  生来不讨喜
    2020-12-14 01:51

    Here is my version

    @HTTP(method = "DELETE", path = "{login}", hasBody = true)
    Call getData(@Path("login") String postfix, @Body Map options);
    

提交回复
热议问题