refector REST API of user