ISSSTELEON WebApp
This commit is contained in:
@@ -0,0 +1,36 @@
|
||||
import { HttpClient, HttpContext, HttpResponse } from '@angular/common/http';
|
||||
import { Observable } from 'rxjs';
|
||||
import { filter, map } from 'rxjs/operators';
|
||||
import { StrictHttpResponse } from '../../strict-http-response';
|
||||
import { RequestBuilder } from '../../request-builder';
|
||||
export interface SaveConceptMap$Params {
|
||||
map_id: string;
|
||||
body: {
|
||||
[key: string]: any;
|
||||
};
|
||||
}
|
||||
export function saveConceptMap(
|
||||
http: HttpClient,
|
||||
rootUrl: string,
|
||||
params: SaveConceptMap$Params,
|
||||
context?: HttpContext,
|
||||
): Observable<
|
||||
StrictHttpResponse<{
|
||||
[key: string]: number;
|
||||
}>
|
||||
> {
|
||||
const rb = new RequestBuilder(rootUrl, saveConceptMap.PATH, 'put');
|
||||
if (params) {
|
||||
rb.path('map_id', params.map_id, {});
|
||||
rb.body(params.body, 'application/json');
|
||||
}
|
||||
return http.request(rb.build({ responseType: 'json', accept: 'application/json', context })).pipe(
|
||||
filter((r: any): r is HttpResponse<any> => r instanceof HttpResponse),
|
||||
map((r: HttpResponse<any>) => {
|
||||
return r as StrictHttpResponse<{
|
||||
[key: string]: number;
|
||||
}>;
|
||||
}),
|
||||
);
|
||||
}
|
||||
saveConceptMap.PATH = '/ingest/concept-maps/{map_id}';
|
||||
Reference in New Issue
Block a user