In this video, learn how to add the proper code in order to get a functional DELETE endpoint for connecting your data to API requests.
- [Instructor] So now let's go ahead and test … our delete method from our backend, … just to make sure it works properly. … So what we need to do first is figure out … which item that we want to delete. … So again we would do a get call, so let's go ahead … and do a get for our contacts, … and then figure out which item we want to delete. … So for example if we want to delete the third one here … we just need to double click inside of Postman … but if you're inside of React or any other framework, … you would get the data from … underscore links.self.href and then get this URL here … and then through this URL you could literally … just do a delete call without any parameters … and this would delete the data, … and this is exactly what we're going to do. … Let's go ahead and delete the data, … and this is fairly easy and probably the easiest call … to make to a backend, so let's say for example, … we've done this delete call, let's go ahead … and do a get of all our contacts, … and now we should only have three people, …
- Reviewing the platforms
- Initializing the project
- Defining the first model class
- Setting up the JPA repository
- Building the endpoints for the HTTP class controller
- Creating the front-end components
- Styling components
- Connecting component to the server
- Adding server controllers
Skill Level Intermediate
1. Initial Setup
2. Spring Models
3. HTTP with Spring
4. Basic Frontend with React
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.