Add docstring for rest_request, uploading_request