@classmethod
def get_collection_endpoint(cls):
    """
        Get the relative path to the API resource collection

        If self.collection_endpoint is not set, it will default to the lowercase name of the resource class plus an "s" and the terminating "/"
        :param cls: Resource class
        :return: Relative path to the resource collection
        """
    if cls.Meta.collection_endpoint is not None:
        if cls.Meta.collection_endpoint.endswith('/'):
            return cls.Meta.collection_endpoint
        else:
            return cls.Meta.collection_endpoint + '/'
    else:
        return cls.__name__.lower() + 's/'
