Extending the API
Extensions can provide their own actions and scopes. They are available as HTTP endpoints for apps and for backend JavaScript without any further integration code.
Turn a public method of a service into an action with a PHP attribute.
The channels through which an action is offered.
What an action receives, and where its parameters come from.
Report errors with exceptions that define the HTTP status code.
Provide your own scopes to grant access to groups of actions.
Describe PHP types as JSON Schema and turn raw data into PHP values.
Turn a public method of a service into an action with a PHP attribute.
Actions
Turn a public method of a service into an action with a PHP attribute.
The channels through which an action is offered.
Targets
The channels through which an action is offered.
What an action receives, and where its parameters come from.
Context and parameters
What an action receives, and where its parameters come from.
Report errors with exceptions that define the HTTP status code.
Errors
Report errors with exceptions that define the HTTP status code.
Provide your own scopes to grant access to groups of actions.
Custom scopes
Provide your own scopes to grant access to groups of actions.
Describe PHP types as JSON Schema and turn raw data into PHP values.
JSON Schema builder and hydrator
Describe PHP types as JSON Schema and turn raw data into PHP values.