I am using rest assured for the post request containing the JSON body
My post request code is :-
RestAssuredResponseImpl stat=
(RestAssuredResponseImpl)given().
header("Accept", "application/json").
header("Content-Type", "application/json").
header("userid", "131987”).
queryParam("name", "Test12").
queryParam("title", "Test127123").
queryParam("contactEmail", “abc@gmail.com").
queryParam("description", "testing purpose").
when().post("").thenReturn().getBody();
I am getting the following error:-
{"errors":{"error":{"code":400,"type":"HttpMessageNotReadableException","message":"Required request body content is missing: org.springframework.web.method.HandlerMethod$HandlerMethodParameter@8e9299c"}}}
Kindly help....