Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GenericAPIView and filters/pagination #168

Open
scottBowles opened this issue Feb 7, 2025 · 0 comments
Open

GenericAPIView and filters/pagination #168

scottBowles opened this issue Feb 7, 2025 · 0 comments

Comments

@scottBowles
Copy link

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant