The filter logic is duplicated in each function calling an endpoint, which makes it difficult to maintain.
We will create a base EntityApiRequest with abstractmethod to_filters. For each APIClient, we will create a ClientApiRequest class which will inherit from the EntityApiRequest and which will be used in the calls of the different functions.
The filter logic is duplicated in each function calling an endpoint, which makes it difficult to maintain.
We will create a base EntityApiRequest with abstractmethod to_filters. For each APIClient, we will create a ClientApiRequest class which will inherit from the EntityApiRequest and which will be used in the calls of the different functions.