AnsweredAssumed Answered

Make request parameter optional or ignore them if not sent

Question asked by sharath.kumar on Feb 25, 2016
Latest reply on Mar 2, 2016 by sharath.kumar



I have a scenario where I need to virtualize a Search Product HTTP service which has 15 search parameters. User can search using any parameter combination and none of them is mandatory in search.

Ex: GET /v1/search/products?color={color}&size={size}&type={type}&country={country}.. so on


It will be nightmare to create VS for all possible combinations. So, I was wondering if it is possible to make the parameter as optional after  '/v1/search/products?' so that I can send same mock response for all combination of searches.


Is this possible? Please help.


I'm using DevTest version - 9.0 Workstation


Thank you.