Hi guys, I'm trying to access the path parameter i...
# help
d
Hi guys, I'm trying to access the path parameter in webhook serveEventListener. Can anybody help with same
l
Hi, where are you trying to access it from ? Do you mean you are trying to set the value from a templating expression?
d
Accessing same from current request to its webhook . The expression is {{request.pathSegments.[7]}}
l
If you are trying to access parts of the request from the webhook, you need to use
originalRequest
instead of
request
You can read more about that here - https://wiremock.org/docs/webhooks-and-callbacks/#using-data-from-the-original-request
d
Thanks for highlighting that @Lee Turner, it really helped me
l
No problem.
🎉 1