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