The delete functionality

Items can be deleted from the database by sending the DELETE method request to the http://localhost:8080/api/cars/[carid] endpoint. If we look at the JSON response data, we can see that each car contains a link to itself and that it can be accessed from the _links.self.href node, as shown in the following screenshot:

The following steps demonstrate how to implement the delete functionality:

  1. Here, we will create a button for each row in the table. The accessor of the button will be _links.self.href, which we can use to call the delete function that we will create soon. But first, add a new column to the table using ...

Get Hands-On Full Stack Development with Spring Boot 2 and React - Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.