API REST (api.rest)
The api.rest module provides a RESTful API for WP3 Pro, enabling programmatic interaction with modules, proxies, and configurations.This allows integration with third-party tools, automation scripts, and remote management.
Module Usage
Description
- api.rest (running): The WP3 Pro RESTful API interface.
API REST Parameters
| Parameter | Description | Default |
|---|---|---|
api.rest.address | Address to bind the API REST server to. | 127.0.0.1 |
api.rest.alloworigin | Value for the Access-Control-Allow-Origin header (CORS control). | * |
api.rest.certificate | Path to the API TLS certificate for HTTPS. | (empty) |
api.rest.key | API JWT secret key (default is randomly generated). | (random) |
api.rest.password | API authentication password. | user |
api.rest.port | Port where the REST API listens. | 8083 |
api.rest.username | API authentication username. | user |
Examples
Start the REST API on default parameters:Security Notes
Summary
The api.rest module provides: A fully RESTful API to control WP3 Pro.- CORS support via alloworigin.
- TLS support for secure communication.
- Authentication with configurable username and password.
💡 Tip: Combine api.rest with automation scripts to create custom workflows or integrate WP3 Pro into larger testing frameworks.