title: How to send array to a get request in Angular 8 app?
body: <p>I'm trying to send list of ids to the server in a get request, I'm doing
  the following:</p>
  
  <pre><code>public loadTripsByIds(tripsIds:number[]): Observable&lt;any&gt; {              
      let params = new HttpParams();
      params = params.append('tripsIds', tripsIds.join(', '));    
      return this.http.get&lt;TripObj[]&gt;(`${this.baseUrl}/Trips/ByIds/Get`, {params: params});                        
    }
  </code></pre>
  
  <p>In the server api code ( rest) I have defined list:</p>
  
  <pre><code>@GET
  @Path("Trips/ById/Get") 
  @Produces("application/json")
  public List&lt;Trips&gt; loadTripsById(@QueryParam("tripsIds") final List&lt;String&gt; tripsIds) {
  </code></pre>
  
  <p>What I actually getting in the server is a list with 1 item (String type) with
  comma separated. for example "10001, 10002".
  I can parse the string in the server side easily but looking for the right
  way to send list to server where each element will be id.</p>
  
  <p>Thanks.</p>