AW-803 Add postItem.
All checks were successful
FarmMaps.Develop/FarmMapsLib/develop This commit looks good
All checks were successful
FarmMaps.Develop/FarmMapsLib/develop This commit looks good
This commit is contained in:
parent
0674b0ac7c
commit
0ba553cc40
@ -102,6 +102,10 @@ export class ItemService {
|
|||||||
return this.httpClient.get<any>(`${this.ApiEndpoint()}/api/v1/items/${code}/features`, { params: params });
|
return this.httpClient.get<any>(`${this.ApiEndpoint()}/api/v1/items/${code}/features`, { params: params });
|
||||||
}
|
}
|
||||||
|
|
||||||
|
postItem(item:IItem): Observable<IItem> {
|
||||||
|
return this.httpClient.post<IItem>(`${this.ApiEndpoint()}/api/v1/items/${item.code}`,item);
|
||||||
|
}
|
||||||
|
|
||||||
putItem(item:IItem): Observable<IItem> {
|
putItem(item:IItem): Observable<IItem> {
|
||||||
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);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user