
內容簡介
總結:Easy APIs – Simplify API Integration是一個輕便的外掛程式,可快速啟用REST API端點以存取常見的WordPress資料,無需複雜的設定,只需安裝即可使用。
1. 這個外掛的目的是什麼?
- 快速啟用REST API端點,存取WordPress的常見資料。
2. 這個外掛支援哪些API端點?
- WordPress核心API端點:/wp-json/easy-apis/v1/posts、/wp-json/easy-apis/v1/custom-posts、/wp-json/easy-apis/v1/users。
- WooCommerce API端點:/wp-json/easy-apis/v1/products。
3. 每個API端點都支援什麼功能?
- 透過per_page和page參數進行分頁。
- 使用JSON響應結構。
- 公開完整的文章/商品/使用者資料。
4. 這個外掛適用於哪些用途?
- 適合用於無前端WordPress、行動應用程式,或連接到第三方平台。
5. 如何取得所有商品(WooCommerce)的API文檔?
- 端點:/wp-json/easy-apis/v1/products。
- 方法:GET。
- 參數:per_page(每頁商品數,預設為10)、page(頁碼,預設為1)。
6. 提供一個簡單的Markdown範例特色。
- 簡易設置,無需配置。
- 清晰、符合REST規範的端點。
- 內建WooCommerce支援。
外掛標籤
開發者團隊
② 後台搜尋「Easy APIs – Simplify API Integration」→ 直接安裝(推薦)
原文外掛簡介
Easy APIs – Simplify API Integration is a lightweight plugin that instantly enables clean REST API endpoints for common WordPress and WooCommerce data — perfect for headless WordPress, mobile apps, and external integrations.
Available API Endpoints
WordPress Core:
– /wp-json/easy-apis/v1/posts
– /wp-json/easy-apis/v1/custom-posts
– /wp-json/easy-apis/v1/users
WooCommerce:
– /wp-json/easy-apis/v1/products
Features:
– Pagination (per_page, page)
– JSON structured output
– Supports all registered custom post types
– Zero configuration — just activate and use
API Documentation
🔹 Get All Products (WooCommerce)
Endpoint: /wp-json/easy-apis/v1/products
Method: GET
Parameters:
– per_page — Number of results (default 10)
– page — Page number (default 1)
Example:
/wp-json/easy-apis/v1/products?per_page=5&page=2
Response:
Returns full WooCommerce product data, including title, pricing, SKU, categories, images, and attributes.
A brief Markdown Example
Some key features:
1. Simple setup
2. Clean RESTful endpoints
3. Native WooCommerce support
