refactor interfaces RESTFull