Is there a functionality in wiremock to support dummy proxy
I have an api which sits outside my AWS vpc and we use spring resttemplate with proxy to call it. it works fine.
Now for testing purpose we have setup a wiremock server which sits within our vpc and it doesn't need proxy . So for calling mock apis we have created another resttemplate which doesn't use proxy and also written extra code just to make sure that if wiremock is enabled then use without proxy resttemplate otherwise go with proxy one.
How to solve this problem without doing ugly...