title: How to get data from below http request
body: <p>How to get data from below HTTP request.</p>
  
  <p>srp/dashboard/graphics-chart/v1/{roleId}.</p>
  
  <p>In webservice.url.ts I decalred a variable ang assigned the URL to it.</p>
  
  <p>dashboardbardata : 'srp/dashboard/graphics-chart/v1/'.</p>
  
  <p>there is already get req done  below is code and file name is apiservice.ts</p>
  
  <pre><code> get(path: string, params: HttpParams = new HttpParams()): Observable&lt;any&gt; {
  return this.http.get(`${environment.api_url}${path}`, { params })
    .pipe(catchError(this.formatErrors));
  </code></pre>
  
  <p>}</p>
  
  <p>How to use the above HTTP request in my service file and how to subscribe it in TS file.</p>