For consuming single file data return by the rest API, I have written below code in Angular,
this._httpClient.post(getUrl,this.sampleGenerateRequestBody, {r