Odumosu Matthew Babatunde
Odumosu Matthew Babatunde
### **Summary**: This pull request represents a major restructuring of the entire solution to adhere to `Clean Architecture principles,` creating a more organized and maintainable codebase. The changes are extensive...
### Description: I refactored the `GetAllFoods` controller method to achieve a _cleaner and more maintainable_ codebase. **Business logic** for retrieving _food items, creating pagination metadata, and building links_ has been...
### Description: I introduced the `FoodService` class responsible for **handling business logic** related to food items. This class encapsulates the operations` for retrieving food items, creating pagination metadata, and building...
### Description: I Introduced the `IFoodService` interface to establish a clear contract for the `FoodService` class. This allows for better code organization, adherence to the Dependency Inversion Principle, and facilitates...
### Issue Description **Problem:** In the `/api/v1/foods/{id}` endpoint, we currently have methods with similar names (GET, PUT, DELETE, PATCH) which can be confusing for developers, especially those who are new...