1
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 中。用户在表单中提供详细信息。所有详细信息都被合并并作为参数模型制作

4

0 回答 0