patrickschweize
10 years agoNew Member
How to access query string in ServiceV Dispatch Script?
I would like to moke the following github api request and use a ServiceV Dispatch Script to return different responsese depending on the query parameter: /search/users?q=joe
I tried the following inside the dispatch script, but always get null as a result:
// Match based on query parameter
def queryString = mockRequest.getHttpRequest().getQueryString();
How to access query string in ServiceV Dispatch Script?