Oracle APEX · Capability

Oracle REST Data Services (ORDS) REST API — Templates

Oracle REST Data Services (ORDS) REST API — Templates. 5 operations. Lead operation: Get all REST module templates. Self-contained Naftiko capability covering one Oracle Apex business surface.

Run with Naftiko Oracle ApexTemplates

What You Can Do

GET
Listtemplates — Get all REST module templates
/v1/ords/rest/templates
POST
Createtemplate — Create a REST module template
/v1/ords/rest/templates
GET
Gettemplate — Get a REST module template
/v1/ords/rest/templates/{id}
PUT
Updatetemplate — Update a REST module template
/v1/ords/rest/templates/{id}
DELETE
Deletetemplate — Delete a REST module template
/v1/ords/rest/templates/{id}

MCP Tools

get-all-rest-module-templates

Get all REST module templates

read-only idempotent
create-rest-module-template

Create a REST module template

get-rest-module-template

Get a REST module template

read-only idempotent
update-rest-module-template

Update a REST module template

idempotent
delete-rest-module-template

Delete a REST module template

idempotent

Capability Spec

ords-rest-templates.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Oracle REST Data Services (ORDS) REST API — Templates
  description: 'Oracle REST Data Services (ORDS) REST API — Templates. 5 operations. Lead operation: Get all REST module templates.
    Self-contained Naftiko capability covering one Oracle Apex business surface.'
  tags:
  - Oracle Apex
  - Templates
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    ORACLE_APEX_API_KEY: ORACLE_APEX_API_KEY
capability:
  consumes:
  - type: http
    namespace: ords-rest-templates
    baseUri: https://{host}:{port}/ords/_/db-api/stable
    description: Oracle REST Data Services (ORDS) REST API — Templates business capability. Self-contained, no shared references.
    resources:
    - name: ords-rest-templates
      path: /ords/rest/templates/
      operations:
      - name: listtemplates
        method: GET
        description: Get all REST module templates
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: createtemplate
        method: POST
        description: Create a REST module template
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: ords-rest-templates-id
      path: /ords/rest/templates/{id}
      operations:
      - name: gettemplate
        method: GET
        description: Get a REST module template
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: updatetemplate
        method: PUT
        description: Update a REST module template
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
      - name: deletetemplate
        method: DELETE
        description: Delete a REST module template
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    authentication:
      type: bearer
      token: '{{env.ORACLE_APEX_API_KEY}}'
  exposes:
  - type: rest
    namespace: ords-rest-templates-rest
    port: 8080
    description: REST adapter for Oracle REST Data Services (ORDS) REST API — Templates. One Spectral-compliant resource per
      consumed operation, prefixed with /v1.
    resources:
    - path: /v1/ords/rest/templates
      name: ords-rest-templates
      description: REST surface for ords-rest-templates.
      operations:
      - method: GET
        name: listtemplates
        description: Get all REST module templates
        call: ords-rest-templates.listtemplates
        outputParameters:
        - type: object
          mapping: $.
      - method: POST
        name: createtemplate
        description: Create a REST module template
        call: ords-rest-templates.createtemplate
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/ords/rest/templates/{id}
      name: ords-rest-templates-id
      description: REST surface for ords-rest-templates-id.
      operations:
      - method: GET
        name: gettemplate
        description: Get a REST module template
        call: ords-rest-templates.gettemplate
        outputParameters:
        - type: object
          mapping: $.
      - method: PUT
        name: updatetemplate
        description: Update a REST module template
        call: ords-rest-templates.updatetemplate
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
      - method: DELETE
        name: deletetemplate
        description: Delete a REST module template
        call: ords-rest-templates.deletetemplate
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: ords-rest-templates-mcp
    port: 9090
    transport: http
    description: MCP adapter for Oracle REST Data Services (ORDS) REST API — Templates. One tool per consumed operation, routed
      inline through this capability's consumes block.
    tools:
    - name: get-all-rest-module-templates
      description: Get all REST module templates
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: ords-rest-templates.listtemplates
      outputParameters:
      - type: object
        mapping: $.
    - name: create-rest-module-template
      description: Create a REST module template
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: ords-rest-templates.createtemplate
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: get-rest-module-template
      description: Get a REST module template
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: ords-rest-templates.gettemplate
      outputParameters:
      - type: object
        mapping: $.
    - name: update-rest-module-template
      description: Update a REST module template
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: ords-rest-templates.updatetemplate
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: delete-rest-module-template
      description: Delete a REST module template
      hints:
        readOnly: false
        destructive: true
        idempotent: true
      call: ords-rest-templates.deletetemplate
      outputParameters:
      - type: object
        mapping: $.