Eatery
API Documentation for Eatery
Campus Eateries
Get all campus eateries
GET
http://eatery-backend.cornellappdev.com/graphQL
Path Parameters
Name | Type | Description |
---|---|---|
GraphQL Query | integer | id for a specific eatery. No argument will result in a get all request example query{ campusEateries { about coordinates { latitude longitude } eateryType id imageUrl location name operatingHours { date events { calSummary description startTime endTime menu { itemCount items { healthy item } } } } paymentMethods { brbs cash cornellCard credit mobile swipes } phone slug swipeData { startTime endTime swipeDensity waitTimeLow waitTimeHigh } } } |
Collegetown Eateries
Get all collegetown eateries
GET
http://eatery-backend.cornellappdev.com/graphQL
Path Parameters
Name | Type | Description |
---|---|---|
GraphQL Query | integer | id for a specific collegetown eatery. No argument will default to a get all request.{ collegetownEateries(id: <eatery_id>) { address categories coordinates { latitude longitude } eateryType id imageUrl name paymentMethods { brbs cash cornellCard credit mobile swipes } phone price rating url } } |
GET Login
Get user GET information
GET
http://eatery-backend.cornellappdev.com/graphQL
Gathers user account information from GET (laundry, brb, city bucks)
Path Parameters
Name | Type | Description |
---|---|---|
GraphQL Query | string | GET session id for a user.{ accountInfo(id: <session_id>) { brb cityBucks history { amount name timestamp } laundry swipes } } |
Last updated