-
Notifications
You must be signed in to change notification settings - Fork 29
Enhance MediaItemsController with CRUD operations and error handling #748
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Enhance MediaItemsController with CRUD operations and error handling #748
Conversation
…and consolidating librarian methods
anthonydmays
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🎓 Automated Grading Report
Student: Ethan Hillman
Date: 10/7/2025
Feedback
The submission meets all functional requirements. The student correctly implemented the necessary HTTP endpoints in the MediaItemsController.java file, including GET, POST, and DELETE operations. The use of ResponseEntity and exception handling with ResponseStatusException is appropriate and aligns with best practices for handling HTTP responses and errors. The code changes ensure that the application can handle requests and responses effectively, demonstrating a clear understanding of APIs and the HTTP protocol.
From a technical perspective, the code is well-structured and follows Java conventions. The use of Optional and UUID for handling media items is appropriate, and the code is syntactically correct and well-formatted. The addition of null checks and exception handling enhances the robustness of the application. All unit tests and GitHub checks must have passed, as indicated by the lack of any noted issues in the submission details.
Overall, the submission is comprehensive and well-executed, fulfilling both the functional and technical requirements of the assignment.
This is an automated preliminary review. Please review and adjust before finalizing.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please revert
anthonydmays
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Checks are failing, please fix.
Introduce full CRUD functionality to the MediaItemsController, including create, read, and delete operations, while improving error handling for item retrieval. Refactor librarian methods for consistency and remove unused imports to streamline the controller.