- [Narrator] Now that I've created a new resource…through the REST API, I want to make a change to it.…I want to change the title,…cause I don't think the title fits exactly.…Depending on how the REST API is set up,…we could either use POST or PUT…or PATCH to make this change because in some REST APIs,…POST, PUT, or PATCH are exactly the same…and in some REST APIs they are quite different.…Now, the only way I can really figure out which tool to use…is by going and asking the REST API itself.…
Over here on the left hand side…we already have a GET request for the singleton resource 15.…And to find out what I can do with this resource,…I'll now again send an OPTIONS request.…This will give me a full breakdown.…And here you see we can send a GET, POST,…PUT, PATCH, and DELETE requests.…So I'll make a search and say PUT…and when I go to the second entry…you'll see that here in the Wordpress REST API…the POST, PUT, and PATCH methods…are actually treated as the same.…
So they all have the same exact functionality.…That means inside the scope of Wordpress REST API,…
- 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.