From the course: Building Full-Stack Apps with React and Spring

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

PUT endpoint

PUT endpoint

From the course: Building Full-Stack Apps with React and Spring

Start my 1-month free trial

PUT endpoint

- So the next step is to be able to update a specific contact. So the way to do this is to basically first figure out which contact we want to update. So, if we go back to getting a list of contacts first, we would do a get call and then API/contact and do a send, and then we would get the list of contacts. So, if we were to update any of those contacts, lets say the third one, in our array we would have several objects which would be out contact, and inside of that object we would have the underscore link self href, which would give us the actual URL that we need to use to update that contact. So, for example, if we wanted to update this guy here, we would literally, inside of postman, double click here and then do a PUT method. So, we would select in our methods here the PUT method and then make the proper changes to update the contact. So lets go ahead and do that. So first off, like when we do a post contact, we need to…

Contents