Hi everyone
I have to mock a rest request (PUT) where the body content is a json content
stubFor(
put(
urlPathMatching(url_match_path)).
withRequestBody(my_json_content).
willReturn(
aResponse().
withStatus(200).
withHeader("Content-Type", "application/json").
withBodyFile(xml_path)
)));
I think the red highlighted is not the right solution.
Could you help me, please, for findign the right code for my target.
Thanks in advance to all for your support.
Best regards.
Giorgio