You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@streampipes.apache.org by eb...@apache.org on 2021/08/04 13:06:02 UTC
[incubator-streampipes] 02/05: [STREAMPIPES-319] Add base url and
datalake url definitions to DatalakeRestService class
This is an automated email from the ASF dual-hosted git repository.
ebi pushed a commit to branch STREAMPIPES-319
in repository https://gitbox.apache.org/repos/asf/incubator-streampipes.git
commit 531ab7f13728b3102be5fef4c6c8edd226b0fbd4
Author: Daniel Ebi <eb...@fzi.de>
AuthorDate: Thu Jul 29 11:28:08 2021 +0200
[STREAMPIPES-319] Add base url and datalake url definitions to DatalakeRestService class
---
ui/src/app/platform-services/apis/datalake-rest.service.ts | 12 ++++++++++++
1 file changed, 12 insertions(+)
diff --git a/ui/src/app/platform-services/apis/datalake-rest.service.ts b/ui/src/app/platform-services/apis/datalake-rest.service.ts
index dca2c40..a90fdf4 100644
--- a/ui/src/app/platform-services/apis/datalake-rest.service.ts
+++ b/ui/src/app/platform-services/apis/datalake-rest.service.ts
@@ -17,8 +17,20 @@
*/
import { Injectable } from '@angular/core';
+import { HttpClient } from '@angular/common/http';
+import { AuthStatusService } from '../../services/auth-status.service';
@Injectable()
export class DatalakeRestService {
+ constructor(private http: HttpClient,
+ private authStatusService: AuthStatusService) {
+ }
+ private get baseUrl() {
+ return '/streampipes-backend';
+ }
+
+ private get dataLakeUrl() {
+ return this.baseUrl + '/api/v4/users/' + this.authStatusService.email + '/datalake';
+ }
}