[Library | Trunk]: Stakeholder service: Add get alias method
git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-services-library/trunk/ng-openaire-library/src/app@60098 d315682c-612b-4755-9ff5-7f18f6832af3
This commit is contained in:
parent
276a6c7fca
commit
ccb6315f9c
|
@ -53,6 +53,12 @@ export class StakeholderService {
|
|||
return this.stakeholderSubject.getValue();
|
||||
}
|
||||
|
||||
getAlias(url: string): Observable<string[]> {
|
||||
return this.http.get<Stakeholder[]>(url + '/stakeholder/alias', CustomOptions.registryOptions()).pipe(map(stakeholders => {
|
||||
return this.formalize(stakeholders);
|
||||
}));
|
||||
}
|
||||
|
||||
getStakeholders(url: string, type: string = null): Observable<(Stakeholder & StakeholderInfo)[]> {
|
||||
return this.http.get<Stakeholder[]>(url + '/stakeholder' + ((type)?('?type=' + type):''), CustomOptions.registryOptions()).pipe(map(stakeholders => {
|
||||
return this.formalize(stakeholders);
|
||||
|
|
Loading…
Reference in New Issue