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

nameSearch people that contains a term in its name.

Get person by id

Path params

idThe 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"
}