basic rest request method base functions