=== Easy APIs Simplify Api Integration ===
Contributors: gurjaint
Tags: rest api, posts apis, products apis, users apis
Requires at least: 5.0
Tested up to: 6.7
Stable tag: 1.0.0
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html

Easily expose WordPress and WooCommerce data through custom REST APIs. Fetch posts, users, products, and more with pagination and filters.

== Description ==

**Easy APIs – Simplify API Integration** is a lightweight plugin to quickly enable REST API endpoints for common WordPress data. No complex setups – just plug and go.

Currently supported API endpoints:

**WordPress Core APIs:**
- `/wp-json/easy-apis/v1/posts`
- `/wp-json/easy-apis/v1/custom-posts`
- `/wp-json/easy-apis/v1/users`

**WooCommerce APIs:**
- `/wp-json/easy-apis/v1/products`

Each API supports:
- Pagination via `per_page` and `page` parameters
- JSON response structure
- Full post/product/user data exposure

Perfect for headless WordPress, mobile apps, or connecting to third-party platforms.

== Installation ==

1. Upload the `easy-apis-simplify-api-integration` folder to the `/wp-content/plugins/` directory.
2. Activate the plugin through the 'Plugins' menu in WordPress.
3. Start using the endpoints like: `your-site.com/wp-json/easy-apis/v1/products`

== Frequently Asked Questions ==

= Do I need to configure anything? =
Nope! Just activate and start calling the APIs.

= Does this plugin support custom post types? =
Yes. Use the `/custom-posts` endpoint and pass the `type` query param (e.g. `type=books`).

= Is authentication required? =
All endpoints are public by default. Add your own auth logic if needed.

== Screenshots ==

1. Example of API JSON output
2. How to call WooCommerce product API with pagination

== Changelog ==

= 1.0 =
* Initial release
* WooCommerce product API endpoint added
* Basic pagination support for all endpoints

== Upgrade Notice ==

= 1.0 =
Initial version with WooCommerce + WordPress REST API endpoints for easy external integration.

== API Documentation ==

### Get All Products (WooCommerce)
**Endpoint:** `/wp-json/easy-apis/v1/products`  
**Method:** GET  
**Parameters:**
- `per_page`: Number of products per page (default: 10)
- `page`: Page number (default: 1)

**Example:**  
`/wp-json/easy-apis/v1/products?per_page=5&page=2`

**Returns:** JSON list of products with full data (title, price, SKU, categories, images, attributes, etc.)

== A brief Markdown Example ==

Some features:
1. Simple setup, no config needed
2. Clean, RESTful endpoints
3. Built-in WooCommerce support