added codelist service
All checks were successful
FarmMaps.Develop/FarmMapsLib/pipeline/head This commit looks good
All checks were successful
FarmMaps.Develop/FarmMapsLib/pipeline/head This commit looks good
This commit is contained in:
parent
640c99cde2
commit
ac8ab147bc
@ -22,4 +22,16 @@ export class CodeListItemService {
|
|||||||
}
|
}
|
||||||
return this.httpClient.get<ICodeListItem[]>(`${this.ApiEndpoint()}/api/v1/codelistitems/`, { params: params });
|
return this.httpClient.get<ICodeListItem[]>(`${this.ApiEndpoint()}/api/v1/codelistitems/`, { params: params });
|
||||||
}
|
}
|
||||||
|
|
||||||
|
postCodeListItem(codeListItem: ICodeListItem): Observable<ICodeListItem> {
|
||||||
|
return this.httpClient.post<ICodeListItem>(`${this.ApiEndpoint()}/api/v1/codelistitems/${codeListItem.codeList}`, codeListItem);
|
||||||
|
}
|
||||||
|
|
||||||
|
putCodeListItem(codeListItem: ICodeListItem): Observable<ICodeListItem> {
|
||||||
|
return this.httpClient.put<ICodeListItem>(`${this.ApiEndpoint()}/api/v1/codelistitems/${codeListItem.codeList}`, codeListItem);
|
||||||
|
}
|
||||||
|
|
||||||
|
deleteCodeListItem(codelist: string, code: string) {
|
||||||
|
return this.httpClient.delete(`${this.ApiEndpoint()}/api/v1/codelistitems/${codelist}/${code}`);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user