cobalt icon indicating copy to clipboard operation
cobalt copied to clipboard

A way to switch between dataset releases

Open qasim opened this issue 9 years ago • 6 comments
trafficstars

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

qasim avatar Mar 12 '16 02:03 qasim

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?

qasim avatar May 28 '16 18:05 qasim

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/.

arkon avatar May 28 '16 18:05 arkon

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).

kashav avatar May 28 '16 22:05 kashav

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

arkon avatar May 28 '16 23:05 arkon

👍 omitting session 👍 multiple collections

qasim avatar May 29 '16 03:05 qasim

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

qasim avatar May 29 '16 04:05 qasim