Query 1: Get the entire menu
Request Format: mowgliscafe.php?menu=all
Request Type: GET
Returned Data Format: JSON
Description: Returns returns a detailed JSON object containing data for the entire menu for the cafe.
Request: https://courses.cs.washington.edu/courses/cse154/webservices/mowgliscafe/mowgliscafe.php?menu=all
Output: (abbreviated)
{
"Drinks" : [
{
"category" : "Coffee",
"items" : [
{
"name" : "Brewed Coffee (Black)",
"price" : "1.25",
"cost" : "0.65"
},
{
"name" : "Brewed Coffee (With Cream)",
"price" : "1.50",
"cost" : "0.85"
},
...
]
},
...
],
"Bakery" : [
{
"category" : "Scones",
"items" : [
{
"name" : "Blueberry Scone",
"price" : "3.50",
"cost" : "0.75"
},
...
]
},
...
]
}
The values of the returned JSON object include a list of subcategories of that category. Each subcategory of the category (like "Coffee" in "Drinks") has a list of "items". Each item has a "name", "price" and "cost" associated with it.