Skip to content
This repository has been archived by the owner on May 16, 2020. It is now read-only.

A way to switch between dataset releases #41

Open
qasim opened this issue Mar 12, 2016 · 6 comments
Open

A way to switch between dataset releases #41

qasim opened this issue Mar 12, 2016 · 6 comments

Comments

@qasim
Copy link
Member

qasim commented Mar 12, 2016

Cobalt has a few historical datasets, there should be a way to run the APIs on more than just the latest one.

@qasim
Copy link
Member Author

qasim commented May 28, 2016

I think a first step towards accomplishing this is going over how we would include the session in our URL (remembering that we have to stay RESTful). Any ideas?

@arkon
Copy link
Contributor

arkon commented May 28, 2016

Something like .../api/1.0/session/20152016/... might work? There might need to be an option to omit the session though, or possibly offer something like /session/latest/.

@kashav
Copy link
Member

kashav commented May 28, 2016

I'm wondering if there's any reason for the /session/ part. Also, it may be better if the session matches it's respective release name.

So we'd have something like .../api/1.0/2015-2016/...

Also how would the database look if we were keeping old releases? Would we be using multiple databases? It may be better to use multiple collections for each dataset (maybe courses_2016s, courses_2015_2016, etc. and then courses for the latest release).

@arkon
Copy link
Contributor

arkon commented May 28, 2016

I guess the /session/ part isn't really necessary, and you're right, it should match the release name.

@qasim
Copy link
Member Author

qasim commented May 29, 2016

👍 omitting session
👍 multiple collections

@qasim
Copy link
Member Author

qasim commented May 29, 2016

P.S. @paulxuca would like to tackle this.

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

No branches or pull requests

3 participants