From e41b94bb779cc744e34ceea19b6af637376655f7 Mon Sep 17 00:00:00 2001 From: Peter Bastiani Date: Thu, 30 Jan 2020 13:58:01 +0100 Subject: [PATCH] AW-803 Add deleteItem. --- projects/common/src/fm/services/item.service.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/projects/common/src/fm/services/item.service.ts b/projects/common/src/fm/services/item.service.ts index a8c8fe6..c75c581 100644 --- a/projects/common/src/fm/services/item.service.ts +++ b/projects/common/src/fm/services/item.service.ts @@ -110,6 +110,10 @@ export class ItemService { return this.httpClient.put(`${this.ApiEndpoint()}/api/v1/items/${item.code}`,item); } + deleteItem(itemCode: string): Observable { + return this.httpClient.delete(`${this.ApiEndpoint()}/api/v1/items`, itemCode); + } + deleteItems(itemCodes:string[]): Observable { return this.httpClient.post(`${this.ApiEndpoint()}/api/v1/items/delete`, itemCodes); }