GET /foodservices/{year}/{week}/announcements.{format}
This method returns additional announcements regarding food served in the week specified
Name | Value | Name | Value |
Request Protocol | GET | Requires API Key | Yes |
Method ID | 1301 | 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 no data returned
- We cannot modify the data from this method
- The results are only for the week specified (where the week starts on Monday)
- Any value can be
null
GET /foodservices/{year}/{week}/announcements.{format}
Parameter | Type | Required | Description |
key | filter | yes | Your API key |
year | input | yes | Number representing year |
week | input | yes | Number representing week |
callback | filter | no | JSONP callback format |
Output Formats
- json
- xml
GET /foodservices/{year}/{week}/announcements.{format}
- https://api.uwaterloo.ca/v2/foodservices/2013/2/announcements.json
- https://api.uwaterloo.ca/v2/foodservices/2013/2/announcements.xml
- https://api.uwaterloo.ca/v2/foodservices/2013/2/announcements.json?callback=myResponse
Field Name | Type | Value Description |
date | object | Advertisement date object |
ad_text | string | Advertisement text |
Any value can be null
{
"meta":{
"requests":7149,
"timestamp":1401973581,
"status":200,
"message":"Request successful",
"method_id":1301,
"method":{
}
},
"data":[
{
"date":"2013-01-07",
"ad_text":"Try our newest dining concept on campus...The Chili Pepper - Tex Mex Cuisine."
}
]
}