Added method to make raw GET/POST API call to API endpoint