fixed getLanguages method

This commit is contained in:
yannick.blanken@csc-online.eu 2022-06-30 16:53:31 +02:00
parent 6839100d26
commit ea6963ef65
3 changed files with 6 additions and 0 deletions

View File

@ -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

View File

@ -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();
}