API

Last updated 15 days ago

get
Get Cakes

https://api.cakes.com
/v1/cakes/:id
This endpoint allows you to get free cakes.
Request
Response
Path Parameters
id
optional
string
ID of the cake to get, for free of course.
Headers
Authentication
required
string
Authentication token to track down who is emptying our stocks.
Query Parameters
recipe
optional
string
The API will do its best to find a cake matching the provided recipe.
gluten
optional
boolean
Whether the cake should be gluten-free or not.
200: OK
Cake successfully retrieved.
{
"name": "Cake's name",
"recipe": "Cake's recipe name",
"cake": "Binary cake"
}
404: Not Found
Could not find a cake matching this query.
{
"message": "Ain't no cake like that."
}

‚Äč