Hi,
Has anybody tried the inverse regular expression with urlPattern and urlPathPattern? I wanted to configure those in the proxies so that all requests are routed to the proxy except for the ones that I configure as the mock.
For example, I have two mocks at following endpoints
/endpoint/customers/abc123
/endpoint/customers/abc456
For requests that come for the above paths (/endpoint/customers/abc\d+), I want the mocks to be used. For anything else, it can routed to the proxy. Here is how I am trying to configure the proxy.
{
"request": {
"method": "ANY",
"urlPattern": "/endpoint/customers/(?!abc\\d+)"
},
"response": {
"proxyBaseUrl": "http://real-customer-endpoint/api",
"proxyUrlPrefixToRemove": "/endpoint"
}
}
But this doesn't seem to work. Am I missing something or this is not possible?
Thanks,
Deepak Shakya