mirror of
https://github.com/wiremock/WireMock.Net.git
synced 2026-01-11 22:30:41 +01:00
Matching Path withe route parameter ? #470
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @mehdihadeli on GitHub (Nov 25, 2022).
Hi,
I have a get endpoint with a route parameter
id, how can I setup wiremock for accepting requested ID in my route and send corresponding response based on id?@StefH commented on GitHub (Nov 26, 2022):
In case you use json mapping, use this for the path request matching:
using :
/people/*)or
C# example:
Wildcard matcher example:
@mehdihadeli commented on GitHub (Nov 26, 2022):
@StefH Thanks