I've created POST method:
@POST
@Path("/test")
@JsonView({ TestView.class })
public Response test(@Valid String testParameter) {
return testController.doTest(testParameter);
}
In request I'm sending one parameter:
{
"testParameter": "Hello"
}
which I want to map to "testParameter" parameter in method. Class consumes / produces MediaType.APPLICATION_JSON
. There's any available annotation which can allow me to get this parameter?
Or do I have to remap the entire JSON(String) and get this value?