Aw4645 Add get item to admin service
FarmMaps.Develop/FarmMapsLib/pipeline/head This commit looks good Details

master
Peter Bastiani 2023-02-09 17:33:27 +01:00
parent 8c3c40cfe6
commit c61a4fe7f4
1 changed files with 4 additions and 0 deletions

View File

@ -16,6 +16,10 @@ export class AdminService {
return this.appConfig.getConfig("apiEndPoint");
}
getItem(code: string): Observable<IItem> {
return this.httpClient.get<IItem>(`${this.ApiEndpoint()}/api/v1/admin/${code}`);
}
getItemList(itemType?: string, dataFilter?: any, level?: number, atItemLocationItemCode?: string, indexed?: boolean, validToday?: boolean): Observable<IItem[]> {
var params = new HttpParams();
if(itemType) params = params.append("it", itemType);