terraref / brapi

Breeder's API implementation for TERRA-REF
https://terraref.org/brapi/v1/calls
BSD 3-Clause "New" or "Revised" License
0 stars 2 forks source link

Add observationvariables endpoint #42

Open dlebauer opened 4 years ago

dlebauer commented 4 years ago

These are the responseswithin observationvariables

note:

BrAPI Term BETYdb term notes
traitName variables.name
ObservationVariable variable+method+units in BrAPI a variable is defined as variable+method+scale
ObservationUnit sites these are individual plots
observationDbId traits these are individual observations
method method yay something matches
scaleName units
traitClass variables.type
Chris-Schnaufer commented 3 years ago

End point is /studies/{studyDbId}/observationvariables Note: this is the end point for this issue

dlebauer commented 3 years ago

@Chris-Schnaufer do you mean that this should work? http://terraref.org/brapi/v1/studies/6000000034/observationVariables (b/c it doesn't; also doesn't work locally on the master branch)

I see scales in http://localhost:5000/brapi/v1/variables but these don't seem to propoagate to the observationvariables endpoint

Chris-Schnaufer commented 3 years ago

I will check this out

@dlebauer I clarified my previous comment - it was to indicate what the endpoint was, not that it was implemented