How to get the body of the http request in the API

0

How do I access the body content of the request sent by the client? For example:

@Override
@GET
@Path("/mypath")
public Response myMethod() {
    System.out.println("Conteúdo da requisição: " + request.body);

    return null;
}
    
asked by anonymous 14.03.2017 / 13:53

0 answers