Linux 软件免费装
Banner图

RESTful JSON API

开发者 parorrey
更新时间 2026年7月17日 17:57
捐献地址: 去捐款
PHP版本: 7.4 及以上
WordPress版本: 7.0
版权: GPLv3 or later
版权网址: 版权信息

标签

mobile json api rest jwt

下载

0.15.7

详情介绍:

RESTful JSON API provides simple JSON endpoints for WordPress content and user-facing app workflows. It is designed for mobile apps, external tools, and lightweight integrations that need predictable JSON responses from WordPress. Built-in features include: Full endpoint documentation with sample code is available in Settings > RESTful JSON API > Documentation. The same long-form documentation is also included in readme.md inside the plugin package.

安装:

  1. Upload the restful-json-api folder to /wp-content/plugins/.
  2. Activate the plugin from the WordPress Plugins screen.
  3. Open Settings > RESTful JSON API.
  4. Configure the API base path, optional API key, CORS origins, HTTPS requirement, and enabled controllers.

常见问题:

How do clients authenticate?

Clients call the User controller login endpoint with a username and password over HTTPS. The response includes a plugin-issued JWT. Protected endpoints require Authorization: Bearer ACCESS_TOKEN.

Do users need WordPress Application Passwords?

No. This plugin uses JWT authentication, so users do not need to manually create Application Passwords.

Is HTTPS required?

HTTPS is required by default for password and bearer-token requests. Site owners can disable this in Settings > RESTful JSON API for local or non-SSL environments, but production sites should keep it enabled.

Does the plugin still use authentication cookies?

No. Cookie-based authentication endpoints were removed. Use JWT bearer tokens instead.

Where are the endpoint examples?

Open Settings > RESTful JSON API > Documentation for login, token validation, post create/update/delete, user meta, comment, and controller examples. The same documentation is also included in readme.md.

更新日志:

0.15.7 (2026-07-15):