CloudHealth · Capability

CloudHealth REST API — Perspectives

CloudHealth REST API — Perspectives. 2 operations. Lead operation: List perspective schemas. Self-contained Naftiko capability covering one Cloudhealth business surface.

Run with Naftiko CloudhealthPerspectives

What You Can Do

GET
Listperspectives — List perspective schemas
/v1/v1/perspective-schemas
POST
Createperspective — Create a perspective
/v1/v1/perspective-schemas

MCP Tools

list-perspective-schemas

List perspective schemas

read-only idempotent
create-perspective

Create a perspective

Capability Spec

cloudhealth-perspectives.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: CloudHealth REST API — Perspectives
  description: 'CloudHealth REST API — Perspectives. 2 operations. Lead operation: List perspective schemas. Self-contained
    Naftiko capability covering one Cloudhealth business surface.'
  tags:
  - Cloudhealth
  - Perspectives
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    CLOUDHEALTH_API_KEY: CLOUDHEALTH_API_KEY
capability:
  consumes:
  - type: http
    namespace: cloudhealth-perspectives
    baseUri: https://chapi.cloudhealthtech.com
    description: CloudHealth REST API — Perspectives business capability. Self-contained, no shared references.
    resources:
    - name: v1-perspective_schemas
      path: /v1/perspective_schemas
      operations:
      - name: listperspectives
        method: GET
        description: List perspective schemas
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: createperspective
        method: POST
        description: Create a perspective
        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.CLOUDHEALTH_API_KEY}}'
  exposes:
  - type: rest
    namespace: cloudhealth-perspectives-rest
    port: 8080
    description: REST adapter for CloudHealth REST API — Perspectives. One Spectral-compliant resource per consumed operation,
      prefixed with /v1.
    resources:
    - path: /v1/v1/perspective-schemas
      name: v1-perspective-schemas
      description: REST surface for v1-perspective_schemas.
      operations:
      - method: GET
        name: listperspectives
        description: List perspective schemas
        call: cloudhealth-perspectives.listperspectives
        outputParameters:
        - type: object
          mapping: $.
      - method: POST
        name: createperspective
        description: Create a perspective
        call: cloudhealth-perspectives.createperspective
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: cloudhealth-perspectives-mcp
    port: 9090
    transport: http
    description: MCP adapter for CloudHealth REST API — Perspectives. One tool per consumed operation, routed inline through
      this capability's consumes block.
    tools:
    - name: list-perspective-schemas
      description: List perspective schemas
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: cloudhealth-perspectives.listperspectives
      outputParameters:
      - type: object
        mapping: $.
    - name: create-perspective
      description: Create a perspective
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: cloudhealth-perspectives.createperspective
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.