Join Morten Rand-Hendriksen for an in-depth discussion in this video DELETE, part of Learning REST APIs.
- [Instructor] At this point you've seen…how to discover all the functionality…of a REST API using options,…how to get resource collections…and singleton resources using get,…how to create resources using post,…and how to modify resources using put and patch.…And that brings us to the inevitable conclusion:…How to remove resources?…If I want to remove a resource,…I cans send a delete request to it.…This delete request must be sent…to the singleton resource URI to be successful,…and here again, I need the proper authorization header,…otherwise I won't be able to delete anything.…
The request itself is really simple,…just delete, then the URI to the resource,…singleton resource in this case,…and an authorization header.…Now, before I run this request, consider this:…I'm sending a delete request to a REST API…telling to delete the resource.…What do you think happens?…Let me show you.…Over here, on the live WordPress site,…you can see this is the post I want to delete.…It's currently sitting under published.…Now when I pass this delete request,…
- What is a REST API?
- Who or what interacts with REST APIs?
- Anatomy of a REST request
- HTTP status messages
- Request/response pairs
- GET, POST, and DELETE
Skill Level Beginner
HTTP Essential Trainingwith Morten Rand-Hendriksen50m 18s Beginner
1. REST API: Representational State Transfer Application Programming Interface
4. Request/Response Pairs
- 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.