public upload(req: any, customHeaders?: Function): Observable<any> {
let _method: string = "POST";
let _url: string = LoopBackConfig.getPath() + "/" + LoopBackConfig.getApiVersion() +
"/Attachments/upload";
let _routeParams: any = {};
let _postBody: any = {};
let _urlParams: any = {};
let result = this.request(_method, _url, _routeParams, _urlParams, _postBody, null, customHeaders);
return result;
}
The _postBody is empty, the req parameter is not used.
In older versions it used to be let _postBody = {data: req}
What type of issue are you creating?
What version of this module are you using?
Hi when generating the service for a model, the typescript function does not post the request data.
here is my model remote method config:
And here is the generated function :
The
_postBody
is empty, thereq
parameter is not used.In older versions it used to be
let _postBody = {data: req}