const res = await this.http.post(`/{{pluralizeappEntity.codeName}}/${encodeURIComponent(_context.{{lowerCaseappEntity.codeName}})}{{singleAppMethod.requestPath}}`, _data);
return res;
{{/eq}}
{{#eqsingleAppMethod.methodType"FETCH"}}
const res = await this.http.post(`/{{pluralizeappEntity.codeName}}/${encodeURIComponent(_context.{{lowerCaseappEntity.codeName}})}{{singleAppMethod.requestPath}}`, _data);
return res;
{{/eq}}
{{#eqsingleAppMethod.methodType"GET"}}
const res = await this.http.get(`/{{pluralizeappEntity.codeName}}/${encodeURIComponent(_context.{{lowerCaseappEntity.codeName}})}{{singleAppMethod.requestPath}}`);
return res;
{{/eq}}
{{#eqsingleAppMethod.codeName"GetDraft"}}
_data[this.APPDENAME?.toLowerCase()] = undefined;
_data[this.APPDEKEY] = undefined;
const res = await this.http.post(`/{{pluralizeappEntity.codeName}}/${encodeURIComponent(_context.{{lowerCaseappEntity.codeName}})}{{singleAppMethod.requestPath}}`, _data);
return res;
{{/eq}}
{{#eqsingleAppMethod.codeName"Update"}}
const res = await this.http.post(`/{{pluralizeappEntity.codeName}}/${encodeURIComponent(_context.{{lowerCaseappEntity.codeName}})}{{singleAppMethod.requestPath}}`, _data);
return res;
{{/eq}}
{{#eqsingleAppMethod.codeName"Get"}}
const res = await this.http.get(`/{{pluralizeappEntity.codeName}}/${encodeURIComponent(_context.{{lowerCaseappEntity.codeName}})}{{singleAppMethod.requestPath}}`, _data);
async {{singleAppMethod.codeName}}(context: any = {}, viewParams: any = {}): Promise<any> {
{{#if(eqsingleAppMethod.methodType"SELECT")}}
let deResPath = this.buildDeResPath(context, true);
const res = await this.http.{{lowerCasesingleAppMethod.psDEServiceAPIMethod.requestMethod}}(deResPath+'/{{singleAppMethod.psDEServiceAPIMethod.requestPath}}', viewParams);