People
Get people data in JSON format.
Get all people
GET https://api.dinkumapi.com/v0/people
Gets all people. Supports filtering by name.
Query params
name | Search people that contains a term in its name. |
Get person by id
GET https://api.dinkumapi.com/v0/people/{id}
Gets a person by its id.
Path params
id | The id of the person. |
Get all people
GET https://api.dinkumapi.com/v0/people
[
{
"id": 1,
"name": "Clover",
"occupation": "Tailor",
"favourite_food": "Apple",
"dislikes": [
"Cooked Drumstick",
"Meat",
"Vegetables"
],
"building": "Threadspace",
"image_url": "https://api.dinkumapi.com/images/people/clover.png"
},
{},
{}
]
Get person by id
GET https://api.dinkumapi.com/v0/people/{id}
{
"id": 7,
"name": "Melvin",
"occupation": "Furniture",
"favourite_food": "Cooked Meat",
"dislikes": [
"Chicken Egg",
"Animals"
],
"building": "Melvin Furniture",
"image_url": "https://api.dinkumapi.com/images/people/melvin.png"
}