IBM WebSphere · Capability

Open Liberty APIs — OpenAPI

Open Liberty APIs — OpenAPI. 2 operations. Lead operation: Get Openapi Document. Self-contained Naftiko capability covering one Websphere business surface.

Run with Naftiko WebsphereOpenAPI

What You Can Do

GET
Getopenapidocument — Get Openapi Document
/v1/openapi
GET
Getopenapiui — Access the Openapi Ui
/v1/openapi/ui

MCP Tools

get-openapi-document

Get Openapi Document

read-only idempotent
access-openapi-ui

Access the Openapi Ui

read-only idempotent

Capability Spec

open-liberty-apis-openapi.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Open Liberty APIs — OpenAPI
  description: 'Open Liberty APIs — OpenAPI. 2 operations. Lead operation: Get Openapi Document. Self-contained Naftiko capability
    covering one Websphere business surface.'
  tags:
  - Websphere
  - OpenAPI
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    WEBSPHERE_API_KEY: WEBSPHERE_API_KEY
capability:
  consumes:
  - type: http
    namespace: open-liberty-apis-openapi
    baseUri: https://localhost:9443
    description: Open Liberty APIs — OpenAPI business capability. Self-contained, no shared references.
    resources:
    - name: openapi
      path: /openapi
      operations:
      - name: getopenapidocument
        method: GET
        description: Get Openapi Document
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: format
          in: query
          type: string
          description: Output format
    - name: openapi-ui
      path: /openapi/ui
      operations:
      - name: getopenapiui
        method: GET
        description: Access the Openapi Ui
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    authentication:
      type: bearer
      token: '{{env.WEBSPHERE_API_KEY}}'
  exposes:
  - type: rest
    namespace: open-liberty-apis-openapi-rest
    port: 8080
    description: REST adapter for Open Liberty APIs — OpenAPI. One Spectral-compliant resource per consumed operation, prefixed
      with /v1.
    resources:
    - path: /v1/openapi
      name: openapi
      description: REST surface for openapi.
      operations:
      - method: GET
        name: getopenapidocument
        description: Get Openapi Document
        call: open-liberty-apis-openapi.getopenapidocument
        with:
          format: rest.format
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/openapi/ui
      name: openapi-ui
      description: REST surface for openapi-ui.
      operations:
      - method: GET
        name: getopenapiui
        description: Access the Openapi Ui
        call: open-liberty-apis-openapi.getopenapiui
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: open-liberty-apis-openapi-mcp
    port: 9090
    transport: http
    description: MCP adapter for Open Liberty APIs — OpenAPI. One tool per consumed operation, routed inline through this
      capability's consumes block.
    tools:
    - name: get-openapi-document
      description: Get Openapi Document
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: open-liberty-apis-openapi.getopenapidocument
      with:
        format: tools.format
      outputParameters:
      - type: object
        mapping: $.
    - name: access-openapi-ui
      description: Access the Openapi Ui
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: open-liberty-apis-openapi.getopenapiui
      outputParameters:
      - type: object
        mapping: $.