Join Morten Rand-Hendriksen for an in-depth discussion in this video Discovery, part of Learning REST APIs.
- A key step in working with a REST API is discovery,…figuring out what resources and methods are available…and what you can do with them.…A good REST API has extensive standalone documentation,…providing all this information in a human-readable format.…But even if no documentation is present,…the REST API will describe itself, thanks to the…Hypermedia As The Engine Of Application State constraint.…Using the get and options verbs,…we can walk our way through the response…of any REST API, to find its resources and methods.…
For a simple REST API, the map might be a single level…of resource URIs with get methods.…For a more complex REST API, like the WordPress REST API,…there may be a complex tree of resources,…each with their own methods…that are documented within the response.…If I run an options request to the posts resource,…which gives us access to the collection of all posts…in a WordPress site, you'll see what I mean.…Here, we get a full breakdown…of every available method and resource.…
If I run an options request to the posts resource…
- 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.