跳到内容

WPRestApiExtensions

v1.0.6

larjen · 2015年11月10日 上架

Extends the WP-REST API with custom read only endpoints.

正在使用
10 以下
评分
暂无
累计下载
1,243
最近更新
2015年11月11日
需要 WordPress 4.3.1+已测试到 4.3.34

贡献者

Extends the WP-REST API with custom read only endpoints.

If you have a WordPress blog at http://www.example.com you can reach the read only REST API by requesting these endpoints:

http://www.example.com/wp-json/wprestapiextensions/v1/posts?page=1&per_page=12&search=query&tags=tag1+tag2 http://www.example.com/wp-json/wprestapiextensions/v1/tag?tag_name=tag1 http://www.example.com/wp-json/wprestapiextensions/v1/post 

The above endpoints does read from database whenever they are requested, and are thus very slow to react.

From within the plugin, there is an option to deploy a cache in front of this REST API. When you deploy it, be warned that the folder “rest-api” will be created in the root of your webserver.

You can then request the REST-API like this:

http://www.example.com/rest-api/v1/posts?page=1&per_page=12&search=query&tags=tag1+tag2 http://www.example.com/rest-api/v1/tag/?_jsonp=angular.callbacks._1&tag_name=tag1 

Since these requests are infinitely cached, you can schedule an optional wipe of the cache which will occur 5 minutes after last post alteration.

Plums

按场景查找 WordPress 插件。安装量、评分和兼容版本来自官方目录。

导航

说明

WordPress 是 WordPress Foundation 的商标。本站与 WordPress Foundation、Automattic 没有隶属关系。这里不托管插件文件,下载和安装以 WordPress.org 上的页面为准。

© 2026 Plums