Hi!
Is there a way in WireMock to record only the last request/response for the same method and URL - so each new matching request overwrites the previous recording? Right now I either get all duplicates or only the first one; I’d like the opposite: keep only the latest. Many thanks!
t
Tom
09/12/2025, 1:37 PM
That’s not possible to do at the moment. The closest you can get is probably to enable scenarios on duplicates, then to delete all but the last stub and strip out the scenario config from the last one.
m
Mina Medic
09/15/2025, 7:53 AM
Ok, I have done that. I was just wondering if there is something that I didn't check. Thanks!