Server-side pagination
Currently all the search/list endpoints return the entire list, which is not optimal.
The idea would be to have a PaginatedDTO<T>
with attributes such as data: T[]
, page: number
, total: number
, etc where T
.
For the queries, they should also be generic, and handled using guards/validators (e.g., to set default values total: 50
).