Closed atkaksoy501 closed 7 months ago
The modification in RetreatsController.java
streamlines the API's response mechanism for retrieving retreats by a department's ID. By directly returning a list of retreats and employing an annotation to specify the HTTP status, the update enhances clarity and efficiency in the code.
File | Change Summary |
---|---|
.../api/controllers/RetreatsController.java |
Changed getRetreatsByDepartmentId to return List<GotRetreatByDepartmentIdResponse> directly and added @ResponseStatus(HttpStatus.OK) |
🎉🐰✨
In the land of code, where the curly braces nest,
A tiny change sprouts, above the rest.
No more wrappers to hide its gleam,
Just a list of retreats, and a status beam.
So hop along, with joy and cheer,
For cleaner code, now draws near.
🎉🐰✨
Summary by CodeRabbit