From 2ad04fc7c1cf7e817f2feb5b7e9486098154d201 Mon Sep 17 00:00:00 2001 From: Mark van der Wal Date: Mon, 12 Oct 2020 17:41:24 +0200 Subject: [PATCH] Added getCodeListItem api for service --- projects/common/src/fm/services/codelistitem.service.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/projects/common/src/fm/services/codelistitem.service.ts b/projects/common/src/fm/services/codelistitem.service.ts index 3900080..54c3cfe 100644 --- a/projects/common/src/fm/services/codelistitem.service.ts +++ b/projects/common/src/fm/services/codelistitem.service.ts @@ -23,6 +23,10 @@ export class CodeListItemService { return this.httpClient.get(`${this.ApiEndpoint()}/api/v1/codelistitems/`, { params: params }); } + getCodeListItem(codeList: string, code: string): Observable { + return this.httpClient.get(`${this.ApiEndpoint()}/api/v1/codelistitems/${codeList}/${code}`); + } + postCodeListItem(codeListItem: ICodeListItem): Observable { return this.httpClient.post(`${this.ApiEndpoint()}/api/v1/codelistitems/${codeListItem.codeList}`, codeListItem); }