Skip to content

Template REST API

Templates are exposed through metadata endpoints and can be registered through the schema API. There is no dedicated HTTP endpoint for APPLY TEMPLATE at this time.

MethodRoute
GET/api/dereg/templates
GET/api/dereg/templates/{name}
GET/api/dereg/templates/{name}/params
GET/api/dereg/templates/{name}/instances

These routes return Arrow IPC backed by:

  • template definitions
  • template parameters
  • recorded template instantiations

Use the optional schema API:

MethodRoute
POST/api/deql/create

with a DeQL CREATE TEMPLATE ... statement.

  • The current schema API validates only CREATE ... statements.
  • Template application remains a DeQL/runtime operation rather than a standalone REST route.