biocodellc / ppo-data-interface

Visual global plant phenology
0 stars 1 forks source link

Create a present traits and and absent traits dropdown box #14

Closed jdeck88 closed 6 years ago

jdeck88 commented 6 years ago

Call the services: curl https://www.plantphenology.org/api/v1/ppo/present/ curl https://www.plantphenology.org/api/v1/ppo/absent/ Return JSON and populate the dropdowns asynchronously with these values.

jdeck88 commented 6 years ago

I added ALL present traits to the interface. I have not yet included this as a service since i would like to first speed up the service. Also, i have not yet added absent traits to the list... this would entail enabling multiple trait expressions and i would first like to work out how to handle displaying traitIDs in the result set (which will be needed if multiple traits are sent on the query)

jdeck88 commented 6 years ago

For now, lets just still query a single trait, but query both present and absent traits using this call: https://www.plantphenology.org/api/v1/ppo/all/

make sure traits are sorted alphabetically by label

jdeck88 commented 6 years ago

Made a new API service, v2: https://www.plantphenology.org/api/v2/ppo/all_short This service is MUCH faster than v1 and only delivers traitID and label as response so is also smaller in size. The call to this service is now implemented in code. will deploy on next deployment