title: Error in resource configuration. Expected response to contain an object but got an array
body: <p>I have an angular response that expects an array and the service call passes an array(can see it in network tab of chrome dev tools).</p>
  
  <p>but I'm getting the following error in chrome console.</p>
  
  <blockquote>
  Error in resource configuration. Expected response to contain an object but got an array
  </blockquote>
  
  <p>here is my angular service:- </p>
  
  <pre><code>physicalServerModule.factory("physicalServerServices", ['$resource',
  function ($resource) {
  
      var host = app.general.host;
      var port = app.general.port;
  
      var serverItemPath = 'v1/physicalserver/:x';
      var serverPath = 'v1/physicalserver/list';
  
  
      return {
          physicalServer: function () {
              return $resource(host + serverPath,{}, {
                  query: {
                      method: 'GET',
                      isArray: true
                  },
                  create: {
                      method: 'POST'
                  }
              });
          }
  };
  }]);
  </code></pre>
  
  <p>and I'm calling my service as below:-</p>
  
  <pre><code>var tileServiceCall = physicalServerServices.physicalServer();
  tileServiceCall.get({},{}).$promise.then(function (response) {
  
  
   app.meta.physicalserver.tileItems = JSON.stringify(response);
  
  }, function (error) {
  alert("error");
  
  });
  </code></pre>
  
  <p>my angularjs version is 1.2.15
  can someone point me the root cause?</p>