GET /foodservices/diets.{format}
This method returns a list of all diets
Name | Value | Name | Value |
Request Protocol | GET | Requires API Key | Yes |
Method ID | 1321 | Enabled | Yes |
Service Name | foodservices | Service ID | 269 |
Information Steward | Food Services | Data Type | Direct DB Connection |
Update Frequency | Every request (live) | Cache Time | 0 seconds |
- Usage won't increase if there is not data returned
- We cannot modify the data from this method
- Any value can be
null
GET /foodservices/diets.{format}
Parameter | Type | Required | Description |
key | filter | yes | Your API key |
callback | filter | no | JSONP callback format |
Output Formats
- json
- xml
GET /foodservices/diets.{format}
- http://api.uwaterloo.ca/v2/foodservices/diets.json
- http://api.uwaterloo.ca/v2/foodservices/diets.xml
- http://api.uwaterloo.ca/v2/foodservices/diets.json?callback=myResponse
Field Name | Type | Value Description |
diet_id | integer | Diet ID number |
diet_type | string | Diet type |
Any value can be null
{
"meta":{
"requests":134,
"timestamp":1381961246,
"status":200,
"message":"Request successful",
"method_id":2,
"version":2.07,
"method":{
}
},
"data":[
{
"diet_id":2,
"diet_type":"Non Vegetarian"
},
{
"diet_id":5,
"diet_type":"Vegan"
},
{
"diet_id":6,
"diet_type":"Vegetarian"
},
{
"diet_id":7,
"diet_type":"Halal"
}
]
}