treflehq / trefle-api

🍀 Trefle is a botanical JSON REST API for plants species, allowing you to search and query over all the registered species, and build the next gardening apps and farming robots.
https://trefle.io
GNU Affero General Public License v3.0
488 stars 51 forks source link

Label for better filtering #92

Open herbievine opened 3 years ago

herbievine commented 3 years ago

Is your feature request related to a problem? Please describe. I think it would a great feature to have a 'labels' attribute to each plant. This can help with querying labels, along with displaying custom plants to the user based on labels

Describe the solution you'd like A label attribute to the plant. Could be an Array like ['indoor', 'fruit'] or ['healthy', 'vegetable']

Describe alternatives you've considered n/a

Additional context Could be queried like this (for Indoor and Fruit):

https://trefle.io/api/v1/plants?token=TOKEN&query=indoor&query=fruit