Question

API has or version number indicating whether the data has changed

Posted March 28, 2019 948 views
API

I would like to know if it is possible for the API team to add a version number or hash for each of the lists (regions, sizes, images). I have commands for refreshing and updating my database from the DO API, but perhaps this could be more controlled if there is some indication that a change in the data actually occurred. Even a “seconds since epoch” time stamp would be enough to know that an update is required.

Hitting the DO API in real time when someone is selecting a region, then size, then image is really slow, and not really necessary. Hence my local caching of the data.

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

×
1 answer

Greetings!

While this is not currently something that we do, it may be a great idea to post on our idea portal to see if others would like to see this as well:

https://ideas.digitalocean.com/

When we make changes to our API it is very important to us that we do so in a way that is non-destructive, so as to not break anyone’s existing workflows. For the most part, we do not receive complaints that workflows have been broken due to API changes as a result of our careful attention to any changes made.

Jarland

Submit an Answer