July 2017
Beginner to intermediate
358 pages
10h 54m
English
The DELETE verb is used when we want to remove a resource, generally we would pass the ID of the resource as part of the path rather than in the body of the request. This way, we have a consistent method for updating, deleting, and retrieving a document.
Request:
DELETE /v1/cats/12343 HTTP/1.1 Content-Type: application/json Content-Length: 0
Response:
HTTP/1.1 204 No Body Content-Type: application/json Content-Length: 0
Read now
Unlock full access