From the course: WordPress: REST API
Unlock the full course today
Join today to access over 24,700 courses taught by industry experts.
Explore the REST API response - WordPress Tutorial
From the course: WordPress: REST API
Explore the REST API response
- [Instructor] Now that you've seen how to interact with the Wordpress REST API using Postman, I'm pretty sure the first question you have is how do I know what routes I can use and what endpoints are available at those routes? After all, you don't want to just get the post index. You need direct access to specific posts and pages and categories and images and other data exactly when you need it. The cool thing is REST APIs are designed to be self-documenting, meaning they give you all the information about all the available routes and their end points and their arguments. All you have to do is ask. To see a list of every available route and endpoint, type in the URL of your site, so in my case morton.com, followed by WP dash JSON, WPV2. So I'll take away the pulses here. This is the route level route and all other routes start with this and then continue onwards by adding more specificity. When you send this get request,…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
What is the WordPress REST API?2m 42s
-
(Locked)
What are RESTful APIs and JSON?2m 16s
-
(Locked)
Routes and endpoints1m 43s
-
(Locked)
Communicating with the REST API4m 16s
-
(Locked)
Explore the REST API response7m 23s
-
(Locked)
Useful routes: A quick reference5m 8s
-
(Locked)
Expanding the response with embeds6m 14s
-
(Locked)
Challenge: Find posts in a category2m
-
(Locked)
Solution: Find posts in a category5m 18s
-
-
-
-
-