Terrain Discovery Environment API — Sharing

Terrain Discovery Environment API — Sharing. 2 operations. Lead operation: Share Data with Users. Self-contained Naftiko capability covering one Terrain Discovery Environment Api business surface.

Run with Naftiko Terrain Discovery Environment ApiSharing

What You Can Do

POST
Sharedatawithusers — Share Data with Users
/v1/secured/filesystem/share
POST
Unsharedata — Unshare Data
/v1/secured/filesystem/unshare

MCP Tools

share-data-users

Share Data with Users

unshare-data

Unshare Data

Capability Spec

terrain-sharing.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Terrain Discovery Environment API — Sharing
  description: 'Terrain Discovery Environment API — Sharing. 2 operations. Lead operation: Share Data with Users. Self-contained
    Naftiko capability covering one Terrain Discovery Environment Api business surface.'
  tags:
  - Terrain Discovery Environment Api
  - Sharing
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    TERRAIN_DISCOVERY_ENVIRONMENT_API_API_KEY: TERRAIN_DISCOVERY_ENVIRONMENT_API_API_KEY
capability:
  consumes:
  - type: http
    namespace: terrain-sharing
    baseUri: https://de.cyverse.org/terrain
    description: Terrain Discovery Environment API — Sharing business capability. Self-contained, no shared references.
    resources:
    - name: secured-filesystem-share
      path: /secured/filesystem/share
      operations:
      - name: sharedatawithusers
        method: POST
        description: Share Data with Users
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: secured-filesystem-unshare
      path: /secured/filesystem/unshare
      operations:
      - name: unsharedata
        method: POST
        description: Unshare Data
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    authentication:
      type: bearer
      token: '{{env.TERRAIN_DISCOVERY_ENVIRONMENT_API_API_KEY}}'
  exposes:
  - type: rest
    namespace: terrain-sharing-rest
    port: 8080
    description: REST adapter for Terrain Discovery Environment API — Sharing. One Spectral-compliant resource per consumed
      operation, prefixed with /v1.
    resources:
    - path: /v1/secured/filesystem/share
      name: secured-filesystem-share
      description: REST surface for secured-filesystem-share.
      operations:
      - method: POST
        name: sharedatawithusers
        description: Share Data with Users
        call: terrain-sharing.sharedatawithusers
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/secured/filesystem/unshare
      name: secured-filesystem-unshare
      description: REST surface for secured-filesystem-unshare.
      operations:
      - method: POST
        name: unsharedata
        description: Unshare Data
        call: terrain-sharing.unsharedata
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: terrain-sharing-mcp
    port: 9090
    transport: http
    description: MCP adapter for Terrain Discovery Environment API — Sharing. One tool per consumed operation, routed inline
      through this capability's consumes block.
    tools:
    - name: share-data-users
      description: Share Data with Users
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: terrain-sharing.sharedatawithusers
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: unshare-data
      description: Unshare Data
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: terrain-sharing.unsharedata
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.