mirror of
https://github.com/wiremock/WireMock.Net.git
synced 2026-01-11 14:20:29 +01:00
Match route parameters to types #510
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 @Twinki14 on GitHub (May 6, 2023).
Originally assigned to: @StefH on GitHub.
Given I have a path like
/site/<guid>/org, is there an easier syntax I could use instead of a regex/wild card? like/site/{{guid}}/orgor/site/{{long}}/org, it'll match the route based on the type@StefH commented on GitHub (May 6, 2023):
@Twinki14
The easiest way to achieve this is use a regular expression.
^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-5][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}$^[0-9]{1,19}$@StefH commented on GitHub (May 12, 2023):
@Twinki14
I'm closing this question for now.