My code is as follows:
@Path("/test")
public class Test {
@POST
@Path("/postSomething")
@Produces(MediaType.APPLICATION_JSON)
@Consumes(MediaType.APPLICATION_JSON)
public RestMessageResponse postSomething(JSONObject inputJSONObject) {
..do something
}
}
when I send a post request to the appropriate url, it doesn't reach the code.