“集合ID类型为非数字或未知。只能生成数字ID。”

时间:2019-09-07 22:31:29

标签: angular-in-memory-web-api

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。用户以表格形式提供详细信息。所有详细信息都被汇总并作为参数模型制作

0 个答案:

没有答案