Validating the existence of query string parameters
So I'm relaying a call to an api which accepts a bunch of optional query params....
When i make the API call... I try to pass on the query params like so...
I'm looking for a simple in-line way to validate the existence of each param, and only then and only populate the value..
Does anyone know how to do this in a clean and efficient manner?
(NB: im not a javascript guru)
Thanks in advance
Solution:Jump to solution
Alternately you can use the API call to pass multiple parameter at one to your API
3 Replies
further more ... I have developed the following :
but is there a cleaner way?
Hi @Abrar, You can pass the query params from the request body as variable.
Solution
Alternately you can use the API call to pass multiple parameter at one to your API