title: Restangular: getList with object containing embedded array
body: <p>In my AngularJS project I'm trying to use the Restangular getList method but it's returning an error because the API response is not directly an array but an object containing an array.</p>
  
  <pre><code>{
    "body": [
      // array elements here
    ],
    "paging": null,
    "error": null
  }
  </code></pre>
  
  <p>The Restangular error message is:</p>
  
  <pre><code>Error: Response for getList SHOULD be an array and not an object or something else
  </code></pre>
  
  <p>Is it possible to tell Restangular that the array it's looking for is inside the <code>body</code> property?</p>