android - Retrofit 2 Unable to Use Delete tag with Body -


i have call implemented

 @http(method = "delete", hasbody = true)         @delete("groups/{groupid}/members/remove")         call<groupremoveusermodel> putremoveuser(@path("groupid") int groupid, @body groupremoveusermodel groupremoveusermodel); 

where model code follows :

public final class groupremoveusermodel {      public groupremoveusermodel(int userid){         this.userid = userid;     } } 

however when call method appropriate parameters doesn't work cannot stack trace using okhttp logger debugging

try using this:

@http(method = "delete", path = "groups/{groupid}/members/remove", hasbody = true) call<groupremoveusermodel> putremoveuser(@path("groupid") int groupid, @body groupremoveusermodel groupremoveusermodel); 

Comments

Popular posts from this blog

sql - can we replace full join with union of left and right join? why not? -

javascript - Parallax scrolling and fixed footer code causing width issues -

iOS: Performance of reloading UIImage(name:...) -