ScottyLabs Dining API (2.4.0)
Download OpenAPI specification:Download
ScottyLabs: hello@scottylabs.org URL: https://scottylabs.org
This is an API that serves dining location info for Carnegie Mellon University.
Response samples
- 200
Content type
application/json
{- "locations": {
- "conceptId": 0,
- "name": "string",
- "shortDescription": "string",
- "description": "string",
- "location": "string",
- "coordinates": {
- "lat": 0,
- "lng": 0
}, - "times": [
- {
- "start": {
- "day": 0,
- "hour": 0,
- "minute": 0
}, - "end": {
- "day": 0,
- "hour": 0,
- "minute": 0
}
}
], - "menu": "string",
- "acceptsOnlineOrders": true,
- "todaysSpecials": [
- {
- "title": "string",
- "description": "string"
}
], - "todaysSoups": [
- {
- "title": "string",
- "description": "string"
}
]
}
}
Returns location based on name
path Parameters
name required | string The name of the dining location |
Responses
Response samples
- 200
Content type
application/json
[- {
- "conceptId": 0,
- "name": "string",
- "shortDescription": "string",
- "description": "string",
- "location": "string",
- "coordinates": {
- "lat": 0,
- "lng": 0
}, - "times": [
- {
- "start": {
- "day": 0,
- "hour": 0,
- "minute": 0
}, - "end": {
- "day": 0,
- "hour": 0,
- "minute": 0
}
}
], - "menu": "string",
- "acceptsOnlineOrders": true,
- "todaysSpecials": [
- {
- "title": "string",
- "description": "string"
}
], - "todaysSoups": [
- {
- "title": "string",
- "description": "string"
}
]
}
]
Returns locations that are open at the specified time
path Parameters
day required | integer The day of the week with 0 - Sunday, 6 - Saturday |
hour required | integer The hour in 24H format (e.g. 9 for 9:30 AM) |
min required | integer The minute in the hour (e.g. 30 for 9:30 AM) |
Responses
Response samples
- 200
Content type
application/json
{- "locations": {
- "conceptId": 0,
- "name": "string",
- "shortDescription": "string",
- "description": "string",
- "location": "string",
- "coordinates": {
- "lat": 0,
- "lng": 0
}, - "times": [
- {
- "start": {
- "day": 0,
- "hour": 0,
- "minute": 0
}, - "end": {
- "day": 0,
- "hour": 0,
- "minute": 0
}
}
], - "menu": "string",
- "acceptsOnlineOrders": true,
- "todaysSpecials": [
- {
- "title": "string",
- "description": "string"
}
], - "todaysSoups": [
- {
- "title": "string",
- "description": "string"
}
]
}
}