SwaggerHub · Capability

SwaggerHub Registry API — Settings

SwaggerHub Registry API — Settings. 2 operations. Lead operation: Get Lifecycle Settings. Self-contained Naftiko capability covering one Swaggerhub business surface.

Run with Naftiko SwaggerhubSettings

What You Can Do

GET
Getlifecyclesettings — Get Lifecycle Settings
/v1/apis/{owner}/{api}/{version}/settings/lifecycle
PUT
Updatelifecyclesettings — Update Lifecycle Settings
/v1/apis/{owner}/{api}/{version}/settings/lifecycle

MCP Tools

get-lifecycle-settings

Get Lifecycle Settings

read-only idempotent
update-lifecycle-settings

Update Lifecycle Settings

idempotent

Capability Spec

registry-settings.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: SwaggerHub Registry API — Settings
  description: 'SwaggerHub Registry API — Settings. 2 operations. Lead operation: Get Lifecycle Settings. Self-contained Naftiko
    capability covering one Swaggerhub business surface.'
  tags:
  - Swaggerhub
  - Settings
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    SWAGGERHUB_API_KEY: SWAGGERHUB_API_KEY
capability:
  consumes:
  - type: http
    namespace: registry-settings
    baseUri: https://api.swaggerhub.com
    description: SwaggerHub Registry API — Settings business capability. Self-contained, no shared references.
    resources:
    - name: apis-owner-api-version-settings-lifecycle
      path: /apis/{owner}/{api}/{version}/settings/lifecycle
      operations:
      - name: getlifecyclesettings
        method: GET
        description: Get Lifecycle Settings
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: owner
          in: path
          type: string
          required: true
        - name: api
          in: path
          type: string
          required: true
        - name: version
          in: path
          type: string
          required: true
      - name: updatelifecyclesettings
        method: PUT
        description: Update Lifecycle Settings
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: owner
          in: path
          type: string
          required: true
        - name: api
          in: path
          type: string
          required: true
        - name: version
          in: path
          type: string
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    authentication:
      type: apikey
      key: Authorization
      value: '{{env.SWAGGERHUB_API_KEY}}'
      placement: header
  exposes:
  - type: rest
    namespace: registry-settings-rest
    port: 8080
    description: REST adapter for SwaggerHub Registry API — Settings. One Spectral-compliant resource per consumed operation,
      prefixed with /v1.
    resources:
    - path: /v1/apis/{owner}/{api}/{version}/settings/lifecycle
      name: apis-owner-api-version-settings-lifecycle
      description: REST surface for apis-owner-api-version-settings-lifecycle.
      operations:
      - method: GET
        name: getlifecyclesettings
        description: Get Lifecycle Settings
        call: registry-settings.getlifecyclesettings
        with:
          owner: rest.owner
          api: rest.api
          version: rest.version
        outputParameters:
        - type: object
          mapping: $.
      - method: PUT
        name: updatelifecyclesettings
        description: Update Lifecycle Settings
        call: registry-settings.updatelifecyclesettings
        with:
          owner: rest.owner
          api: rest.api
          version: rest.version
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: registry-settings-mcp
    port: 9090
    transport: http
    description: MCP adapter for SwaggerHub Registry API — Settings. One tool per consumed operation, routed inline through
      this capability's consumes block.
    tools:
    - name: get-lifecycle-settings
      description: Get Lifecycle Settings
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: registry-settings.getlifecyclesettings
      with:
        owner: tools.owner
        api: tools.api
        version: tools.version
      outputParameters:
      - type: object
        mapping: $.
    - name: update-lifecycle-settings
      description: Update Lifecycle Settings
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: registry-settings.updatelifecyclesettings
      with:
        owner: tools.owner
        api: tools.api
        version: tools.version
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.