#111046Introduce Action API as typed RPC layer for remote systems
Description
TYPO3 lacks a uniform, machine-readable way for remote systems (JavaScript clients, integrations, AI agents) to invoke backend functionality. AJAX routes and custom controllers each do their own argument parsing, validation, permission checks and response formatting, and none of them is self-describing.
Introduce an Action API: service methods marked with a new #[AsAction] attribute become RPC actions. Their input and output JSON Schema is derived from the method signature (native and PHPDoc types) at container compile time.
- Arguments and results are validated against the derived schema
- An
ActionType(fetch, create, replace, update, delete, dispatch) maps each action to an HTTP verb - Access is restricted by scopes (
content:read,content:write, extensible viaScopeInterface) - In the backend, actions are exposed as JSON endpoints below
/typo3/api/, authenticated with a user-bound bearer token, plus a small JavaScript client module
The JSON Schema descriptions are the basis for generating an OpenAPI 3.1 document and exposing actions via MCP in follow-up changes
Reviews 2
History 19
-
Gerrit Code Review pushed patch set 55 for main to change 91563 status
NewUnder Review <span data-processor="relativetime" data-value="2026-10-14T11:03:23+00:00" > 10/14/26, 11:03 </span> -
Gerrit Code Review pushed patch set 56 for main to change 91563 <span data-processor="relativetime" data-value="2026-10-14T11:06:11+00:00" > 10/14/26, 11:06 </span>
-
Gerrit Code Review pushed patch set 57 for main to change 91563 <span data-processor="relativetime" data-value="2026-10-14T12:54:00+00:00" > 10/14/26, 12:54 </span>
-
Benjamin Franzke changed parent task #111053 <span data-processor="relativetime" data-value="2026-10-14T12:57:43+00:00" > 10/14/26, 12:57 </span>
-
Gerrit Code Review pushed patch set 58 for main to change 91563 <span data-processor="relativetime" data-value="2026-10-28T13:44:17+00:00" > 10/28/26, 13:44 </span>
-
Gerrit Code Review pushed patch set 59 for main to change 91563 <span data-processor="relativetime" data-value="2026-11-03T17:36:55+00:00" > 11/03/26, 17:36 </span>
-
Gerrit Code Review pushed patch set 60 for main to change 91563 <span data-processor="relativetime" data-value="2026-11-03T20:11:40+00:00" > 11/03/26, 20:11 </span>
-
Gerrit Code Review pushed patch set 61 for main to change 91563 <span data-processor="relativetime" data-value="2026-11-04T16:04:08+00:00" > 11/04/26, 16:04 </span>
-
Gerrit Code Review pushed patch set 62 for main to change 91563 <span data-processor="relativetime" data-value="2026-11-06T10:12:00+00:00" > 11/06/26, 10:12 </span>