Plain Vanilla Filtering
To filter any view, override its get_queryset method to return a filtered query set
class HREmployees(generics.ListAPIView):
def get_queryset(self):
return Employee.objects.filter(department="Human Resources")
All the API functions will then use t...