6. Today we’ll cover
- What is the REST API?
- What problem I was trying to solve
- How I would have solved the issue
without the REST API
- How I used the REST API for fun and profit
- Tools I used
- Where to continue your learning
7. Today we’ll cover
- What is the REST API?
- What problem I was trying to solve
- How I would have solved the issue
without the REST API
- How I used the REST API for fun and profit
- Tools I used
- Where to continue your learning
8. Today we’ll cover
- What is the REST API?
- What problem I was trying to solve
- How I would have solved the issue
without the REST API
- How I used the REST API for fun and profit
- Tools I used
- Where to continue your learning
9. Today we’ll cover
- What is the REST API?
- What problem I was trying to solve
- How I would have solved the issue
without the REST API
- How I used the REST API for fun and profit
- Tools I used
- Where to continue your learning
10. Today we’ll cover
- What is the REST API?
- What problem I was trying to solve
- How I would have solved the issue
without the REST API
- How I used the REST API for fun and profit
- Tools I used
- Where to continue your learning
11. Today we’ll cover
- What is the REST API?
- What problem I was trying to solve
- How I would have solved the issue
without the REST API
- How I used the REST API for fun and profit
- Tools I used
- Where to continue your learning
13. “The WordPress REST API provides API endpoints for
WordPress data types that allow developers to interact
with sites remotely by sending and receiving JSON
(JavaScript Object Notation) objects. This enables
developers to create, read and update WordPress content
from client-side JavaScript or from external applications,
even those written in languages beyond PHP.”
- WordPress
14. REST API Methods
- GET: Retrieve data from server
- POST: Send data to server
- PUT: Change/update data on server
- DELETE: Remove data from server
15. Other REST API Terms
- Routes & Endpoints
- Requests
- Responses
- Schema
- Controller Classes
32. Posts Endpoint
WordPress has a number of built-in
endpoints you can use. For example:
/wp-json/wp/v2/posts/123
https://developer.wordpress.org/rest-api/reference/