Validating params of APIs using KVM

Not applicable

Hi I'm new in Apigee and I would like to ask for your thoughts, if storing mandatory and optional params in KVM for request params validation is fine? Or validation of request params should be validated in server?

I'm just concern what if application or backend will change params for an API, I will also update the input validation template in KVM. Any thoughts?

0 1 178
1 REPLY 1

KVM will fit the purpose if you want to manage parameter validation based on templates. KVM makes it a configurable value and avoids code rework and redeployment.

KVM isn't suitable when the number of values is very high and so it should be ok in your case.

You need to weight in how frequently the validation logic will change. If it isn't frequent, it may not be worth converting it to a template.