Forum Discussion

Vib's avatar
Vib
Occasional Contributor
6 years ago

Adding additiona query parameters to the request via ServiceV option “Route Non Virtualized Request"

We are facing issue with the routing scenario of the ServiceV option “Route Non Virtualized Request”. As per our requirement once the virtual service receives the request, we have to add an addition...
  • Vib's avatar
    Vib
    5 years ago

    I was able to move ahead by adding the below event 

     

    MockRunListener.beforeRoute and added the below script, the routing is working as expected.

    method.setURI(URI.create(method.getURI().toString() + "&enviornment=ENV1"))

     

    Thanks Temil for providing the solution