REST API Route Tester

外掛說明

REST API Route Tester is a powerful tool for WordPress developers and administrators to test and debug REST API endpoints directly from the wp-admin. It provides a user-friendly interface to:

  • View all registered REST API routes, grouped by plugin
  • Test routes with HTTP methods (GET, POST, PUT, DELETE)
  • Switch between different user roles to test permissions
  • Send custom headers and body data (JSON)
  • View detailed responses including status codes and response time
  • Create multiple request tabs and persist state between sessions
  • Auto-suggest routes with a searchable dropdown; auto-select primary method
  • Generate example payloads based on route schema (via OPTIONS discovery)

螢幕擷圖

  • Route tester interface with request builder and response panel
  • Route suggestions dropdown with formatted parameters
  • Multiple request tabs with saved state

安裝方式

  1. Upload the plugin files to the /wp-content/plugins/rest-api-route-tester directory, or install the plugin through the WordPress plugins screen directly.
  2. Activate the plugin through the ‘Plugins’ screen in WordPress
  3. Use the Tools->REST Route Tester screen to use the plugin

常見問題集

What permissions do I need to use this plugin?

You need to have the ‘manage_options’ capability to use this plugin, which is typically granted to administrators.

Can I test authenticated endpoints?

Yes, you can test authenticated endpoints by selecting different user roles from the dropdown menu.

使用者評論

這個外掛目前沒有任何使用者評論。

參與者及開發者

以下人員參與了開源軟體〈REST API Route Tester〉的開發相關工作。

參與者

將〈REST API Route Tester〉外掛本地化為台灣繁體中文版

對開發相關資訊感興趣?

任何人均可瀏覽程式碼、查看 SVN 存放庫,或透過 RSS 訂閱開發記錄

變更記錄

1.1.0

  • Added multi-tab requests with state persistence via localStorage
  • Grouped routes by plugin with plugin filter dropdown
  • Added route suggestions with human-readable parameter formatting
  • Auto-select primary HTTP method for selected route
  • Generated example headers/body from route schema via OPTIONS discovery
  • Displayed response time for each request
  • Improved validation and permission checks in AJAX handlers

1.0.0

  • Initial release