Abstract restfull controller