undo previous commit
All checks were successful
FarmMaps.Develop/FarmMapsLib/pipeline/head This commit looks good

This commit is contained in:
Francisco Salas 2020-10-12 14:05:27 +02:00
parent d42aad87bd
commit f656ecd23f

View File

@ -23,8 +23,8 @@ 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(codeList: string, codeListItem: ICodeListItem): Observable<ICodeListItem> { postCodeListItem(codeListItem: ICodeListItem): Observable<ICodeListItem> {
return this.httpClient.post<ICodeListItem>(`${this.ApiEndpoint()}/api/v1/codelistitems/${codeList}`, codeListItem); return this.httpClient.post<ICodeListItem>(`${this.ApiEndpoint()}/api/v1/codelistitems/${codeListItem.codeList}`, codeListItem);
} }
putCodeListItem(codeListItem: ICodeListItem): Observable<ICodeListItem> { putCodeListItem(codeListItem: ICodeListItem): Observable<ICodeListItem> {