I am using Android Annotation in my project and trying to send POST
request through following code, however there is something wrong in following code as I am not getting response as expected:
@Rest(rootUrl = "http://xyz.com", converters = {GsonHttpMessageConverter.class})
public interface A {
@Post("/authenticate/email/")
public Object attemptLogin(Map data);
}
Where data
is (key, value)
pair. Is there anything I am missing perhaps Do I have to set request-header
or data
should not be JSON?