add api_request method in application controller