scaffold_rest_module
Generate a REST API module with controller, middleware, form requests, routes, and provider, including authentication and validation scaffolding for WordPress plugins.
Instructions
Generate a REST API module: Controller, Middleware, FormRequest, route file, and provider. Includes authentication and validation scaffolding.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| rootNamespace | Yes | Plugin root namespace | |
| resourceName | Yes | Resource name in PascalCase (e.g., "Product") | |
| endpoints | Yes | Comma-separated endpoints (e.g., "index,show,store,update,delete") | |
| withAuth | No | Include auth middleware (default: true) |