added getEndpointByType method so that one method can pull from API