**Problem:** Endpoints like `GET /api/exercises` return unpaginated lists, leading to memory exhaustion at scale. The API lacks a version prefix. **Acceptance Criteria:** - [ ] Prefix all controllers with `/api/v1/`. - [ ] Update `ExerciseController` and `WorkoutController` GET endpoints to accept `Pageable` parameters and return `Page<T>` responses. - [ ] Refactor the `ExerciseController` filtering logic to combine (AND) filters rather than prioritizing one over the other.
Problem: Endpoints like
GET /api/exercisesreturn unpaginated lists, leading to memory exhaustion at scale. The API lacks a version prefix.Acceptance Criteria:
/api/v1/.ExerciseControllerandWorkoutControllerGET endpoints to acceptPageableparameters and returnPage<T>responses.ExerciseControllerfiltering logic to combine (AND) filters rather than prioritizing one over the other.