我在我的项目中使用Android Annotation并尝试POST通过以下代码发送请求,但是以下代码有问题,因为我没有得到预期的响应:
@Rest(rootUrl = "http://xyz.com", converters = {GsonHttpMessageConverter.class})
public interface A {
@Post("/authenticate/email/")
public Object attemptLogin(Map data);
}
data对在哪里(key, value)。有什么我遗漏的可能我必须设置request-header还是data不应该是 JSON?