Hi everyone. I'm trying to match a header with a b...
# general
v
Hi everyone. I'm trying to match a header with a body request attribute. I've tried it:
Copy code
<http://WireMock.post|WireMock.post>(WireMock.urlPathTemplate(PATH))
    .atPriority(1)
    .withPathParam("instrumentReferenceId", matchingJsonPath("$.requestId"))
    .willReturn(WireMock.badRequest()));
But, I get this response (see image): There is anyway to match a path param with body request attribute? Can I use matchingJsonPath and withPathParam together?