Skip to content
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

JdbcTemplate, updateCustomer and updateCustomerById #7

Open
hazartilirot opened this issue Apr 22, 2023 · 0 comments
Open

JdbcTemplate, updateCustomer and updateCustomerById #7

hazartilirot opened this issue Apr 22, 2023 · 0 comments

Comments

@hazartilirot
Copy link

Both methods shown in the first part of the course are verbose and consist of the unnecessary logic.

Whenever we work with an API, we have a documentation in which one can find endpoints and how payload should look like

In case of a PUT request there is no need in updating one of the fields since PUT would modifies the whole resource anyway.

What you do relates more to PATCH request. Whenever you just want to modify a part of the resource. Let's say, the name
{
"name": "john doe"
}

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

No branches or pull requests

1 participant