on the backend. I set a filter for my data. Where I can filter the dates from the REST API url.
class RainfallFilter(filters.FilterSet): start_date = DateFilt