Question : api response plain text spring boot
Answered by : chamrong-thor
getPlainText(url: string, path: string, params: HttpParams = new HttpParams()): Observable<any>{ return this.http.get(`${url}${path}`, { headers: this.headers, params, responseType: 'text' } ).pipe(catchError(e => throwError(e))); }
Source : https://zetcode.com/springboot/text/ | Last Update : Thu, 01 Sep 22