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<SecurityToken>
Logs in the user and sends backSecurityToken
if login is successful.
-
Method Details
-
login
@POST("/public/users/login") @FormUrlEncoded retrofit2.Call<SecurityToken> login(@Field("username") String username, @Field("password") String password) Logs in the user and sends backSecurityToken
if login is successful.- Parameters:
username
- user usernamepassword
- user password- Returns:
- credentials if success, else
Optional.absent()
-