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 } } }

{
  "data": {
    "campusEateries": [
      {
        "about": "<text>",
        "coordinates": {
          "latitude": 42.444266,
          "longitude": -76.487598
        },
        "eateryType": "All You Care To Eat Dining Room",
        "id": 31,
        "imageUrl": "https://raw.githubusercontent.com/cuappdev/assets/master/eatery/eatery-images/104-West.jpg",
        "location": "104 West Avenue",
        "name": "104West!",
        "operatingHours": [
          {
            "date": "2018-12-04",
            "events": [
              {
                "calSummary": "Lunch",
                "description": "Lunch",
                "startTime": "2018-12-04:11:00am"
                "endTime": "2018-12-04:02:00pm",
                "menu": [
                  {
                    "category": "Salad Bar Station",
                    "items": [
                      {
                        "healthy": true,
                        "item": "Fresh Cut Fruit Salad"
                      },
                      {
                        "healthy": true,
                        "item": "Healthy Style Salad Bar"
                      }
                    ]
                  },
                  ...  # more stations
                ]
              },
              ...  # more events
            ]
          },
          ...  # more operating hours
        ],
        "paymentMethods": {
          "brbs": true,
          "cash": true,
          "cornellCard": true,
          "credit": true,
          "mobile": true,
          "swipes": true
        },
        "phone": "607-272-6907",
        "slug": "104-West"
        "swipeData": {
          "sessionType": "regular",
          "startTime": "04:30 PM",
          "endTime": "05:00 PM",
          "swipeDensity": .767,  # 3 decimal number in range [0,1]
          "waitTimeLow": 1,  # min value is 0
          "waitTimeHigh": 4
      },
      ...  # more eateries
    ]
  }
}

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