ADL 33 · Part IV — Generated interfaces

0.6.0 reconciled + 0.5.1 detail

Complete API reference

ADL 0.6.0 reference · Review draft 1 · November 14, 2026.

Contents · Source map · Evidence

The 0.6 edition note

This chapter remains the API index for the inherited language. Add the Journey interfaces in ADL 54: catalog, artifact, diagram, and dry-run. The current Journey action registrar supplies these four surfaces. Resource transition discovery remains a separate state-machine interface.

Neither a compiled task artifact nor a diagram is an execution endpoint. A Journey’s visible metadata does not grant every operation named in the task. The detailed access and evidence limits belong to ADL 50 and 54.

Retained reference detail

The numbered sections below are carried from 33-complete-api-reference.md. Their original baseline and evidence remain attached to the source. Statements about “current” or “checked” behavior in this retained text refer to those original observations unless the edition note explicitly updates them. This is a consolidated draft, not a claim of complete re-verification.

33.1 Catalog scope and notation

This chapter is the lookup catalog for the HTTP routes generated from an ADL domain by RouteRegistrar at revision 3a1655dc. It includes standard resource operations, relationships, conditional resource features, and domain subsystems. The expanded catalog records the actual method, path, and action registrations produced by the examples.

A complete inventory of this registrar is not a complete inventory of an installed Kalos server. Authentication, platform management, health, store, plugin-specific, and deployment routes belong to the platform manual. The small domain-management discovery table in §33.7 locates the related ADL tools; it does not duplicate their administration contract.

The inherited API chapter (v0.5.0, retired) provides the baseline. Delta §3.4 and signed rulings govern site/path changes. Use ADL 26 for naming, ADL 27 for queries, ADL 28 for configuration, and ADL 31 for errors.

In the tables, P is the domain’s effective API prefix. C is the resource collection path: P, an optional resource API version, and the effective collection segment. I is its item path. Usually I = C/{id}; composite keys use one path segment per key in declared order. Braces denote route parameters; the native registry spells them with colons. Deployment site selection is applied outside these templates as explained in ADL 26.

33.2 Standard resource operations

Method and pathAction suffixRequestSuccess data
GET C.listQuery grammar from ADL 27items, count, pagination members as applicable
POST C.createObject of field valuesCreated record, status 201
GET I.getItem key, optional include/field selectionRecord, status 200
PATCH I.updatePartial field objectUpdated record, status 200
PUT I.putReplacement field objectReplaced record, status 200
DELETE I.deleteItem keyStatus 204
GET C/count.countSupported filtersObject with collection count
GET C/distinct.distinctfield and supported filtersDistinct-value result
POST C/bulk.bulk.create{items: [...]}Bulk result
PATCH C/bulk.bulk.updateitems with keys and changesUpdated items and count
DELETE C/bulk.bulk.delete{ids: [...]}Bulk result

These are eleven method/path pairs for an ordinary exposed resource. The inherited bulk PATCH body {ids, data} is rejected by the checked handler; the current implementation requires an items array containing each item key and its changes. Both forms are exercised and distinguished as a contract discrepancy. Count returns {total: N}; distinct returns {values: [...], count: N}.

distinct uses the query parameter field; there is no standard /distinct/{field} route. Path keys and query parameters are placed in native request data by the transport; the examples exercise that action-side shape.

The response body, when present, uses ADL 31’s envelope. A native 204 response can still be inspected as a Response object by a test adapter; that does not imply a network HTTP response body on a no-content status. The CRUD example records actual payloads for all eleven operations rather than inferring them from OpenAPI summaries.

Query and write behavior

List clients use filter[field], operator filters, sort, limit, offset, page, search, include, scope, fields, and cursor options as documented in ADL 27. The parser recognizes more than the inherited eight comparison operators, and silent handling of unknown query keys makes exact spelling important. This catalog does not introduce a second query grammar or defaults.

Create, PATCH, PUT, and bulk have different validation, lifecycle, and transaction boundaries. PUT replaces values according to its own handler; it is not PATCH under another method. A bulk result or error does not by itself establish all-or-nothing execution. Consult ADL 20, ADL 22, and ADL 29.

Exposure controls

api.disable accepts the five names list, get, create, update, and delete. Disabling update removes the normal PUT and PATCH routes. Count, distinct, and bulk remain registered; in strict parsing unsupported disable names are diagnosed rather than silently providing the requested protection. Generated bus actions can remain callable even when a REST route is disabled.

Domain aliases repeat resource routes under each alias. Resource API version, collection override, standard operation override, and custom operations alter registered pairs. Abstract resources generate no resource routes. ADL 28 owns the declaration grammar and the remaining alias/removal conflicts.

33.3 Relationship and lifecycle routes

Method and pathConditionMeaning
GET I/{relationship}hasManyList related records
GET I/{relationship}belongsToManyList linked records
POST I/{relationship}belongsToManyLink an existing related record
DELETE I/{relationship}/{otherKey}belongsToManyUnlink the key named by otherKey
POST I/transitions/{name}Named state-machine transitionExecute transition

Relationship route segments use kebab case; the corresponding action suffix retains the relationship’s declared name. otherKey is the relationship’s configured or resolved key spelling, not a universal relatedId. Bodies, target identity, permission boundaries, and includes are owned by ADL 12.

hasOne and belongsTo do not add nested mutation routes. Creating a child normally means posting to its own collection with the foreign key set. A nested list route does not imply nested create/read/update/delete endpoints.

One transition name generates one route even when present in several states. Its runtime action suffix is .<name>, and state eligibility is evaluated at execution. ADL 22 owns guards, permission ordering, side effects, and diagnostics. A route listing cannot prove a transition is currently permitted for a particular row.

33.4 Conditional resource routes

Method and pathActivationOwning chapter
POST C/{id}/restorefeatures.softDeleteADL 29
GET C/{id}/audit, GET C/auditfeatures.auditADL 29
GET C/{id}/history, GET C/historyHistory events and display.endpointADL 24
GET C/{id}/versionsfeatures.versioningADL 29
POST C/{id}/revertfeatures.versioningADL 29
GET C/exportfeatures.exportADL 29
POST C/importfeatures.dataImportADL 29
GET C/columns, POST C/columnsSheet mode with dynamic fields enabledADL 40
PATCH C/columns/{name}, DELETE C/columns/{name}Same sheet conditionADL 40
Configured method/path under CCustom operationADL 28

The import URL still says /import; the ADL feature key is dataImport. Language vocabulary and endpoint spelling are different contracts. Version revert identifies its version through the request body; it is not a standard /versions/{version}/revert route.

Some feature item routes are built explicitly with /{id} instead of the composite I path. This source-level limitation must remain visible when working with composite primary keys. A custom route with an empty path defaults to C/{id}/<operation-name> in the registrar. Duplicate method/path pairs can arise from custom declarations; summing table rows is not always a count of unique callable endpoints.

33.5 Domain subsystem routes

These paths are under P, independently of any particular resource collection. The examples register them through the production registrar without starting timers, running workflows, delivering notifications, invoking integrations, or reading/writing file providers. They establish the generated interface; owning chapters establish operation behavior.

Each row gives a base relative to P; listed suffixes extend that base. The slash / denotes the base itself.

Family, base, and ownerMethods and suffixes
Domain rules: /rules — ADL 23GET /, /log, /{name}; POST /{name}/enable, /{name}/disable, /{name}/test
Notifications: /notifications — ADL 35GET /log; POST /test
Schedules: /schedules — ADL 36GET /, /log, /{name}; POST /{name}/run, /{name}/enable, /{name}/disable
Workflows: /workflows — ADL 37GET /, /{name}/instances, /{name}/instances/{id}; POST /{name}/instances/{id}/cancel
Views: /views — ADL 38GET /, /{name}
Reports: /reports — ADL 38GET /, /{name}
Dashboards: /dashboards — ADL 38GET /, /{name}, /{name}/widgets/{widget}
Templates: /templates — ADL 39GET /, /{name}; POST /{name}/generate
Documents: /documents, when templates exist — ADL 39GET /, /{id}, /{id}/metadata
Integrations: /integrations — ADL 44GET /, /{name}/status, /{name}/deadletter; POST /{name}/operations/{operation}, /{name}/deadletter/{id}/retry
Localization enabled: /localization — ADL 46GET /coverage, /missing, /export; POST /import
Every domain: /media — ADL 41GET /, /orphans, /{id}; POST /upload, /bulk-delete; DELETE /{id}

A family is registered when that domain declares the corresponding subsystem; notifications also activate from a resource declaration. Localization uses its enabled flag. Media routes are unconditional.

A webhook integration additionally registers POST on its declared path verbatim. That path need not be under P. Resource API aliases do not repeat all domain subsystem routes. This is why an inventory restricted to a domain prefix can omit an integration route.

Privacy, when enabled, contributes these additional pairs, owned by ADL 45:

MethodPath relative to P/privacy
GET/data-map, /log
POST/legal-hold
DELETE/legal-hold/{id}
GET/subject/{identifier}, /subject/{identifier}/export
POST/subject/{identifier}/erase
PATCH/subject/{identifier}/rectify
POST/subject/{identifier}/restrict, /subject/{identifier}/unrestrict
POST/retention/sweep
POST/subject/{identifier}/consent/grant, /subject/{identifier}/consent/withdraw

33.6 Catalog generation and action identity

The native route catalog includes method, path, and canonical action ID for every registration produced by the selected declarations. Site alpha is explicit in this batch. The action address has a site/domain/resource identity; it is not derived by copying the URL. Legacy compatibility aliases are a host setting, as explained in ADL 26.

The source audit covers every family in register_domain and register_routes_for_prefix, including media, webhooks, privacy, and dynamic columns. The examples turn on both resource and domain-level conditions and retain parse/export limitations separately. The machine-readable catalog and expanded tables identify exactly which declarations were exercised. Conditional counts belong to those fixtures, not to an invariant endpoint count for every ADL domain.

Registration-only evidence proves which tuples the registrar supplies to the kernel. It does not prove handler installation, authentication, HTTP matching, or successful execution of every subsystem. The separate CRUD sequence submits a real domain and dispatches all eleven standard actions against SQLite. That stronger evidence applies to those actions, not automatically to the registration-only subsystem catalog.

33.7 Discovery and use

Discovery routeWhat it describes
GET /api/v1/routesThe running host’s route registry; platform-owned
GET /api/v1/domains/{name}/schemaResolved model/source view with ADL metadata
GET /api/v1/domains/{name}/sourceStored source representation
GET /api/v1/domains/{name}/openapi.jsonGenerated OpenAPI projection
GET /api/v1/domains/{name}/tablesPhysical mapping introspection

Use the running registry to determine what is registered in that host and site. Use ADL 32 to interpret OpenAPI coverage rather than assuming all registered routes have complete request and response schemas. Use the owning chapter to interpret required roles, state, feature settings, request data, and failure consequences.

The verification evidence records source revision/hashes, complete declarations, route/action tuples, standard operation responses, and comparison results. It makes omitted coverage explicit; no public service, notification recipient, or external integration was invoked to create this catalog.