# Eatery

## Campus Eateries

## Get all campus eateries

<mark style="color:blue;">`GET`</mark> `http://eatery-backend.cornellappdev.com/graphQL`

#### Path Parameters

| Name          | Type    | Description                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          |
| ------------- | ------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| GraphQL Query | integer | <p>id for a specific eatery. No argument will result in a get all request<br>example query{<br>  campusEateries {<br>    about<br>    coordinates {<br>      latitude<br>      longitude<br>    }<br>    eateryType<br>    id<br>    imageUrl<br>    location<br>    name<br>    operatingHours {<br>      date<br>      events {<br>        calSummary<br>        description<br>        startTime<br>        endTime<br>        menu {<br>          itemCount<br>          items {<br>            healthy<br>            item<br>          }<br>        }<br>      }<br>    }<br>    paymentMethods {<br>      brbs<br>      cash<br>      cornellCard<br>      credit<br>      mobile<br>      swipes<br>    }<br>    phone<br>    slug <br>    swipeData { <br>      startTime <br>      endTime <br>      swipeDensity  <br>      waitTimeLow <br>      waitTimeHigh <br>    } <br>  }<br>}</p> |

{% tabs %}
{% tab title="200 " %}

```
{
  "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
    ]
  }
}
```

{% endtab %}
{% endtabs %}

## Collegetown Eateries

## Get all collegetown eateries

<mark style="color:blue;">`GET`</mark> `http://eatery-backend.cornellappdev.com/graphQL`

#### Path Parameters

| Name          | Type    | Description                                                                                                                                                                                                                                                                                                                                                                                 |
| ------------- | ------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| GraphQL Query | integer | <p>id for a specific collegetown eatery. No argument will default to a get all request.{<br>collegetownEateries(id: \<eatery\_id>) {<br>address<br>categories<br>coordinates {<br>latitude<br>longitude<br>}<br>eateryType<br>id<br>imageUrl<br>name<br>paymentMethods {<br>brbs<br>cash<br>cornellCard<br>credit<br>mobile<br>swipes<br>}<br>phone<br>price<br>rating<br>url<br>}<br>}</p> |

{% tabs %}
{% tab title="200 " %}

```
{
  "data": {
    "collegetownEateries": [
      {
        "address": "415 College Ave",
        "categories": [
          "Bagels",
          "Sandwiches",
          "Coffee & Tea"
        ],
        "coordinates": {
          "latitude": 42.44234,
          "longitude": -76.48508
        },
        "eateryType": "Collegetown Restaurant",
        "id": -7,
        "imageUrl": "https://s3-media1.fl.yelpcdn.com/bphoto/hRhu1aRzEmV12yYYXeteAw/o.jpg",
        "name": "Collegetown Bagels",
        "operatingHours": [
          {
            "date": "2018-12-05",
            "events": [
              {
                "description": "General",
                "endTime": "2018-12-06:02:00AM",
                "startTime": "2018-12-05:06:30AM"
              }
            ]
          },
          ...  # more operating hours
        ],
        "paymentMethods": {
          "brbs": false,
          "cash": true,
          "cornellCard": false,
          "credit": true,
          "mobile": false,
          "swipes": false
        },
        "phone": "+16072730982",
        "price": "$",
        "rating": "4.0",
        "url": "https://www.yelp.com/biz/collegetown-bagels-ithaca?adjust_creative=ye2EvJ4Kp2xkdMHg9ZpbXA&utm_campaign=yelp_api_v3&utm_medium=api_v3_business_lookup&utm_source=ye2EvJ4Kp2xkdMHg9ZpbXA"
      },
      ...  # more collegetown eateries
    ]
  }
}
```

{% endtab %}
{% endtabs %}

## GET Login

## Get user GET information

<mark style="color:blue;">`GET`</mark> `http://eatery-backend.cornellappdev.com/graphQL`

Gathers user account information from GET (laundry, brb, city bucks)

#### Path Parameters

| Name          | Type   | Description                                                                                                                                                                 |
| ------------- | ------ | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| GraphQL Query | string | <p>GET session id for a user.{<br>accountInfo(id: \<session\_id>) {<br>brb<br>cityBucks<br>history {<br>amount<br>name<br>timestamp<br>}<br>laundry<br>swipes<br>}<br>}</p> |

{% tabs %}
{% tab title="200 " %}

```
```

{% endtab %}
{% endtabs %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://bible.cornellappdev.com/api/eatery.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
