diff --git a/projects/common/src/fm/services/item.service.ts b/projects/common/src/fm/services/item.service.ts index 2efb8e8..0d0f6d1 100644 --- a/projects/common/src/fm/services/item.service.ts +++ b/projects/common/src/fm/services/item.service.ts @@ -101,7 +101,11 @@ export class ItemService { else return this.httpClient.get(`${this.ApiEndpoint()}/api/v1/items/${code}/features`, { params: params }); } - + + postItem(item:IItem): Observable { + return this.httpClient.post(`${this.ApiEndpoint()}/api/v1/items/${item.code}`,item); + } + putItem(item:IItem): Observable { return this.httpClient.put(`${this.ApiEndpoint()}/api/v1/items/${item.code}`,item); }