aw-1686 expand user profile; added put operation
FarmMaps.Develop/FarmMapsLib/pipeline/head This commit looks good Details

2022.01
Francisco Salas 2020-11-18 15:07:39 +01:00
parent 946cbc6533
commit 6252cc120b
2 changed files with 15 additions and 1 deletions

View File

@ -3,4 +3,14 @@ export interface IUser {
name?: string;
email?: string;
claims: any;
}
firstName?: string;
lastName?: string;
address?: string;
postalCode?: string;
city?: string;
country?: string;
phone?: string;
mobile?: string;
organisation?: string;
cocNumber?: string;
}

View File

@ -18,4 +18,8 @@ export class UserService {
getCurrentUser(): Observable<IUser> {
return this.httpClient.get<IUser>(`${this.ApiEndpoint()}/api/v1/currentuser`);
}
updateCurrentUser(user: IUser): Observable<IUser> {
return this.httpClient.put<IUser>(`${this.ApiEndpoint()}/api/v1/currentuser`, user);
}
}