awesome-repositories.com
博客
awesome-repositories.com

通过 AI 驱动的搜索,发现最优秀的开源仓库。

探索精选搜索开源替代品自托管软件博客网站地图
项目关于排名机制媒体报道MCP 服务器
法律隐私政策服务条款
© 2026 Bringes Technology SRL·VAT RO45896025·hello@awesome-repositories.com
·
WP-API avatar

WP-API/WP-APIArchived

0
View on GitHub↗
3,927 星标·642 分支·PHP·GPL-2.0·5 次浏览developer.wordpress.org/rest-api↗

WP API

WordPress REST API 是一个 Web 接口和基于 JSON 的内容 API,允许使用标准 HTTP 方法检索和修改站点内容、用户和元数据。它作为无头 CMS 接口,通过可编程的 RESTful 控制器暴露站点数据,从而将内容管理与前端解耦。

该系统以其超媒体驱动的发现和基于 JSON-schema 的验证而著称,允许客户端以编程方式定位资源并确保数据交换的可预测性。它利用基于命名空间的端点注册来组织路由,并支持灵活的身份验证层,包括应用程序密码、会话 Cookie 和第三方身份标准。

该 API 涵盖了广泛的资源管理功能,包括处理文章、页面、媒体和基于块的内容。它为响应管理提供了全面的工具,例如资源嵌入、分页和字段过滤,以及用于管理内容修订和站点管理的工具。

支持特定语言的 SDK,将网络请求抽象为高级编程接口。

Features

  • Headless CMS - Provides a headless CMS interface that decouples content management from the frontend via a programmable API.
  • API Resource Management - Implements standardized CRUD operations for managing the lifecycle of site data entities via JSON.
  • REST API Content Exposure - Maps URIs and methods to endpoints that expose site content and metadata as JSON for decoupled applications.
  • REST API Implementations - Allows for the definition of unique endpoints and data schemas to expose custom business logic via a RESTful interface.
  • Custom Content Type Definitions - Allows the definition of custom content types and taxonomies that are exposed as programmable API resources.
  • Headless CMS Integrations - Enables a decoupled workflow by bridging the CMS backend to external frontends via API resources and data embedding.
  • Headless WordPress Development - Provides a headless architecture where WordPress acts as a backend API for decoupled frontend applications.
  • Page Content Retrievals - Provides programmatic fetching of specific site pages using unique identifiers and query filtering.
  • Site Content Management - Provides JSON-based retrieval and updating of posts, pages, categories, tags, and media.
  • WordPress REST APIs - Acts as the primary web interface for interacting with WordPress content and settings using standard HTTP methods.
  • Data Resource Management - Implements standard CRUD operations for managing site resources through model synchronization.
  • WordPress Post Fetchers - Provides comprehensive endpoints for fetching post collections or individual records using filtered queries.
  • Server-Side RESTful Controllers - Provides a framework for defining custom resource controllers and endpoints to manage site data.
  • Application Passwords - Provides a system for creating, retrieving, and deleting unique application passwords for external service access.
  • API Request Authentication - Implements a security layer that validates API requests using a variety of authentication methods including cookies and passwords.
  • Basic Authentication - Validates requests from external scripts using unique, user-generated passwords via standard HTTP Basic Authentication.
  • Session Cookie Authentications - Uses browser cookies and unique tokens to verify user identity and prevent cross-site request forgery.
  • Hybrid Token-Cookie Authentications - Verifies identity through a combination of session cookies and application-specific passwords for secure remote API access.
  • Web Request Authorizations - Verifies that incoming HTTP requests meet required privilege levels before allowing data modification.
  • Data Schema Definitions - Defines the structure of input parameters and output properties to ensure predictable data exchange.
  • JSON Schema Validation - Uses predefined JSON schemas to automatically validate, sanitize, and type-check incoming request parameters.
  • Object Schema Definitions - Describes the structure of API objects using JSON Schema for client-side discovery and validation.
  • Request Validation - Defines required fields, default values, and sanitization callbacks for incoming request data.
  • User Detail Retrievers - Fetches individual user records or filtered collections to return membership and identity details.
  • API Endpoint Definitions - Provides the ability to define unique routes and callback functions to handle custom API requests.
  • API Request Handling - Implements logic for intercepting and processing incoming network requests to dispatch them to the correct API endpoint callbacks.
  • Class-Based Resource Mapping - Organizes CRUD logic into standardized classes that map HTTP methods to specific data model operations.
  • Response Schema Definitions - Specifies data format, field types, and descriptions for responses to ensure clients understand the structure.
  • Custom API Endpoints - Enables the registration of unique URLs to custom logic for exposing data through a standardized REST interface.
  • JSON APIs - Implements a JSON API for retrieving and modifying site content, users, and metadata.
  • Request Schema Validators - Uses JSON Schema to automatically check and sanitize incoming request parameters for security.
  • Resource Schema Definitions - Specifies expected data types and arguments for resources to ensure consistent request validation.
  • Template Part Management - Allows retrieving, creating, or deleting template part records to synchronize layout components.
  • Media Resource Retrievals - Fetches collections of media records and metadata using query parameters for filtered retrieval.
  • Site Content Search - Retrieves collections of matching results across the site based on search queries and filters.
  • Template Retrievals - Fetches lists of all site templates or specific template records using unique identifiers.
  • Collection Pagination - Retrieves large data collections in smaller chunks using page numbers or offsets.
  • Permission Callbacks - Checks user permissions via internal callbacks before executing endpoints to ensure data privacy.
  • Resource Collection Querying - Allows retrieval of resource lists with support for custom ordering, filtering, and automatic pagination.
  • Result Sorting - Organizes returned data in ascending or descending order based on specific resource fields.
  • Server Capability Discovery - Exposes self-documentation and endpoint details via an index endpoint for machine-discovery of API capabilities.
  • API Root Discovery - Enables clients to locate the API entry point using link headers or HTML elements for automated integration.
  • Regex-Based Route Matching - Uses regular expressions in request paths to capture variables and route them to specific endpoint handlers.
  • Administrative Site Settings - Exposes site-wide configuration and global settings through a programmatic JSON response.
  • Programmatic Site Administration - Allows remote management of site settings, plugins, themes, and user accounts through a programmatic interface.
  • Authentication Discovery - Allows clients to programmatically query the root directory for supported authentication methods and configurations.
  • Third-Party Identity Integrations - Integrates third-party identity standards such as OAuth and tokens to verify remote applications.
  • API Response Filtering - Accepts query or body parameters through validation callbacks to modify data returned by an endpoint.
  • Hypermedia Link Generation - Provides automated creation of navigational links within API responses to facilitate resource discovery.
  • Hypermedia Resource Discovery - Adds hypermedia discovery links to responses to help clients find related resources via query variables.
  • Field Filtering - Restricts returned data to a specific subset of properties to reduce payload size.
  • Endpoint Namespace Grouping - Implements namespace-based endpoint registration to prevent routing collisions between core and third-party extensions.
  • Response Lifecycle Hooks - Processes incoming headers and parameters via lifecycle hooks to generate structured response objects with custom status codes.
  • Content Block HTML Rendering - Converts block markup into final HTML using a server-side rendering engine.
  • Controller Patterns - Organizes complex API logic into standardized controller classes to manage resource lifecycles.
  • Endpoint Discovery - Allows clients to query the system to identify supported resources and their specific API locations.
  • CRUD API Implementations - Implements consistent CRUD patterns and response shaping through inheritance from base resource controllers.
  • Dynamic API Routing - Uses regular expression path variables to capture URL inputs, allowing a single endpoint to handle multiple resources.
  • Response Field Mappings - Injects custom data fields into response objects to provide additional context to the client.
  • Custom Response Fields - Injects arbitrary data or whitelist metadata into responses using custom callbacks or schema definitions.
  • Post Type Definition Retrievals - Fetches records of available content types including schemas, labels, and associated taxonomies.
  • Referenced Resource Embedding - Includes full data of related resources within a single API response to reduce total request volume.
  • Response Mutation Callbacks - Uses registered hooks and callbacks to inject custom fields or modify outgoing data.

Star 历史

wp-api/wp-api 的 Star 历史图表wp-api/wp-api 的 Star 历史图表

AI 搜索

探索更多 awesome 仓库

用简单的语言描述您的需求 —— AI 将根据相关性为您从数千个精选开源项目中进行排序。

Start searching with AI

WP API 的开源替代方案

相似的开源项目,按与 WP API 的功能重合度排序。
  • wp-graphql/wp-graphqlwp-graphql 的头像

    wp-graphql/wp-graphql

    3,780在 GitHub 上查看↗

    WPGraphQL is a GraphQL interface for WordPress that transforms a WordPress installation into a headless content source. It functions as a GraphQL schema provider that maps database structures and relational data into a standardized schema, exposing posts, pages, and custom data types through a single flexible endpoint. The project includes an integrated API query builder and schema explorer, allowing for the visual composition of queries and real-time validation of responses. It provides a system for extending the schema with custom fields and relationships to expose specific business data.

    PHP
    在 GitHub 上查看↗3,780
  • apostrophecms/apostropheapostrophecms 的头像

    apostrophecms/apostrophe

    4,524在 GitHub 上查看↗

    Apostrophe is an open-source Node.js headless content management system that delivers structured content through REST APIs while providing a visual in-context page editor for live editing. It is built on a module-based plugin architecture that extends CMS functionality through reusable modules, each encapsulating logic, configuration, and templates. The system uses schema-driven content modeling to define data structures and validation rules through configurable schemas and custom field types, with all content stored as flexible JSON-like documents in MongoDB. The platform distinguishes itsel

    JavaScriptapostrophecmscms-framework
    在 GitHub 上查看↗4,524
  • marmelab/react-adminmarmelab 的头像

    marmelab/react-admin

    26,780在 GitHub 上查看↗

    React-admin is a framework for building data-driven administrative interfaces that connect to REST or GraphQL backends. It provides a comprehensive suite of tools for managing the full lifecycle of administrative applications, including resource-oriented routing, declarative form scaffolding, and context-driven state management. By utilizing a modular adapter-based architecture, the framework abstracts backend communication, allowing developers to build consistent CRUD interfaces that handle data fetching, authentication, and synchronization automatically. The project distinguishes itself thr

    TypeScriptadminadmin-dashboardadmin-on-rest
    在 GitHub 上查看↗26,780
  • ponzu-cms/ponzuponzu-cms 的头像

    ponzu-cms/ponzu

    5,757在 GitHub 上查看↗

    Ponzu is a content management framework written in Go that functions as a headless CMS with a built-in JSON API and an automatically generated admin dashboard. It is designed to be compiled into a single binary, serving both the content API and the administrative interface from a single HTTP server. The framework distinguishes itself through automatic HTTPS certificate management via Let's Encrypt, enabling secure HTTP/2 delivery out of the box. It provides compile-time content scaffolding, allowing developers to define custom content types from the command line and generate the corresponding

    Goapiclicms
    在 GitHub 上查看↗5,757
查看 WP API 的所有 30 个替代方案→

常见问题解答

wp-api/wp-api 是做什么的?

WordPress REST API 是一个 Web 接口和基于 JSON 的内容 API,允许使用标准 HTTP 方法检索和修改站点内容、用户和元数据。它作为无头 CMS 接口,通过可编程的 RESTful 控制器暴露站点数据,从而将内容管理与前端解耦。

wp-api/wp-api 的主要功能有哪些?

wp-api/wp-api 的主要功能包括:Headless CMS, API Resource Management, REST API Content Exposure, REST API Implementations, Custom Content Type Definitions, Headless CMS Integrations, Headless WordPress Development, Page Content Retrievals。

wp-api/wp-api 有哪些开源替代品?

wp-api/wp-api 的开源替代品包括: wp-graphql/wp-graphql — WPGraphQL is a GraphQL interface for WordPress that transforms a WordPress installation into a headless content… apostrophecms/apostrophe — Apostrophe is an open-source Node.js headless content management system that delivers structured content through REST… marmelab/react-admin — React-admin is a framework for building data-driven administrative interfaces that connect to REST or GraphQL… ponzu-cms/ponzu — Ponzu is a content management framework written in Go that functions as a headless CMS with a built-in JSON API and an… aws-powertools/powertools-lambda-python — AWS Powertools for Python is a utility framework designed for building production-ready Python functions on AWS… midudev/jscamp — jscamp is a full-stack web development and education project focused on mastering JavaScript, TypeScript, and AI…