Hi all,
I'm trying to invoke a Rest Web Service in my Web Project .
This web service has different query string parameters that must be present in the endpoint URL only when necessary.
This is an example of a complete endpoint:
http://myrestwebservice.com/api/search/{object}?code=a&firstname=b&lastname=c
If {object} is "product" then I need to add the "code" parameter only.
For example:
http://myrestwebservice.com/api/search/product?code=a
If {object} is "employee" then I need to add the "firstname" and the "lastname" parameters.
I used the Restful Request Response operation for this purpose, but I'm not able to manage the query string parameters as desired.
How can I accomplish this?