Book description
A practical tutorial to get you up and running with the revolutionary WordPress REST API
About This Book
Learn how to run the latest WordPress REST API with various platforms
Create exciting apps and manage non-WordPress content with them
Secure, export, and manage your data through illustrative examples
Who This Book Is For
This book is for WordPress developers and designers who want to get a complete practical understanding of the WordPress REST API and leverage it to create fully-featured web apps.
What You Will Learn
Use the WordPress REST API to read, write, and edit posts
Create and work with metadata using the WordPress REST API
Work with taxonomies using the REST API
Add custom routes and build apps using the WordPress REST API
Process requests and integrate with external applications and frameworks
Make your WordPress projects ready for the RESTful API standard
In Detail
The WordPress REST API is a recent innovation that has the potential to unlock several new opportunities for WordPress developers. It can help you integrate with technologies outside of WordPress, as well as offer great flexibility when developing themes and plugins for WordPress. As such, the REST API can make developers’ lives easier.
The book begins by covering the basics of the REST API and how it can be used along with WordPress. Learn how the REST API interacts with WordPress, allowing you to copy posts and modify post metadata. Move on to get an understanding of taxonomies and user roles are in WordPress and how to use them with the WordPress REST API. Next, find out how to edit and process forms with AJAX and how to create custom routes and functions. You will create a fully-functional single page web app using a WordPress site and the REST API. Lastly, you will see how to deal with the REST API in future versions and will use it to interact it with third-party services.
By the end of the book, you will be able to work with the WordPress REST API to build web applications.
Style and Approach
A step by step tutorial to explain the new and exciting world of the WordPress REST API with the real world examples.
Table of contents
-
Learning WordPress REST API
- Learning WordPress REST API
- Credits
- About the Authors
- Acknowledgments
- About the Reviewer
- www.PacktPub.com
- Preface
- 1. Getting Started with REST API
- 2. Interacting with REST API in WordPress
- 3. Working with Taxonomies and Users with REST API
- 4. Working with Forms Using REST API
- 5. Custom Routes in WordPress REST API
-
6. Creating a Simple Web App using WordPress REST API
- Overview
- Setting up your WordPress site
- Steps to disable the default routes
- More about WP REST API
- The REST architecture
- Going further
- WP REST API – setting up and using basic authentication
- JavaScript authenticated requests
- WP HTTP API for authenticated requests
- WP REST API - setting up and using advanced authentication
- Assessing the availability of the OAuth API
- WP REST API - retrieving data
- WP REST API: creating and editing posts
- WP REST API: internals and customization
- Summary
-
7. Mastering REST API for Your Projects
- Backward compatibility
- A universal API
- Architectural structure
- REST architectural constraints
- Ever-growing REST API
- REST API as a platform
- REST API in later versions of WordPress
- REST API and WordPress plugin development
- REST API-based authentication
- REST API and security
- REST API being used in WordPress plugins
- Disabling REST API
- Summary
-
8. WordPress REST API in Practice
- Key differences between v1 and v2 of the plugin
- Internal changes
- External changes
- Future changes
- Functions of APIs
- The REST API in theory
- A guide to HTTP and REST
- The WordPress REST API
- The JSON REST API
- Developers of WP REST API
- REST API revenue sources
- Competing architectures on the Web
- JavaScript and WordPress
- AJAX in WordPress
- Things to consider when using REST API
- Current status of REST API
- Progressive enhancement of WP REST API
- WordPress Calypso and the REST API
- Securing a REST API
- WordPress API and regular users
- Building your own API
- Drawbacks of a custom API
- Custom API tokens
- Summary
- 9. Summing It Up
Product information
- Title: Learning WordPress REST API
- Author(s):
- Release date: July 2016
- Publisher(s): Packt Publishing
- ISBN: 9781786469243
You might also like
book
RESTful Web APIs
The popularity of REST in recent years has led to tremendous growth in almost-RESTful APIs that …
video
WordPress 101 - The Complete Guide
This course will help you get started with WordPress 6.4, whether you're looking to create a …
video
WordPress Academy: Learn WordPress Step by Step
This course is for anybody looking for a career building WordPress websites or themes, or even …
book
Building Web Apps with WordPress, 2nd Edition
WordPress is much more than a blogging platform. If you have basic PHP, HTML, CSS, and …