我的呼叫已实施为
@HTTP(method = "DELETE", hasBody = true)
@DELETE("groups/{groupId}/members/remove")
Call<GroupRemoveUserModel> putRemoveUser(@Path("groupId") int groupId, @Body GroupRemoveUserModel groupRemoveUserModel);
其中型号代码如下:
public final class GroupRemoveUserModel {
public GroupRemoveUserModel(int userId){
this.userId = userId;
}
}
然而,当我使用适当的参数调用该方法时,它还无法使用okhttp logger进行调试,无法获得任何堆栈跟踪
答案 0 :(得分:2)
尝试使用:
@HTTP(method = "DELETE", path = "groups/{groupId}/members/remove", hasBody = true)
Call<GroupRemoveUserModel> putRemoveUser(@Path("groupId") int groupId, @Body GroupRemoveUserModel groupRemoveUserModel);