-
Notifications
You must be signed in to change notification settings - Fork 38
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
Return sites_cultivars relations in API #615
Comments
It sounds like I should add |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I was hoping to get a list of cultivars associated with each site, or a list of sites associated with each cultivar, but have been unable to do so
e.g. https://terraref.ncsa.illinois.edu/bety/api/v1/cultivars?associations_mode=ids&limit=1 doesn’t return associated sites and https://terraref.ncsa.illinois.edu/bety/api/v1/sites?associations_mode=ids&limit=1 doesn’t return any cultivars
Note that we don't need to return the join table ids, e.g. /sites?associations_mode=ids returns ids for the experiment_sites table, but these aren’t terribly useful since we can't query join tables like this (or sites_cultivars).
The text was updated successfully, but these errors were encountered: