Skip to content

Conversation

@jbey251
Copy link
Contributor

@jbey251 jbey251 commented May 5, 2025

No description provided.

package com.codedifferently.lesson26.web;

import java.util.List;

Copy link
Contributor

Choose a reason for hiding this comment

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

Remove empty line, you should only be modifying the MediaItemsController

}

@DeleteMapping("/items/{id}")
public ResponseEntity<Void> deleteItem(@PathVariable String id) {
Copy link
Contributor

Choose a reason for hiding this comment

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

This method works well. I recommend changing the @PathVariable type from String to UUID to leverage Spring’s built-in validation and ensure invalid UUIDs are rejected automatically with a 400 Bad Request

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