diff options
author | 2020-03-02 12:57:20 +0530 | |
---|---|---|
committer | 2020-04-08 15:43:01 +0000 | |
commit | d7d2b0657b18a96bc1889f8404d7b212f28922e6 (patch) | |
tree | fcb92e05f1a6c74bd0e8291f7cbcbb14da9485c4 /cds-ui/client/src/app/common/core/services/api.service.ts | |
parent | f541226907489eb1eac619b5b6b72a1c2eefa4f9 (diff) |
Adding delete catalog
Adding delete catalog functionality in client ui
Change-Id: I56bcba1c09d949b80155b3ac9368203e85eb4f99
Issue-ID: CCSDK-815
Signed-off-by: swapnalipode <sp00501638@techmahindra.com>
(cherry picked from commit 7cc92c22ac6172d6b51425d8628e431350593bca)
Diffstat (limited to 'cds-ui/client/src/app/common/core/services/api.service.ts')
-rw-r--r-- | cds-ui/client/src/app/common/core/services/api.service.ts | 7 |
1 files changed, 4 insertions, 3 deletions
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<any> { return this._http.get(url,params); } post(url: string, body: any | null, options?:any): Observable<any> { - return this._http.post(url, body,options); } + put() { // to do } - delete() { - // to do + delete(url: string, params?: any): Observable<any> { + return this._http.delete(url,params); } }
\ No newline at end of file |