Using the APIService class to show endpoint data