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.GenericAPIViewAdaptation of DRF CreateAPIView
-
class
rest_framework_mongoengine.generics.GenericAPIView(**kwargs)¶ Bases:
rest_framework.generics.GenericAPIViewAdaptation of DRF GenericAPIView
-
class
rest_framework_mongoengine.generics.ListAPIView(**kwargs)¶ Bases:
rest_framework.mixins.ListModelMixin,rest_framework_mongoengine.generics.GenericAPIViewAdaptation of DRF ListAPIView
-
class
rest_framework_mongoengine.generics.ListCreateAPIView(**kwargs)¶ Bases:
rest_framework.mixins.ListModelMixin,rest_framework.mixins.CreateModelMixin,rest_framework_mongoengine.generics.GenericAPIViewAdaptation of DRF ListCreateAPIView
-
class
rest_framework_mongoengine.generics.RetrieveDestroyAPIView(**kwargs)¶ Bases:
rest_framework.mixins.RetrieveModelMixin,rest_framework.mixins.DestroyModelMixin,rest_framework_mongoengine.generics.GenericAPIViewAdaptation of DRF RetrieveDestroyAPIView
-
class
rest_framework_mongoengine.generics.RetrieveUpdateAPIView(**kwargs)¶ Bases:
rest_framework.mixins.RetrieveModelMixin,rest_framework.mixins.UpdateModelMixin,rest_framework_mongoengine.generics.GenericAPIViewAdaptation 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.GenericAPIViewAdaptation of DRF RetrieveUpdateDestroyAPIView
-
class
rest_framework_mongoengine.generics.UpdateAPIView(**kwargs)¶ Bases:
rest_framework.mixins.UpdateModelMixin,rest_framework_mongoengine.generics.GenericAPIViewAdaptation of DRF UpdateAPIView