Consumables
Get consumables data in JSON format. For buff effects, the value
property is measured in seconds.
Get all consumables
GET https://api.dinkumapi.com/v0/consumables
Gets all consumables.
Query params
category | The category of consumable |
Get consumable by id
GET https://api.dinkumapi.com/v0/consumables/{id}
Gets a consumable by its id.
Path params
id | The id of the consumable. |
Get all consumables
GET https://api.dinkumapi.com/v0/consumables
[
{
"id": 1,
"name": "Apple",
"description": "One a day.",
"category": "Raw",
"effects": [
{
"type": "Health",
"value": 5
}
],
"sell_price": 107,
"image_url": "https://api.dinkumapi.com/images/items/apple.png"
},
{},
{}
]
Get consumable by id
GET https://api.dinkumapi.com/v0/consumables/{id}
{
"id": 7,
"name": "Croco Meat",
"description": "Not so snappy now, eh?",
"category": "Raw",
"effects": [],
"sell_price": 625,
"image_url": "https://api.dinkumapi.com/images/items/croco-meat.png"
}