本文档介绍了 WordPress REST API 的基本结构,涵盖从全局参数到客户端库的多个核心方面,帮助开发者高效利用 API 进行数据交互。
These articles explore the basic structure of the WordPress REST API.
Global Parameters: learn about the global REST API query parameters that apply to every endpoint
Pagination: work with large collections of resources & control how many records you receive from the REST API
Linking & Embedding: understand how to read and modify connections between different objects, and embed related resources such as author and media data in the REST API’s responses
Discovery: determine what REST API resources a site supports, and where they are located
Authentication: authorize your REST API requests so that you can create, update and delete your data
Frequently Asked Questions: see some of the most frequent inquiries about the REST API and learn how to solve common problems
Backbone.js Client: interact with the API from within WP-Admin using Backbone models & collections
Client Libraries: utilities in a variety of programming languages that simplify interacting with the API