code: def get_api_endpoints(self, apiname):
          
          try:
              return self.services_by_name\
                      .get(apiname)\
                      .get("endpoints")\
                      .copy()
          except AttributeError:
              raise Exception(f"Couldn't find the API endpoints")
docs: Returns the API endpoints