Slackbot
09/12/2023, 2:53 PMTom
09/12/2023, 3:01 PM--local-response-templating
to your startup paramsCarlos Villar
09/12/2023, 3:13 PMCarlos Villar
09/12/2023, 3:14 PM{{request.body.message}}
Carlos Villar
09/12/2023, 3:25 PMAaron
09/12/2023, 3:27 PM{{request.body.foo}}
isn’t recommended ->
https://wiremock.org/docs/response-templating/#the-request-model
Instead, we’ll need to use the JSON helpers to make this a little easier. https://wiremock.org/docs/response-templating/#jsonpath-helper Something like the following should work:- Request body text (avoid for non-text bodies)request.body
{{jsonPath request.body '$.message'}}
Carlos Villar
09/12/2023, 3:36 PM