=== Advanced REST API DevTools ===
Contributors: suhan2411
Tags: rest api, api testing, postman, developer tools, debugging
Requires at least: 6.5
Tested up to: 6.9
Requires PHP: 8.1
Stable tag: 1.1.0
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Postman-inspired REST API explorer, tester, debugger, profiler & logger — fully inside WordPress admin.

== Description ==

Advanced REST API DevTools brings the power of Postman directly into your WordPress admin dashboard. Explore routes, build and test API requests, profile performance, log traffic, manage collections and environments — all without leaving the admin area.

**Features:**

* **Route Explorer** — Browse all registered REST API routes with search, filter, and source detection
* **Request Builder** — Full-featured request builder with method, headers, body, auth options
* **Pre-request Scripts** — Dynamic variable/header manipulation before sending
* **Test Assertions** — Post-response assertions (status, JSON path, contains, equals)
* **Collections** — Save, organize, and run request collections with pass/fail results
* **Environments** — Manage variable sets with {{var}} syntax replacement
* **Request History** — Browse and reload recent requests
* **Performance Profiler** — Timing breakdown (routing, permissions, callback, DB queries)
* **Authentication Debugger** — View current user auth context, caps, and method validation
* **Request Logger** — Opt-in REST API traffic logging with filters and auto-purge
* **Mock Responses** — Stub mock responses for offline/testing workflows
* **Code Generation** — Export requests as cURL, PHP (wp_remote_*), or JavaScript (fetch)

== Installation ==

1. Upload the `advanced-rest-api-devtools` folder to `/wp-content/plugins/`
2. Activate the plugin through the 'Plugins' menu in WordPress
3. Navigate to Tools → REST DevTools

== Frequently Asked Questions ==

= Who can access the plugin? =
Only users with the `manage_options` capability (typically Administrators).

= Does it affect site performance? =
No. The plugin only runs on its admin screens. Request logging is opt-in and includes automatic cleanup.

= Can I test external APIs? =
The plugin is designed for your site's REST API (loopback requests). External API testing is not currently supported.

== Screenshots ==

1. Request Builder — Build and test REST API requests with headers, body, and auth
2. Route Explorer — Browse all registered REST API routes with search and filtering
3. Collections — Save, organize, and run request collections
4. Request Logger — Monitor and filter REST API traffic

== Changelog ==

= 1.1.0 =
* Initial release with full feature set
* Route explorer with caching and source detection
* Request builder with pre-scripts and assertions
* Collections, environments, history, profiler, logger
* Mock response simulation
* Code generation (cURL/PHP/JS)
