public createOEInputParameters(param: OeinputParameters) {
const url = `${this.apiUrl}`;
return this.http.post(url, JSON.stringify( param), httpOptions).pipe(map(this.serviceHelper.extractData))
.pipe(catchError(this.serviceHelper.handleError));
})
Param model:
export class OeinputParameters {
public common: OEGenericInputParameter;
public fleet: OEInputParameterWideBody[];
public optional: OEInputParameterOptions;
constructor() { }
}
in-memory Service Api:
createDB(){
const inputparamsfun = () =>{
//what to be given here?
}
}
预期结果: 需要发布一个表单数据,它将类似于json在内存中的webapi。用户以表格形式提供详细信息。所有详细信息都被汇总并作为参数模型制作