Person
The Person API allows people to retrieve info about people.
GET
/people
DESCRIPTION
Returns all persons, filtered by the 'name' GET filter.
PARAMETERS
| Parameter | Type | Required | Description | Values | Default |
|---|---|---|---|---|---|
| name | GET | Optional | The name to filter people by. | Any text | NULL |
RESPONSE
Type: application/json
A JSON object that complies with the JSON API standard (www.jsonapi.org).
| Status Code | Meaning |
|---|---|
| 200 | Successfully queried people. |
| 401 | Invalid API key provided. |
| 405 | Invalid request HTTP method. |
Example Success Response
GET
/people/:person-id
DESCRIPTION
Returns info about the Person entity associated with the given ID.
PARAMETERS
| Parameter | Type | Required | Description | Values | Default |
|---|---|---|---|---|---|
| person-id | URL_SLUG | Required | The ID of the Person entity to retrieve. | Any positive integer | NULL |
RESPONSE
Type: application/json
A JSON object that complies with the JSON API standard (www.jsonapi.org).
| Status Code | Meaning |
|---|---|
| 200 | Successfully queried specified person. |
| 401 | Invalid API key provided. |
| 404 | No person was found for the provided ID. |
| 405 | Invalid request HTTP method. |