The lists of resources returned

Most of the calls to the REST API return a list of resources. This list of resources is comprised of the following three elements:

  • size: The number of resources returned
  • total: The number of resources returned if the request had not limited the result
  • list: The table containing the resources

An example of a list of resources returned in json format :

{
  "size": 2,       // The number of resources returned
  "total": 600640, // The number of resources returned if the request had not limited the result
  "list":          // The table containing the resources
  [
  {
      "id": "1",
      "email": "aladdin@digitaleo.com",
      "phone": "+33201010101",
      "mobile": "+33601010101",
  },
  {
      "id": "2",
      "email": "jasmine@digitaleo.com",
      "phone": "+33202020202",
      "mobile": "+33602020202",
  }
  ]
}