slight refactoring of rest utility method - now we have a better config some parameters are useless, in particular a string so removing it