// LoginFragment.java
MultiValueMap<String, String> credentials = new LinkedMultiValueMap<String, String>();
credentials.add("email", email);
credentials.add("password", password);
// UserRest.java
@Post("user/login")
public APIKey login(MultiValueMap credentials);
I'm on mobile, so I'll make it short. the following should work if you correct the syntax. by the way there's also authentification via HTTP headers - just for completeness, I did not try that out yet.
Jan
public class MyLogin{
String email;
String pwHash;
}
@Rest
public interface API{
// put everything in body
@post
void doLogin(MyLogin ml);
}
--
You received this message because you are subscribed to the Google Groups "androidannotations" group.
To unsubscribe from this group and stop receiving emails from it, send an email to androidannotati...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.