Endpoint Generator
Overview
azu generate endpoint <name> [options]Basic Usage
# Generate endpoint with default index action
azu generate endpoint users
# Generate with namespace
azu generate endpoint admin/users
# Generate API endpoint
azu generate endpoint api/v1/users --api
# Generate with specific actions
azu generate endpoint posts --actions index,show,create,update,destroyCommand Options
Option
Description
Default
Generated Files
Endpoint Structure
Index Endpoint
Show Endpoint
Create Endpoint
Update Endpoint
Destroy Endpoint
Request Types
Response Types
Page Types (Web Endpoints)
HTTP Verb Macros
Macro
HTTP Method
Example
Accessing Request Data
Error Handling
Examples
API Endpoints
Nested Resources
Last updated