I am having trouble seeing how i can read form the stream when its being read up in the chain somewhere.
here is my function
@POST
@Consumes(["application/json"])
public Response addGift(@Context HttpServletRequest request,@QueryParam("from") int from,
@ApiParam(value = "Indiviual Gift object to be inserted", required = true) posiba.api.v1.IndividualGift gift) {
return Response.ok().entity("{\"Submit\": \"Success\"}").build();
}
I have a json data POST (payload , body) and a queryparam(for testing)
the request variable can access the params but when i try and read from the stream
stream.available() returns 0 and if i try and get anything out of the stream it closes it.
is there a way to inline override the input stream reader so whatever is up the chain does not read from it and i can use it locally.