title: How can I filter a GET request?
body: <p>Using a web request, I am retrieving data and displaying it on a web page. Rather than using Angular's <code>ng-if</code> and hiding data that doesn't meet the criteria, I'd like to simply not retrieve the data at all.</p>
  
  <p>The JS:</p>
  
  <pre><code>var app = angular.module('myApp', ['ngSanitize']);
  app.controller('MainCtrl', function($scope, $http, $q){
    $(document).ready(function() {
      $scope.getAdminList();
    });
      $scope.prepContext = function(url,listname,query){
          var path = url + "/_api/web/lists/getbytitle('" + listname + "')/items" + query;
          console.log(path);
          return path;
      }
      $scope.getAdminList = function() {
      adminList = $http({
        method: 'GET',
        url: this.prepContext(siteOrigin+"/corporate/projecthub/anchormn/associates","User Administration","?$orderBy=LastName"),
        headers: {
          "Accept": "application/json; odata=verbose"
        }
      }).then(function(data) {
        //$("#articleSection").fadeIn(2000);
        console.log("adminlist", data.data.d.results);
        $scope.users = data.data.d.results;
      });
    };
  });
  </code></pre>
  
  <p>Logging <code>data.data.d.results;</code> logs an object array similar to:</p>
  
  <pre><code>{
    0: {
      "ID": 21,
      "Name": Me
      },
    1: {
      "ID": 14,
      "Name": Test
      },
    2: {
      "ID": 3,
      "Name": Test1
      }
  }
  </code></pre>
  
  <p>Instead of using <code>ng-if="user.ID == 21</code>, how can I retrieve the item only using a web request?</p>