This message was deleted.
# wiremock-java
s
This message was deleted.
r
You could just use priorities - create your proxy with priority 10, then any other stub will default to priority 5 so will be chosen ahead of the proxy
Then you don't ned to worry about excluding, you can use a general regex pattern for the proxy and a more specific one for the real stubs.
We often develop in WireMock Cloud using an
ANY /.*
proxy at priority 10 to the real API and then adding new functionality in specific stubs.
d
Let me try this out and I will ask if I have any following question. Thank you so much.
Priority works perfectly.
👍 1
Btw, any thoughts on the ticket that I created - https://github.com/wiremock/wiremock/issues/2068
r
I think this effectively already exists... just let me have a look
Hmm - there is a
notMatching
regex inverter but there's no way to apply it to a url at the moment, only query params, headers & the body. Seems a reasonable ask; will look into it.