Commit c745e89d authored by Diego Molteni's avatar Diego Molteni
Browse files

added missed base url

parent f9cc118b
......@@ -47,7 +47,8 @@ export class DESCompliance {
'Content-Type': 'application/json'
},
json: { names: [ltag] },
url: Config.DES_SERVICE_HOST_COMPLIANCE,
PORT: Config.DES_REDIS_INSTANCE_PORT,
url: Config.DES_SERVICE_HOST_COMPLIANCE + dataecosystem.getComplianceBaseUrlPath() + '/legaltags:validate'
};
// tslint:disable-next-line: no-string-literal
......
......@@ -36,7 +36,7 @@ export class DESEntitlement {
'Authorization': userToken.startsWith('Bearer') ? userToken : 'Bearer ' + userToken,
'Content-Type': 'application/json',
},
url: Config.DES_SERVICE_HOST_ENTITLEMENT,
url: Config.DES_SERVICE_HOST_ENTITLEMENT + dataecosystem.getEntitlementBaseUrlPath() + '/groups/' + group + '/members',
};
if (prevCursor !== undefined) { options.url += ('?cursor=' + prevCursor); }
......@@ -75,7 +75,7 @@ export class DESEntitlement {
'Authorization': userToken.startsWith('Bearer') ? userToken : 'Bearer ' + userToken,
'Content-Type': 'application/json'
},
url: Config.DES_SERVICE_HOST_ENTITLEMENT,
url: Config.DES_SERVICE_HOST_ENTITLEMENT + dataecosystem.getEntitlementBaseUrlPath() + '/groups',
};
options.headers[dataecosystem.getDataPartitionIDRestHeaderName()] = dataPartitionID;
......@@ -115,7 +115,8 @@ export class DESEntitlement {
'Content-Type': 'application/json'
},
json: undefined,
url: Config.DES_SERVICE_HOST_ENTITLEMENT,
url: Config.DES_SERVICE_HOST_ENTITLEMENT
+ dataecosystem.getEntitlementBaseUrlPath() + '/groups/' + groupName + '/members',
};
options.json = dataecosystem.getUserAddBodyRequest(userEmail, role);
......@@ -151,7 +152,8 @@ export class DESEntitlement {
'Authorization': userToken.startsWith('Bearer') ? userToken : 'Bearer ' + userToken,
'Content-Type': 'application/json'
},
url: Config.DES_SERVICE_HOST_ENTITLEMENT,
url: Config.DES_SERVICE_HOST_ENTITLEMENT
+ dataecosystem.getEntitlementBaseUrlPath() + '/groups/' + groupName + '/members/' + userEmail,
};
options.headers[dataecosystem.getDataPartitionIDRestHeaderName()] = dataPartitionID;
......@@ -190,7 +192,7 @@ export class DESEntitlement {
description: groupDesc,
name: groupName,
},
url: Config.DES_SERVICE_HOST_ENTITLEMENT,
url: Config.DES_SERVICE_HOST_ENTITLEMENT + dataecosystem.getEntitlementBaseUrlPath() + '/groups',
};
options.headers[dataecosystem.getDataPartitionIDRestHeaderName()] = dataPartitionID;
......
......@@ -35,7 +35,7 @@ export class DESStorage {
'Content-Type': 'application/json'
},
json: seismicMeta,
url: Config.DES_SERVICE_HOST_STORAGE,
url: Config.DES_SERVICE_HOST_STORAGE + dataecosystem.getStorageBaseUrlPath() + '/records',
};
// tslint:disable-next-line: no-string-literal
......@@ -70,7 +70,7 @@ export class DESStorage {
'AppKey': appkey || Config.DES_SERVICE_APPKEY,
'Content-Type': 'application/json',
},
url: Config.DES_SERVICE_HOST_STORAGE,
url: Config.DES_SERVICE_HOST_STORAGE + dataecosystem.getStorageBaseUrlPath() + '/records/' + seismicUid + ':delete',
};
// tslint:disable-next-line: no-string-literal
......@@ -104,7 +104,7 @@ export class DESStorage {
'Accept': 'application/json',
'AppKey': appkey || Config.DES_SERVICE_APPKEY,
},
url: Config.DES_SERVICE_HOST_STORAGE,
url: Config.DES_SERVICE_HOST_STORAGE + dataecosystem.getStorageBaseUrlPath() + '/records/' + seismicUid,
};
// tslint:disable-next-line: no-string-literal
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment