title: jhipster client side pass entity filter to server side?
body: <p>After reading <a href="http://www.jhipster.tech/entities-filtering/" rel="nofollow noreferrer">http://www.jhipster.tech/entities-filtering/</a>, I can get my jhipster generated applicaiton filter work on postman.</p>
  
  <p>For example I can get right result on postman with: <a href="http://localhost:8080/api/requests?page=0&amp;size=20&amp;sort=model,asc&amp;sort=id&amp;id.in=20000,20001" rel="nofollow noreferrer">http://localhost:8080/api/requests?page=0&amp;size=20&amp;sort=model,asc&amp;sort=id&amp;id.in=20000,20001</a></p>
  
  <p>my questions how can make it work on the generated angular client side app?</p>
  
  <p>I saw that in the ../shared folder it has "request-util.ts". Inside it, there is parameter named "query" and "filter".</p>
  
  <pre><code>export const createRequestOption = (req?: any): BaseRequestOptions =&gt; {
  const options: BaseRequestOptions = new BaseRequestOptions();
  if (req) {
      const params: URLSearchParams = new URLSearchParams();
      params.set('page', req.page);
      params.set('size', req.size);
      if (req.sort) {
          params.paramsMap.set('sort', req.sort);
      }
      params.set('query', req.query);
      params.set('filter', req.filter);
  
      options.params = params;
  }
  return options;
  </code></pre>
  
  <p>};</p>
  
  <p>After reading <a href="https://stackoverflow.com/questions/47117273/jhipster-filtering-entities-with-criteria-intended-angular-client-side-approa">JHipster: Filtering entities with criteria - intended Angular client-side approach</a>
  I tried serveral ways to either pass a {} or [] to query or fitler. However, I cannot make it to work.</p>
  
  <p>In the server side, log says: RequestResource.getAllRequests() with argument[s] = [RequestCriteria{}, Page request [number: 0, size 21, sort: happenDate: DESC]]</p>
  
  <p>The "RequestCriteria{}" cound not get anything I passed in. </p>
  
  <p>Anyone has idear how can I make it work? Thanks a lot.</p>