You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Styleguide mentions Inherit from the most simple APIView or GenericAPIView as a rule when creating new APIs. Do you have any examples or recommendations for using GenericAPIView?
It seems like it would be useful for using rest_framework's DEFAULT_FILTER_BACKENDS and DEFAULT_PAGINATION_CLASS settings, especially in an existing project that defaults to those elsewhere.
I'm curious whether you have a strong preference for explicitly passing filters and pagination classes in every view where they're used, or if you have some means of factoring out those common list view needs, whether using GenericAPIView and rest_framework settings or otherwise.
Thanks!
The text was updated successfully, but these errors were encountered:
The Styleguide mentions
Inherit from the most simple APIView or GenericAPIView
as a rule when creating new APIs. Do you have any examples or recommendations for usingGenericAPIView
?It seems like it would be useful for using rest_framework's
DEFAULT_FILTER_BACKENDS
andDEFAULT_PAGINATION_CLASS
settings, especially in an existing project that defaults to those elsewhere.I'm curious whether you have a strong preference for explicitly passing filters and pagination classes in every view where they're used, or if you have some means of factoring out those common list view needs, whether using
GenericAPIView
and rest_framework settings or otherwise.Thanks!
The text was updated successfully, but these errors were encountered: