generate_rest_endpoint
Create WordPress REST API endpoints by defining namespace, route, HTTP method, parameters, and callback function for custom API functionality.
Instructions
Generate WordPress REST API endpoint
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| namespace | Yes | REST API namespace | |
| route | Yes | Route path | |
| method | No | HTTP method | |
| description | No | Endpoint description | |
| parameters | No | Endpoint parameters | |
| callback | Yes | Callback function name |