I'm trying the following to extract an id from the request to use in the response:
`@ClassRule
public static HoverflyRule hoverflyRule = HoverflyRule.inSimulationMode(dsl(
service("my-site")
.post("/path/to/service").body(HoverflyMatchers.any())
.willReturn(success().body(
HttpBodyConverter.jsonWithSingleQuotes(
"{'validatedOrderItems' : '{{ Request.Body 'jsonpath' '$.callingSystem' }}'}"
)))
However, all I seem to get as a return-value is an empty string. Same seem to apply if I try to use Request.Method or most other options specified here: . The options that seem to work for me is Request.Path, which gives me the path with stripped </>.
Are there plans for a java-release with Request.Body templating support in the near future?
I'm trying the following to extract an id from the request to use in the response: `@ClassRule public static HoverflyRule hoverflyRule = HoverflyRule.inSimulationMode(dsl( service("my-site") .post("/path/to/service").body(HoverflyMatchers.any()) .willReturn(success().body( HttpBodyConverter.jsonWithSingleQuotes( "{'validatedOrderItems' : '{{ Request.Body 'jsonpath' '$.callingSystem' }}'}" )))
However, all I seem to get as a return-value is an empty string. Same seem to apply if I try to use Request.Method or most other options specified here: . The options that seem to work for me is Request.Path, which gives me the path with stripped </>.
Are there plans for a java-release with Request.Body templating support in the near future?