Resource URL: /platform/<<version=1>>/foo/people

    Overview: This resource applies the standard collection pattern to people.

     Methods: GET, POST

********************************************************************************

Method GET: List all people.

       URL: GET /platform/<<version=1>>/foo/people

Query arguments:
            sort=<string> The field that will be used for sorting.
custom_property=<boolean> This query arg does nothing, it's just here as an
                          example.
          limit=<integer> Return no more than this many results at once (see
                          resume).
               dir=<enum> Where <enum> is one of ASC, DESC.  The direction of
                          the sort.
          resume=<string> Continue returning results from previous call using
                          this token (token should come from the previous call,
                          resume cannot be used with other options).

GET response body schema:
{
  "type": "object", 
  "properties": {
    "total": {
      "type": "integer", 
      "description": "Total number of items available."
    }, 
    "resume": {
      "type": [
        "string", 
        "null"
      ], 
      "description": "Continue returning results from previous call using this token (token should come from the previous call, resume cannot be used with other options)."
    }, 
    "people": {
      "items": {
        "type": "object", 
        "description": "This is an example schema that contains information on employees.", 
        "properties": {
          "salary": {
            "type": "number", 
            "description": "The employee's salary, if applicable."
          }, 
          "pay_type": {
            "enum": [
              "hourly", 
              "salary"
            ], 
            "type": "string", 
            "description": "This field signifies whether the employee is paid hourly or paid a salary."
          }, 
          "first_name": {
            "type": "string", 
            "description": "The employee's first name."
          }, 
          "last_name": {
            "type": "string", 
            "description": "The employee's last name."
          }, 
          "hire_date": {
            "type": "integer", 
            "description": "The date the employee was hired."
          }, 
          "departments": {
            "items": {
              "type": "string"
            }, 
            "type": "array", 
            "description": "The departments the employee works in."
          }, 
          "date_of_birth": {
            "type": "string", 
            "description": "The employee's date of birth."
          }, 
          "hourly_wage": {
            "type": "number", 
            "description": "The employee's hourly wage, if applicable."
          }, 
          "active": {
            "type": "boolean", 
            "description": "Whether the employee is actively employed."
          }, 
          "id": {
            "type": "integer", 
            "description": "The employee ID."
          }
        }
      }, 
      "type": "array"
    }
  }
}

********************************************************************************

Method POST: Create a new person.

        URL: POST /platform/<<version=1>>/foo/people

There are no query arguments for this method.

Required POST request body fields:
first_name, last_name

POST request body schema:
{
  "type": "object", 
  "description": "This is an example schema that contains information on employees.", 
  "properties": {
    "salary": {
      "type": "number", 
      "description": "The employee's salary, if applicable."
    }, 
    "pay_type": {
      "enum": [
        "hourly", 
        "salary"
      ], 
      "type": "string", 
      "description": "This field signifies whether the employee is paid hourly or paid a salary."
    }, 
    "first_name": {
      "required": true, 
      "type": "string", 
      "description": "The employee's first name."
    }, 
    "last_name": {
      "required": true, 
      "type": "string", 
      "description": "The employee's last name."
    }, 
    "hire_date": {
      "type": "integer", 
      "description": "The date the employee was hired."
    }, 
    "departments": {
      "items": {
        "type": "string"
      }, 
      "type": "array", 
      "description": "The departments the employee works in."
    }, 
    "date_of_birth": {
      "type": "string", 
      "description": "The employee's date of birth."
    }, 
    "hourly_wage": {
      "type": "number", 
      "description": "The employee's hourly wage, if applicable."
    }, 
    "active": {
      "type": "boolean", 
      "description": "Whether the employee is actively employed."
    }
  }
}

POST response body schema:
{
  "type": "object", 
  "properties": {
    "id": {
      "required": true, 
      "type": "integer", 
      "description": "ID of created item that can be used to refer to item in the collection-item resource path."
    }
  }
}
