Skip to content

Commit a42aae4

Browse files
committed
Update plugin version and readme
1 parent f954293 commit a42aae4

File tree

4 files changed

+29
-3
lines changed

4 files changed

+29
-3
lines changed

README.md

+26
Original file line numberDiff line numberDiff line change
@@ -188,3 +188,29 @@ Returns the following JSON Response in each item object:
188188
- description
189189
- classes (array)
190190
- menu item parent
191+
192+
### Search
193+
**`better-wp-endpoints/v1/search`**
194+
Gets a collection of posts and pages based on the search parameter. Accepts the following parameters:
195+
196+
- page (int)
197+
- per_page (int)
198+
- category id (int)
199+
- tag id (int)
200+
- content (boolean) set to false to omit content from showing in JSON response
201+
- search (string | required)
202+
203+
It returns a JSON response with the following (returns an empty array if no posts found):
204+
- id
205+
- slug
206+
- title
207+
- date (ISO 8601)
208+
- excerpt
209+
- content
210+
- all possible thumbnail sizes & URL
211+
- Author & Author ID
212+
- Categories
213+
- Category IDs
214+
- Tags
215+
- Tag IDs
216+
- ACF fields, if applicable

better-wp-endpoints.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
Plugin Name: Better WordPress Endpoints
44
Plugin URI: https://github.com/factor1/better-wp-endpoints/
55
Description: Serves up slimmer WordPress Rest API endpoints, with some great enhancements.
6-
Version: 0.1.15
6+
Version: 0.1.16
77
Author: Eric Stout, Factor1 Studios
88
Author URI: https://factor1studios.com/
99
License: GPL3

package-lock.json

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "better-wp-endpoints",
3-
"version": "0.1.15",
3+
"version": "0.1.16",
44
"description": "Serves up slimmer WordPress Rest API endpoints.",
55
"main": "index.js",
66
"scripts": {

0 commit comments

Comments
 (0)