Gets a single person based on their id
| Name | Type | Default | Description |
|---|---|---|---|
| id | integer | N/A | the id of the person to get uniquely identifies the person |
| Name | Description |
|---|---|
| X-Custom-Header | This header is always required for the person route It always alters the route |
200 OK
{
id: 1,
name: 'John Smith',
age: 22
}
Adds a new person and returns their id.
| Name | Type | Default | Description |
|---|---|---|---|
| name | string | N/A | The name of the new person to create |
| age | integer | 0 | The age of the new person (default 0) |
201 CREATED
3904
Updates the person's age.
| Name | Type | Default | Description |
|---|---|---|---|
| id | integer | N/A | The id of the person |
| age | integer | N/A | The age of the person |
Deletes the person
| Name | Type | Default | Description |
|---|---|---|---|
| id | integer | N/A | The id of the person to delete |