DataHub · Capability

DataHub OpenAPI — Relationships

DataHub OpenAPI — Relationships. 1 operations. Lead operation: DataHub Query entity relationships. Self-contained Naftiko capability covering one Datahub business surface.

Run with Naftiko DatahubRelationships

What You Can Do

GET
Getrelationships — DataHub Query entity relationships
/v1/relationships/v1

MCP Tools

datahub-query-entity-relationships

DataHub Query entity relationships

read-only idempotent

Capability Spec

openapi-relationships.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: DataHub OpenAPI — Relationships
  description: 'DataHub OpenAPI — Relationships. 1 operations. Lead operation: DataHub Query entity relationships. Self-contained
    Naftiko capability covering one Datahub business surface.'
  tags:
  - Datahub
  - Relationships
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    DATAHUB_API_KEY: DATAHUB_API_KEY
capability:
  consumes:
  - type: http
    namespace: openapi-relationships
    baseUri: http://localhost:8080
    description: DataHub OpenAPI — Relationships business capability. Self-contained, no shared references.
    resources:
    - name: relationships-v1
      path: /relationships/v1/
      operations:
      - name: getrelationships
        method: GET
        description: DataHub Query entity relationships
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: urn
          in: query
          type: string
          description: The URN of the target entity to query relationships for.
          required: true
        - name: relationshipTypes
          in: query
          type: array
          description: Filter results to specific relationship types such as OwnedBy, Contains, DownstreamOf, or Produces.
        - name: direction
          in: query
          type: string
          description: Direction of relationship traversal relative to the target entity.
        - name: start
          in: query
          type: integer
          description: Pagination offset for the result set.
        - name: count
          in: query
          type: integer
          description: Maximum number of relationships to return.
    authentication:
      type: bearer
      token: '{{env.DATAHUB_API_KEY}}'
  exposes:
  - type: rest
    namespace: openapi-relationships-rest
    port: 8080
    description: REST adapter for DataHub OpenAPI — Relationships. One Spectral-compliant resource per consumed operation,
      prefixed with /v1.
    resources:
    - path: /v1/relationships/v1
      name: relationships-v1
      description: REST surface for relationships-v1.
      operations:
      - method: GET
        name: getrelationships
        description: DataHub Query entity relationships
        call: openapi-relationships.getrelationships
        with:
          urn: rest.urn
          relationshipTypes: rest.relationshipTypes
          direction: rest.direction
          start: rest.start
          count: rest.count
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: openapi-relationships-mcp
    port: 9090
    transport: http
    description: MCP adapter for DataHub OpenAPI — Relationships. One tool per consumed operation, routed inline through this
      capability's consumes block.
    tools:
    - name: datahub-query-entity-relationships
      description: DataHub Query entity relationships
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: openapi-relationships.getrelationships
      with:
        urn: tools.urn
        relationshipTypes: tools.relationshipTypes
        direction: tools.direction
        start: tools.start
        count: tools.count
      outputParameters:
      - type: object
        mapping: $.