=== EDC REST API === Contributors: EDC TEAM Donate link: https://edc.org.kw Tags: api, rest, json Requires at least: 5.2 Tested up to: 6.5.2 Stable tag: 1.0.6 Requires PHP: 7.4 License: GPLv2 or later License URI: https://www.gnu.org/licenses/gpl-2.0.html
Fetch the content of the sections and articles and search them through the API
== Description == This plugin enables you to fetch the contents of your site in JSON format by REST API Such as sections, articles and search results and return it as json To be able to use it in your applications or other sites
Endpoints
- recent posts
- posts
- search
- categories
- category
For develpoers
- /api/get_category_posts?type={string}&slug={string}&id={int}&count={int}&page={int}
- /api/get_category_index
- /api/get_search_results?type={string}&count={int}&page={int}
- /api/get_recent_posts?type={string}
- /api/get_posts?type={string}&cat={int}&count={int}&page={int}
Parameters
- slug : {string} default: empty post slug
- id : {int} default: empty post id
- count: {int} default: 5 data display limit
- page : {int} default: 1 data display offset
- type : {string} default: post post_type
== Installation ==
After active plugin
- go to dashboard => settings => permalinks
- do save to active endpoint /api
== Frequently Asked Questions ==
- is it free YES
== Screenshots ==
- get_category_index.
- get_category_posts.
- get_search_results
- get_recent_posts
- get_posts
== Changelog ==
= 1.0.6 =
- Update code
- Fixed pagination
= 1.0.5 =
- Update code
= 1.0.4 =
- Update code
= 1.0.3 =
- Update code
= 1.0.2 =
- Update code
= 1.0.1 =
- Update code
= 1.0.0 =
- first edition
== Upgrade Notice ==
- first edition