Interface AccountApi
public interface AccountApi
This REST Api allows to register, login and logout a user on the REST server.
- Author:
- jerome
-
Method Summary
Modifier and TypeMethodDescriptionretrofit2.Call<LoginResult> Logs in the user and sends backSecurityTokenif login is successful.
-
Method Details
-
login
@POST("/public/users/login") @FormUrlEncoded retrofit2.Call<LoginResult> login(@Field("username") String username, @Field("password") String password) Logs in the user and sends backSecurityTokenif login is successful.- Parameters:
username- user usernamepassword- user password- Returns:
- credentials if success, else
Optional.absent()
-