- [Instructor] To get the data from a resource,…we send a get request and that means if we want…the data from the posts resource, or the last…10 posts in this blog, we'll send a get request…to the resource.…Just like with options, we don't need to send…an authorization header here, but we might…as well since we have it, we get all our options.…When I send this request, the rest API…returns to me a list of the 10 most recent…posts on the site.…Each of these posts is structured…as a nested JSON object.…
So here you can see the first one is post…with "id":4, this is the publishing date,…and the modified date, then we have the URL slug,…we have the current status of the post, the type of post,…the link to the post, this is the regular…human readable link to the post, then we have…the title, the content and so on.…And as we scroll down, you see that this post is complete.…That's because in the case of Word Press we get…the full data for each of the posts even…in the posts resource.…So if there's a lot of long posts on this Word Press site,…
- 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.