1. API to get datasource aggregation information (for dataprovider landing) added in properties.
git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-services-library/trunk/ng-openaire-library/src/app@51976 d315682c-612b-4755-9ff5-7f18f6832af3
This commit is contained in:
parent
fb7532d5da
commit
54d857852f
|
@ -37,7 +37,9 @@ export class DataProviderService {
|
|||
let headers = new Headers({'Content-Type': 'application/json', 'accept': 'application/json'});
|
||||
let options = new RequestOptions({headers: headers});
|
||||
|
||||
return this.http.post("http://beta.services.openaire.eu:8080/openaire/ds/search/0/1?requestSortBy=id&order=ASCENDING", JSON.stringify({ "id": original_id }), options)
|
||||
let page: number = 0;
|
||||
let size: number = 1;
|
||||
return this.http.post(properties.datasourcesAPI+page+"/"+size+"?requestSortBy=id&order=ASCENDING", JSON.stringify({ "id": original_id }), options)
|
||||
.map(res => <any> res.json())
|
||||
.map(res => res['datasourceInfo'])
|
||||
.map(res => this.parseDataproviderAggregationStatus(res));
|
||||
|
|
|
@ -84,6 +84,7 @@ export class EnvProperties {
|
|||
|
||||
communityAPI;
|
||||
communitiesAPI;
|
||||
datasourcesAPI;
|
||||
miningBackendURL;
|
||||
|
||||
csvLimit: number;
|
||||
|
|
Loading…
Reference in New Issue