656667686970717273
// Create link to self URI selfUri = uriInfo.getAbsolutePathBuilder() .path(request.getUsername()) .build(); Link self = new Link("self", selfUri); return Response.created(self.getUri()).entity(self).build(); }
565758596061626364
// Create link to self URI selfUri = uriInfo.getAbsolutePathBuilder() .path(Long.toString(id)) .build(); Link self = new Link("self", selfUri); return Response.created(self.getUri()).entity(self).build(); }