From d7d2b0657b18a96bc1889f8404d7b212f28922e6 Mon Sep 17 00:00:00 2001 From: swapnalipode Date: Mon, 2 Mar 2020 12:57:20 +0530 Subject: Adding delete catalog Adding delete catalog functionality in client ui Change-Id: I56bcba1c09d949b80155b3ac9368203e85eb4f99 Issue-ID: CCSDK-815 Signed-off-by: swapnalipode (cherry picked from commit 7cc92c22ac6172d6b51425d8628e431350593bca) --- cds-ui/client/src/app/common/core/services/api.service.ts | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'cds-ui/client/src/app/common/core/services') diff --git a/cds-ui/client/src/app/common/core/services/api.service.ts b/cds-ui/client/src/app/common/core/services/api.service.ts index addf51ca5..af93787fd 100644 --- a/cds-ui/client/src/app/common/core/services/api.service.ts +++ b/cds-ui/client/src/app/common/core/services/api.service.ts @@ -30,20 +30,21 @@ export class ApiService { constructor(private _http: HttpClient) { } + get(url: string, params?: any): Observable { return this._http.get(url,params); } post(url: string, body: any | null, options?:any): Observable { - return this._http.post(url, body,options); } + put() { // to do } - delete() { - // to do + delete(url: string, params?: any): Observable { + return this._http.delete(url,params); } } \ No newline at end of file -- cgit 1.2.3-korg