cortex-lab / alyx

Database for experimental neuroscience laboratories
44 stars 11 forks source link

REST endpoint for surgeries? #668

Closed nsteinme closed 4 years ago

nsteinme commented 4 years ago

There's currently no way to query the rest api for surgeries - could we have an endpoint for that?

rossant commented 4 years ago

Yep https://github.com/cortex-lab/alyx/pull/667 reviewing it now

oliche commented 4 years ago

After update, this will get the surgeries through the endpoint using ONE:

from oneibl.one import ONE
one = ONE()
surgeries = one.alyx.rest('surgeries', 'list')
subjects = one.alyx.rest('subjects', 'list')