This is an automated email from the ASF dual-hosted git repository.

ankovalyshyn pushed a commit to branch feature/projects
in repository https://gitbox.apache.org/repos/asf/incubator-dlab.git

commit 536904efd98e28de9cbb46a2b62ae77d90a531b0
Author: Andriana Kovalyshyn <[email protected]>
AuthorDate: Thu May 30 13:15:28 2019 +0300

    [DLAB-631]: added Delete Endpoint
---
 .../src/app/core/services/applicationServiceFacade.service.ts    | 6 ++++++
 .../resources/webapp/src/app/core/services/endpoint.service.ts   | 9 +++++++++
 2 files changed, 15 insertions(+)

diff --git 
a/services/self-service/src/main/resources/webapp/src/app/core/services/applicationServiceFacade.service.ts
 
b/services/self-service/src/main/resources/webapp/src/app/core/services/applicationServiceFacade.service.ts
index 9039f20..4f7330d 100644
--- 
a/services/self-service/src/main/resources/webapp/src/app/core/services/applicationServiceFacade.service.ts
+++ 
b/services/self-service/src/main/resources/webapp/src/app/core/services/applicationServiceFacade.service.ts
@@ -551,6 +551,12 @@ export class ApplicationServiceFacade {
       data);
   }
 
+  public buildDeleteEndpoint(param): Observable<any> {
+    return this.buildRequest(RequestMethod.Delete,
+      this.requestRegistry.Item(ApplicationServiceFacade.ENDPOINT) + param,
+      null);
+  }
+
   private setupRegistry(): void {
     this.requestRegistry = new Dictionary<string>();
 
diff --git 
a/services/self-service/src/main/resources/webapp/src/app/core/services/endpoint.service.ts
 
b/services/self-service/src/main/resources/webapp/src/app/core/services/endpoint.service.ts
index 970956e..98801b4 100644
--- 
a/services/self-service/src/main/resources/webapp/src/app/core/services/endpoint.service.ts
+++ 
b/services/self-service/src/main/resources/webapp/src/app/core/services/endpoint.service.ts
@@ -46,5 +46,14 @@ export class EndpointService {
         map(response => response),
         catchError(ErrorUtils.handleServiceError));
   }
+
+  public deleteEndpoint(data): Observable<any> {
+    const url = `/${data}`;
+    return this.applicationServiceFacade
+      .buildDeleteEndpoint(url)
+      .pipe(
+        map(response => response),
+        catchError(ErrorUtils.handleServiceError));
+  }
 }
 


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to