Revision 51053
Added by Sofia Baltzi about 6 years ago
help-content.service.ts | ||
---|---|---|
385 | 385 |
return Observable.throw(error.json().error || 'Server error'); |
386 | 386 |
} |
387 | 387 |
|
388 |
getDataProviders() { |
|
389 |
return this.http.get('https://beta.services.openaire.eu/search/v2/api/datasources?format=json').map(res => <any> res.json()).map(res => res.results).do(res => {console.log(res)}).catch(this.handleError); |
|
390 |
} |
|
391 |
|
|
388 | 392 |
getStatistics(community_pid: string) { |
389 | 393 |
return this.http.get(this._helpContentUrl + 'statistics/'+community_pid) |
390 | 394 |
.map(res => <CommunityStatistics> res.json()) |
Also available in: Unified diff
Undo -> Remove getDataProviders