Use django-filter in Django Rest Framework
For a REST list API, filtering and sorting are the basic requirements. Using django-filter, we can add these functions with only a few lines of codes.
For example, if we have a model as follows,
class Product(models.Model):
name = models.CharFiel...
stingh711.hashnode.dev2 min read