- [Instructor] All this theory is well and good;…but to really get REST APIs, you have to see one in action.…So in this chapter, I want to dig into the standard…request response pairs to show you how different types…of requests are made, what the responses look like…and, most importantly, what they do.…For these examples, I'll use my locally-hosted WordPress…site and the authorization header from the previous chapter.…Remember, requests and responses will vary…based on the configuration of the REST API you work with;…but the overall structure and behavior…will always be roughly the same.…
So while what you see here will not match…what you'll see interacting with other REST APIs,…the principles taught are the same.…The first step in working with a REST API is discovery.…For this, we'll use an options request.…In the WordPress REST API, the posts resource…is the resource collection for all the available…posts on the site; so let's start there.…I'll pass a request for options and then the posts resource.…This gives us a detailed breakdown of all the methods…
- 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.