DataHub · Capability

DataHub OpenAPI — Entities

DataHub OpenAPI — Entities. 3 operations. Lead operation: DataHub Upsert entity aspects. Self-contained Naftiko capability covering one Datahub business surface.

Run with Naftiko DatahubEntities

What You Can Do

POST
Upsertentities — DataHub Upsert entity aspects
/v1/entities/v1
DELETE
Deleteentities — DataHub Delete entities
/v1/entities/v1
GET
Getentitylatestaspects — DataHub Retrieve latest entity aspects
/v1/entities/v1/latest

MCP Tools

datahub-upsert-entity-aspects

DataHub Upsert entity aspects

datahub-delete-entities

DataHub Delete entities

idempotent
datahub-retrieve-latest-entity-aspects

DataHub Retrieve latest entity aspects

read-only idempotent

Capability Spec

openapi-entities.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: DataHub OpenAPI — Entities
  description: 'DataHub OpenAPI — Entities. 3 operations. Lead operation: DataHub Upsert entity aspects. Self-contained Naftiko
    capability covering one Datahub business surface.'
  tags:
  - Datahub
  - Entities
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    DATAHUB_API_KEY: DATAHUB_API_KEY
capability:
  consumes:
  - type: http
    namespace: openapi-entities
    baseUri: http://localhost:8080
    description: DataHub OpenAPI — Entities business capability. Self-contained, no shared references.
    resources:
    - name: entities-v1
      path: /entities/v1/
      operations:
      - name: upsertentities
        method: POST
        description: DataHub Upsert entity aspects
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
      - name: deleteentities
        method: DELETE
        description: DataHub Delete entities
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: entities-v1-latest
      path: /entities/v1/latest
      operations:
      - name: getentitylatestaspects
        method: GET
        description: DataHub Retrieve latest entity aspects
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    authentication:
      type: bearer
      token: '{{env.DATAHUB_API_KEY}}'
  exposes:
  - type: rest
    namespace: openapi-entities-rest
    port: 8080
    description: REST adapter for DataHub OpenAPI — Entities. One Spectral-compliant resource per consumed operation, prefixed
      with /v1.
    resources:
    - path: /v1/entities/v1
      name: entities-v1
      description: REST surface for entities-v1.
      operations:
      - method: POST
        name: upsertentities
        description: DataHub Upsert entity aspects
        call: openapi-entities.upsertentities
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
      - method: DELETE
        name: deleteentities
        description: DataHub Delete entities
        call: openapi-entities.deleteentities
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/entities/v1/latest
      name: entities-v1-latest
      description: REST surface for entities-v1-latest.
      operations:
      - method: GET
        name: getentitylatestaspects
        description: DataHub Retrieve latest entity aspects
        call: openapi-entities.getentitylatestaspects
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: openapi-entities-mcp
    port: 9090
    transport: http
    description: MCP adapter for DataHub OpenAPI — Entities. One tool per consumed operation, routed inline through this capability's
      consumes block.
    tools:
    - name: datahub-upsert-entity-aspects
      description: DataHub Upsert entity aspects
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: openapi-entities.upsertentities
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: datahub-delete-entities
      description: DataHub Delete entities
      hints:
        readOnly: false
        destructive: true
        idempotent: true
      call: openapi-entities.deleteentities
      outputParameters:
      - type: object
        mapping: $.
    - name: datahub-retrieve-latest-entity-aspects
      description: DataHub Retrieve latest entity aspects
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: openapi-entities.getentitylatestaspects
      outputParameters:
      - type: object
        mapping: $.