Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix the dining API #64

Open
jbrower95 opened this issue Nov 7, 2016 · 2 comments
Open

Fix the dining API #64

jbrower95 opened this issue Nov 7, 2016 · 2 comments

Comments

@jbrower95
Copy link
Contributor

(info in the email)

Hello,

I'm reaching out on behalf of Brown Dining. I received your name from CSI as the contact person for APPs that used our previous method of displaying dining menus. Our new website now has API coding to display menus and now displays menus for every location.

There are 2 options that can be used depending on which one works best for your particular app/feature/product.

Note that the “###” is the unique location ID for each of the units. Here are all the IDs for our campus dining locations:

1531 = Sharpe Refectory

1532 = Verney-Woolley

1533 = Andrews Commons

1534 = Blue Room

1535 = Josiah’s

1536 = Ivy Room

1537 = Campus Market

1538 = Café Carts

JSON API, version 1

http://legacy.cafebonappetit.com/api/1/cafe/###/date/2016-06-28/format/json

http://legacy.cafebonappetit.com/api/1/cafe/###/date/2016-06-28/days/5/format/json

JSON API, version 2

You use the following URL to get the unit's day parts and hours:
http://legacy.cafebonappetit.com/api/2/cafes?cafe=###

Then, use the following URL to get the full menu for a particular date:
http://legacy.cafebonappetit.com/api/2/menus?cafe=###&date=2016-06-28,2016-06-29

Then, use the following URL to get item details on a particular plate:
http://legacy.cafebonappetit.com/api/2/items?item=######

Please let me know if you have any trouble with the code or if you have questions.

Warm regards,

@jpowell96
Copy link

Hi,
So I'm trying to use the dining api based on this information. Instead of using the dining endpoints on the brown apis page, I should be using these endpoints now?

@hector-m
Copy link

hector-m commented Dec 6, 2017

I can't seem to actually get the menus from using your links. It basically just gives hours and icon information. Has anyone gotten it to work?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants