Generics

Adaptation of DRF generics.

You should use them instead of original DRF classes.

class rest_framework_mongoengine.generics.CreateAPIView(**kwargs)

Bases: rest_framework.mixins.CreateModelMixin, rest_framework_mongoengine.generics.GenericAPIView

Adaptation of DRF CreateAPIView

class rest_framework_mongoengine.generics.GenericAPIView(**kwargs)

Bases: rest_framework.generics.GenericAPIView

Adaptation of DRF GenericAPIView

class rest_framework_mongoengine.generics.ListAPIView(**kwargs)

Bases: rest_framework.mixins.ListModelMixin, rest_framework_mongoengine.generics.GenericAPIView

Adaptation of DRF ListAPIView

class rest_framework_mongoengine.generics.ListCreateAPIView(**kwargs)

Bases: rest_framework.mixins.ListModelMixin, rest_framework.mixins.CreateModelMixin, rest_framework_mongoengine.generics.GenericAPIView

Adaptation of DRF ListCreateAPIView

class rest_framework_mongoengine.generics.RetrieveDestroyAPIView(**kwargs)

Bases: rest_framework.mixins.RetrieveModelMixin, rest_framework.mixins.DestroyModelMixin, rest_framework_mongoengine.generics.GenericAPIView

Adaptation of DRF RetrieveDestroyAPIView

class rest_framework_mongoengine.generics.RetrieveUpdateAPIView(**kwargs)

Bases: rest_framework.mixins.RetrieveModelMixin, rest_framework.mixins.UpdateModelMixin, rest_framework_mongoengine.generics.GenericAPIView

Adaptation of DRF RetrieveUpdateAPIView

class rest_framework_mongoengine.generics.RetrieveUpdateDestroyAPIView(**kwargs)

Bases: rest_framework.mixins.RetrieveModelMixin, rest_framework.mixins.UpdateModelMixin, rest_framework.mixins.DestroyModelMixin, rest_framework_mongoengine.generics.GenericAPIView

Adaptation of DRF RetrieveUpdateDestroyAPIView

class rest_framework_mongoengine.generics.UpdateAPIView(**kwargs)

Bases: rest_framework.mixins.UpdateModelMixin, rest_framework_mongoengine.generics.GenericAPIView

Adaptation of DRF UpdateAPIView