CacheControl cc = new CacheControl();
cc.setNoCache(true);
User user = auth.getUser();
String username = (user != null) ? user.getFullName() : " unknown ";
ResponseBuilder builder = Response.ok("{\"result\":\"" + username + " PUT!\"}", "application/json");
return builder.cacheControl(cc).build();
}
@POST
public Response doPost(@Context HttpServletRequest request, @PathParam("params") String params) throws URISyntaxException {
InitDataObject auth = init(null, true, request, false);