Please check the type of change your PR introduces:
[ ] Bugfix
[X] Feature
[ ] Code style update (formatting, renaming)
[ ] Refactoring (no functional changes, no api changes)
[ ] Build related changes
[ ] Documentation content changes
[ ] Other (please describe):
What is the new behavior?
An option was added to user the display URL variable parser with a regular expression, to parse only a part of the URL as part of your response.
# The display URL of the current request is parsed with a regular expression and the result of the regex is written to the response.
- id: dynamic-display-url-regex-example
conditions:
method: GET
url:
path:
regex: /dynamic-display-url-regex/users/(.*)/orders
response:
enableDynamicMode: true
text: "User ID: ((display_url:'\/users\/([0-9]{3})\/orders'))"
headers:
X-Header: "((display_url:'\/users\/([0-9]{3})\/orders'))"
priority: 0
Pull request type
Please check the type of change your PR introduces:
What is the new behavior?
An option was added to user the display URL variable parser with a regular expression, to parse only a part of the URL as part of your response.
Does this introduce a breaking change?