API layer for dynamic filtering and sorting

API layer for dynamic filtering and sorting