AW-803 Add deleteItem.
FarmMaps.Develop/FarmMapsLib/develop There was a failure building this commit
Details
FarmMaps.Develop/FarmMapsLib/develop There was a failure building this commit
Details
parent
975efe5958
commit
e41b94bb77
|
@ -110,6 +110,10 @@ export class ItemService {
|
|||
return this.httpClient.put<IItem>(`${this.ApiEndpoint()}/api/v1/items/${item.code}`,item);
|
||||
}
|
||||
|
||||
deleteItem(itemCode: string): Observable<any> {
|
||||
return this.httpClient.delete<any>(`${this.ApiEndpoint()}/api/v1/items`, itemCode);
|
||||
}
|
||||
|
||||
deleteItems(itemCodes:string[]): Observable<any> {
|
||||
return this.httpClient.post<any>(`${this.ApiEndpoint()}/api/v1/items/delete`, itemCodes);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue