fixed getLanguages method
This commit is contained in:
parent
6839100d26
commit
ea6963ef65
Binary file not shown.
|
|
@ -48,6 +48,9 @@ public class ClientFactory {
|
|||
return createService(url, AuthenticationService.class);
|
||||
}
|
||||
|
||||
public static AuthenticationService createAuthenticationService(String url, String user, String password) {
|
||||
return createService(url, AuthenticationService.class, user, password);
|
||||
}
|
||||
|
||||
//endregion
|
||||
|
||||
|
|
|
|||
|
|
@ -3,6 +3,7 @@ package eu.csc.ODPAppVehOwnServer.client.service;
|
|||
import eu.csc.ODPAppVehOwnServer.models.JWTTokenResponse;
|
||||
import eu.csc.ODPAppVehOwnServer.models.UserRegistrationDto;
|
||||
import eu.csc.ODPAppVehOwnServer.models.auth.AuthenticationRequest;
|
||||
import eu.csc.ODPAppVehOwnServer.models.data.CustomerProfileDto;
|
||||
import retrofit2.Call;
|
||||
import retrofit2.http.Body;
|
||||
import retrofit2.http.GET;
|
||||
|
|
@ -19,4 +20,6 @@ public interface AuthenticationService extends IApiService {
|
|||
@POST("/api/pwdReset")
|
||||
Call<AuthenticationRequest> resetPassword(@Body AuthenticationRequest body);
|
||||
|
||||
@GET("/api/customer/profile")
|
||||
Call<CustomerProfileDto> fetchCustomerProfile();
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue