@classmethod
    def index(cls, value):
        return cls.ALL.index(value)
Decorator to mark a method as an API endpoint for later registration.
dataset/ETHPy150Open openstack/nova/nova/objects/fields.py/ResourceClass.index--crossover with--dataset/ETHPy150Open django-ddp/django-ddp/dddp/api.py/api_endpoint