The HTTP DELETE method
The HTTP DELETE method
Assume that we want to delete the Sales department from the data storage. We send a DELETE request to our service with the following URI: http://www.packtpub.com/resources/departments/Sales
The sequence diagram for our DELETE request is shown in the following diagram:

The series of steps for the DELETE request is as follows:
A Java client makes a DELETE request to http://www.packtpub.com/resources/departments/Sales.
The server receives the request and lets the REST framework handle it. At this point, the server code executes the proper commands to delete the representation of the Sales department
Once completed, a response is sent back.
Add Note
Comments
Post a Comment