@POST @Consumes("application/json") @Produces("application/json") public SignUpResponse saveUser(UserDetails userDetails) { System.out.println(userDetails.toString()); SignUpResponse signUpResponse = userDetailsBO.saveUser(userDetails); return signUpResponse; }
public SignUpResponse saveUser(final UserDetails userDetails) { String token = getUUID(); userDetails.setToken(token); signUpResponse.setToken(token); System.out.println("Token is " + token); userDetailsDAO.saveUser(userDetails); return signUpResponse; }