request method using rest-client