Leave a Reply

12 Comments on "Spring Boot Quick Start 20 – Implementing Update and Delete"

Notify of
avatar

Sergey Orlovich
Guest
Sergey Orlovich
1 month 12 days ago

You're mistaken in using PUT for update. PUT is used for insert in RESTful api, and POST is for update. Nice tutorial.

Priten Vora
Guest
Priten Vora
27 days 1 hour ago

Actually, it is mentioned in the stackoverflow page that If client decides the URL of the object being created then it is okay to use PUT otherwise we can use POST for resource creation. However using POST for update is not the REST way to go.

Rama41222
Guest
Rama41222
27 days 3 hours ago

@sergey lol You must be dreaming

Priten Vora
Guest
Priten Vora
1 month 11 days ago
Avijit Chatterjee
Guest
Avijit Chatterjee
3 months 21 days ago

Thanks a lot for this great tutorial, it was a huge help. It would be great if you could add a section on integrating Swagger into this app.

anup kumar
Guest
anup kumar
3 months 28 days ago
Very nice videos , very well explained :)One quick question : Can you please discuss the scenarios of thread saftey ?Scenario i would like you to cover and explain : 2 parallel Put request comes in and at the same time the Get Request comes in too .. Put Request 1 : {id = Java , XYZ…. }Put Request 2 : {id = Java , PQR….}Get Request 1 : {/topics/{java} }what would be the output ? and how thread saftey is handled ? … I am going through your tutorials now , once i am done will try this out… Read more »
Priten Vora
Guest
Priten Vora
1 month 10 days ago

Ideally you should get {id = Java , PQR….}

Vishwanath Gajavelly
Guest
Vishwanath Gajavelly
1 month 14 days ago

this is interesting, did you figure out anything reg the synchronization Anup ? Thanks..

shalini lakshkar
Guest
shalini lakshkar
4 months 15 days ago

These tutorials are pretty simple… very well explained.. Thanks.

Charlie Draper
Guest
Charlie Draper
4 months 20 days ago

great tutorial – thank you!

Borys Nikolenko
Guest
Borys Nikolenko
5 months 8 days ago

HelloYour lessons are very nice, thank you for that.Till that moment I've got one question please :)What for do you use empty return statement in updateTopic() void method in TopicService.java file?

Siby Mathew
Guest
Siby Mathew
5 months 3 days ago

Hey Borys…That's because after updating the element with the correct Id you can stop looping through. Similar to a break; to avoid unnecessary further looping.

wpDiscuz