Problem description
Some comments on the API content that I cam across
Possible evolution
- MiB, GiB: I was not familiar with these terms and looked on Internet for explanations: https://www.techtarget.com/searchstorage/definition/mebibyte-MiB. Question: do we really need the technical precision of the binary system in this API or would the decimal system be enough ? the article states that the binary system is not much used in commercial contexts, so the decimal system might be more developer-friendly". Personally I heve never seen any user data plans expressed in the binary system. If you keep it It would be good to add an explanation and a link to the ISO/IEC definition or https://en.wikipedia.org/wiki/Binary_prefix
- event type names: from the event type only it is not obvious if they concern the remaining data volume or the used data volume: for the 50/75/90, it would be more clear to rename them to "data-used-90-percent", etc. (iso "data-90-percent".
- the check API is not fully clear. One part seems to be about checking that a certain volume is still available (which has nothing to do with thresholds as such) an which is already covered by the /retrieve API, while another part seems to want to check the usage versus the thresholds somehow. In several descriptions a "requested threshold" is mentioned, while the threshold is not a parameter/entity in the request body.
- is the DataVolumeCategory really needed ? Using an ENUM seems to limit the usability of the API, as well as being a bit arbitrary), while just a unit and an integer value (as done in volumeToCheck) could be enough and more flexible, so just a schema called "DataVolume" could serve both purposes. For the unit, also the above "MiB/GiB" question applies (as opposed to more usual "MB"/"GB" units)
- customer: lines 25 and 26 should refer to the "API consumer", not the "customer". In line 5, I would rephrase "the customer's data usage" to "an end-user's data usage"
Problem description
Some comments on the API content that I cam across
Possible evolution