This message was deleted.
# help
s
This message was deleted.
t
Hi @Carlos Villar, try adding
--local-response-templating
to your startup params
c
I tried, and now I get this:
Is it ok?
Copy code
{{request.body.message}}
extra info: when I put only {{request.body}}, y get this:
a
Using
{{request.body.foo}}
isn’t recommended -> https://wiremock.org/docs/response-templating/#the-request-model
request.body
- Request body text (avoid for non-text bodies)
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:
Copy code
{{jsonPath request.body '$.message'}}
c
It works perfect!!! Thank you very much to both of you, you are the best 🙌
🙌🏻 1