refactored rest mapping, added /rest as prefix