From a082967c69739880d62e48f954d7f69707ff88b9 Mon Sep 17 00:00:00 2001 From: Willem Dantuma Date: Tue, 26 Jan 2021 19:53:51 +0100 Subject: [PATCH] Add getItemFeature method --- projects/common/src/fm/services/item.service.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/projects/common/src/fm/services/item.service.ts b/projects/common/src/fm/services/item.service.ts index e205230..5262e27 100644 --- a/projects/common/src/fm/services/item.service.ts +++ b/projects/common/src/fm/services/item.service.ts @@ -51,6 +51,12 @@ export class ItemService { return this.httpClient.get(`${this.ApiEndpoint()}/api/v1/items/${code}/feature/`, { params: params }); } + getItemFeature(code:string, fid:number, crs: string): Observable { + var params = new HttpParams(); + params = params.append("crs", crs); + return this.httpClient.get(`${this.ApiEndpoint()}/api/v1/items/${code}/feature/${fid}`, { params: params }); + } + getItem(code: string): Observable { return this.httpClient.get(`${this.ApiEndpoint()}/api/v1/items/${code}`); }