Efficiently Handling Multiple Filter-Based API Calls in FastAPI
I am building a web application using HTML, CSS, Javascript and FastAPI (Python). The application has a dashboard page where users can see data and apply multiple filters to refine the displayed information. Problem Statement: I have around 100 different filters, and I initially considered creating a separate API endpoint for each filter. However, this approach is inefficient because: Too many API endpoints need to be maintained. Frontend complexity increases as each filter requires a separate API call. Performance issues may arise due to multiple simultaneous API calls. My Current Attempt: I am looking for a way to handle all filters efficiently using a single API endpoint while dynamically applying filters based on user input. And I want all this without need to code for frontend for each view. Any python library or any tool which will help me ?