def get_endpoint(cls):
        """
        Accessor method to enable omition of endpoint name.

        In general we want the class name to be translated to endpoint name,
        this way unless otherwise specified will translate class name to
        endpoint name.
        """
        if cls.endpoint is not None:
            return cls.endpoint
        s1 = re.sub('(.)([A-Z][a-z]+)', r'\1_\2', cls.__name__)
        return cls.sanitize_ep(
            re.sub('([a-z0-9])([A-Z])', r'\1_\2', s1).lower(),
            plural=True
        )
Accessor method to enable omition of endpoint name.

        In general we want the class name to be translated to endpoint name,
        this way unless otherwise specified will translate class name to
        endpoint name.