DiscoTrayStudios / iseegreen

an ASP.NET website for cataloging plants and their Latin names
MIT License
0 stars 2 forks source link

Refactor API to make less calls #24

Open souvorinkg opened 4 hours ago

souvorinkg commented 4 hours ago

Now that the API is working, we shouldn't make an API call every time we want some data, because we often look at the same trees over and over. Instead, let's check the DB for a valid description, then make an API call if it's not there. When we get a new API, we can write out the information we need to the DB for future calls.

souvorinkg commented 4 hours ago

Step #1: save the perenual ID's to the DB.