Register
Foreword
Introduction
Introduction to the WordPress REST API
- A Brief Definition of an API
- What Can You Do With an API?
- Why Have a REST API in WordPress?
- What Can You Do With the WordPress REST API?
- What You Need to Get Started
- Summary
Reading Public Endpoints - Posts and Pages
- Understanding wp-json Metadata
- Listing Posts
- Requesting a Single Post
- Pagination
- Parameters for Posts and Pages
- Other posts endpoints
- Page Endpoints
- Summary
Reading Public Endpoints - Everything Else
- Taxonomy
- List Categories
- List Tags
- Global parameters
- Using the oEmbed Endpoint
- Summary
Authentication, WordPress, and You
- Authentication Versus Authorization
- HTTP Basic Authentication
- JWT - JSON Web Tokens
- Using the Token
- Token Management
- Summary
Modifying Data Using the REST API
- Creating Our Sample Application
- Manipulating WordPress
- User Management
- Summary
Controlling WordPress from Another Application
- Setting up the WordPress Frontend for the application
- Setting Up the CLI Application
- Dissecting the Application
- Fat Models
- Summary
A Quasi-Real World Application
- A Note From the Author About This Chapter
- The Application
- The Structure
- Handle Tags and Categories
- De-Referencing
- Upload the Image
- Create the Post
- Getting the JWT Token
- Summary
Conclusion
- Making WordPress Work Harder
- Additional Reading
- Thank you
Odds and Ends
- jv.sh
