From 6b44a71de9b1fddf848638493565a93c3e488dc2 Mon Sep 17 00:00:00 2001 From: leeturner Date: Mon, 17 Jun 2024 17:50:38 +0100 Subject: [PATCH 1/2] Add the new request.id to the docs --- _docs/response-templating.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/_docs/response-templating.md b/_docs/response-templating.md index 369ea322..df1095bd 100644 --- a/_docs/response-templating.md +++ b/_docs/response-templating.md @@ -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 x.x.x) + `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`. From a780f85ed607fa9fdf5a11a345a97b21b4b45e77 Mon Sep 17 00:00:00 2001 From: leeturner Date: Thu, 20 Jun 2024 09:44:21 +0100 Subject: [PATCH 2/2] Update the version number that this will be released in --- _docs/response-templating.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/_docs/response-templating.md b/_docs/response-templating.md index df1095bd..52c32fd6 100644 --- a/_docs/response-templating.md +++ b/_docs/response-templating.md @@ -181,7 +181,7 @@ 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 x.x.x) +`request.id` - The unique ID of each request (introduced in WireMock version `3.7.0`) `request.url` - URL path and query