Skip to content

Conversation

@Boyce007
Copy link
Contributor

@Boyce007 Boyce007 commented Oct 6, 2025

Still a work in progress, but I was able to finish the GET mapping for get by id, and the post mapping works in Postman, but gets an error when I run the tests.
I was able to finish the post mapping add item method. I got a little confused about how the createRequests and mediaItemRequests classes worked and where they should be used.

…s logic using library to get the media item by id
…s check if the added item is null to return an error status
@Boyce007 Boyce007 closed this Oct 6, 2025
@Boyce007 Boyce007 reopened this Oct 6, 2025
@Boyce007
Copy link
Contributor Author

Boyce007 commented Oct 6, 2025

My pr added stuff from another assignment, not sure how it happend, working on a fix now

Copy link
Contributor

@anthonydmays anthonydmays left a 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: Daniel Boyce
Date: 10/7/2025

Feedback

The submission demonstrates a good understanding of the functional requirements. The student has implemented the necessary endpoints in the MediaItemsController.java file, including GET, POST, and DELETE operations. The logic for handling media items by ID is correctly implemented, and the use of ResponseEntity for HTTP responses is appropriate. However, there are some discrepancies compared to the sample solution, such as the use of Optional and the handling of exceptions, which could be improved for consistency and clarity.

On the technical side, the code is mostly well-formatted and syntactically correct. The use of imports and annotations is appropriate. However, there are minor issues, such as the unnecessary addition of a newline in MediaItemRequest.java, which could be avoided to maintain clean code. Additionally, the use of wildcard (<?>) in the addItem method could be more specific to improve type safety.

Overall, the submission meets most of the requirements but could benefit from slight improvements in consistency and adherence to best practices.


This is an automated preliminary review. Please review and adjust before finalizing.

@anthonydmays anthonydmays reopened this Oct 8, 2025
private int runtime;

public static MediaItem asMediaItem(MediaItemRequest request) {

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Extra line break

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants