When specifying the apiVersion if entered incorrectly will throw exception with unhelpful error message (i.e., resource does not exist) which make sense since its directly being used in the url to generate the request.
My suggestion is either:
- Input Validation, if the
v is missing as the prefix throw exception stating so
- automatically insert the
v prefix if missing (and log a warning maybe?)
- change the data type to a decimal to make it clear its a numeric and not as nebulous as a string.
When specifying the
apiVersionif entered incorrectly will throw exception with unhelpful error message (i.e., resource does not exist) which make sense since its directly being used in the url to generate the request.My suggestion is either:
vis missing as the prefix throw exception stating sovprefix if missing (and log a warning maybe?)