Skip to content

Conversation

@pudkipz
Copy link

@pudkipz pudkipz commented Jan 28, 2025

Still working, not done

@pudkipz
Copy link
Author

pudkipz commented Jan 28, 2025

Mostly done (follows extension API spec), but may make some improvements later

return new ResponseEntity<>(new ErrorResponse("not found"), HttpStatus.NOT_FOUND);
}

if (movie.getTitle() != null)

Choose a reason for hiding this comment

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

You coiuld write a generic 'updateifnotnull()' functionh for this

if (customerToUpdate == null) {
return new ResponseEntity<>(new ErrorResponse("not found"), HttpStatus.NOT_FOUND);
}
if (customer.getName() != null)

Choose a reason for hiding this comment

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

See previous comment

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