Skip to content

Commit

Permalink
Merge pull request #291 from wiremock/add-the-request-id-to-the-templ…
Browse files Browse the repository at this point in the history
…ate-model

Add the request id to the template model
  • Loading branch information
leeturner authored Jun 21, 2024
2 parents df50329 + a780f85 commit cfd5f25
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions _docs/response-templating.md
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,8 @@ wm.stubFor(get(urlPathMatching("/static/.*"))

The model of the request is supplied to the header and body templates. The following request attributes are available:

`request.id` - The unique ID of each request (introduced in WireMock version `3.7.0`)

`request.url` - URL path and query

`request.path` - URL path. This can be referenced in full or it can be treated as an array of path segments (like below) e.g. `request.path.3`.
Expand Down

0 comments on commit cfd5f25

Please sign in to comment.