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": [
    {
      "additionalProperties": false, 
      "type": "object", 
      "description": "A list of errors that may be returned.", 
      "properties": {
        "errors": {
          "items": {
            "additionalProperties": false, 
            "type": "object", 
            "description": "An object describing a single error.", 
            "properties": {
              "field": {
                "type": "string", 
                "description": "The field with the error if applicable."
              }, 
              "message": {
                "type": "string", 
                "description": "The error message."
              }, 
              "code": {
                "type": "string", 
                "description": "The error code."
              }
            }
          }, 
          "type": "array"
        }
      }
    }, 
    {
      "additionalProperties": false, 
      "type": "object", 
      "properties": {
        "total": {
          "minimum": 0, 
          "type": "integer", 
          "description": "Total number of items available.", 
          "maximum": 4294967295
        }, 
        "resume": {
          "minLength": 0, 
          "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": {
          "minItems": 0, 
          "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", 
          "maxItems": 4294967295
        }
      }
    }
  ]
}

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

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": [
    {
      "additionalProperties": false, 
      "type": "object", 
      "description": "A list of errors that may be returned.", 
      "properties": {
        "errors": {
          "items": {
            "additionalProperties": false, 
            "type": "object", 
            "description": "An object describing a single error.", 
            "properties": {
              "field": {
                "type": "string", 
                "description": "The field with the error if applicable."
              }, 
              "message": {
                "type": "string", 
                "description": "The error message."
              }, 
              "code": {
                "type": "string", 
                "description": "The error code."
              }
            }
          }, 
          "type": "array"
        }
      }
    }, 
    {
      "type": "object", 
      "properties": {
        "id": {
          "required": true, 
          "minimum": 0, 
          "type": "integer", 
          "description": "ID of created item that can be used to refer to item in the collection-item resource path.", 
          "maximum": 18446744073709551615
        }
      }
    }
  ]
}
