Match only url first and then the request body using custom matcher

53 views
Skip to first unread message

Vaishnavi Singh

unread,
Jun 30, 2021, 10:19:58 PM6/30/21
to wiremock-user
Hey all! I'm working on a project and want to implement stateful request validation.
For that, I want to first match the url of the stub with the url in the postman and if it matches then use custom matcher for request body validation. Is this possible?
Thanks in advance

aaron...@willowtreeapps.com

unread,
Jul 1, 2021, 9:23:22 AM7/1/21
to wiremock-user
You can easily combine standard and custom request matchers in the same stub/mapping. Look at the example in this documentation for more info.

Reply all
Reply to author
Forward
0 new messages