api request method rewebfactored