adding user api and representer