rahuldutta
5 years agoOccasional Contributor
Validating request parameter in VS request with datasource property
Hi,
I want to validate the query parameter from the incoming request to my virtual service with an excel datasource property and then dispatch a response if they match. Can someone suggest how to that? If this would require script style of dispatching, then what is the code to validate that the query param is part of the propery values in the excel?
Please send me your remarks. Thanks!
Hi rahuldutta,
As far as I understand, you'll need to write a custom script to make it possible. Please take a look at the following sample - I think it should help you:
A Dispatching script to get responses based on the values in Request Body