change user service rest call to curl