let deResPath = this.buildDeResPath(context, false);
{{#eqsingleAppMethod.methodType"FETCH"}}
const res = await this.http.{{lowerCasesingleAppMethod.psDEServiceAPIMethod.requestMethod}}(deResPath+'/{{singleAppMethod.psDEServiceAPIMethod.requestPath}}', viewParams);
const res = await this.http.post(`/{{pluralizeappEntity.codeName}}/${encodeURIComponent(_context.{{lowerCaseappEntity.codeName}})}{{singleAppMethod.requestPath}}`, _data);
{{elseif(eqsingleAppMethod.methodType"FETCH")}}
return res;
let deResPath = this.buildDeResPath(context, false);
{{/eq}}
const res = await this.http.{{lowerCasesingleAppMethod.psDEServiceAPIMethod.requestMethod}}(deResPath+'/{{singleAppMethod.psDEServiceAPIMethod.requestPath}}', viewParams);
{{#eqsingleAppMethod.methodType"GET"}}
// TODO @executeafterbatchaction
const res = await this.http.get(`/{{pluralizeappEntity.codeName}}/${encodeURIComponent(_context.{{lowerCaseappEntity.codeName}})}{{singleAppMethod.requestPath}}`);