SwaggerHub · Capability

SwaggerHub Registry API — Standardization

SwaggerHub Registry API — Standardization. 2 operations. Lead operation: Get Spectral Ruleset Bundle. Self-contained Naftiko capability covering one Swaggerhub business surface.

Run with Naftiko SwaggerhubStandardization

What You Can Do

GET
Getspectralrulesetbundle — Get Spectral Ruleset Bundle
/v1/standardization/spectral-rulesets/{owner}/{name}/zip
PUT
Uploadspectralrulesetbundle — Upload Spectral Ruleset Bundle
/v1/standardization/spectral-rulesets/{owner}/{name}/zip

MCP Tools

get-spectral-ruleset-bundle

Get Spectral Ruleset Bundle

read-only idempotent
upload-spectral-ruleset-bundle

Upload Spectral Ruleset Bundle

idempotent

Capability Spec

registry-standardization.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: SwaggerHub Registry API — Standardization
  description: 'SwaggerHub Registry API — Standardization. 2 operations. Lead operation: Get Spectral Ruleset Bundle. Self-contained
    Naftiko capability covering one Swaggerhub business surface.'
  tags:
  - Swaggerhub
  - Standardization
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    SWAGGERHUB_API_KEY: SWAGGERHUB_API_KEY
capability:
  consumes:
  - type: http
    namespace: registry-standardization
    baseUri: https://api.swaggerhub.com
    description: SwaggerHub Registry API — Standardization business capability. Self-contained, no shared references.
    resources:
    - name: standardization-spectral-rulesets-owner-name-zip
      path: /standardization/spectral-rulesets/{owner}/{name}/zip
      operations:
      - name: getspectralrulesetbundle
        method: GET
        description: Get Spectral Ruleset Bundle
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: owner
          in: path
          type: string
          required: true
        - name: name
          in: path
          type: string
          required: true
      - name: uploadspectralrulesetbundle
        method: PUT
        description: Upload Spectral Ruleset Bundle
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: owner
          in: path
          type: string
          required: true
        - name: name
          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-standardization-rest
    port: 8080
    description: REST adapter for SwaggerHub Registry API — Standardization. One Spectral-compliant resource per consumed
      operation, prefixed with /v1.
    resources:
    - path: /v1/standardization/spectral-rulesets/{owner}/{name}/zip
      name: standardization-spectral-rulesets-owner-name-zip
      description: REST surface for standardization-spectral-rulesets-owner-name-zip.
      operations:
      - method: GET
        name: getspectralrulesetbundle
        description: Get Spectral Ruleset Bundle
        call: registry-standardization.getspectralrulesetbundle
        with:
          owner: rest.owner
          name: rest.name
        outputParameters:
        - type: object
          mapping: $.
      - method: PUT
        name: uploadspectralrulesetbundle
        description: Upload Spectral Ruleset Bundle
        call: registry-standardization.uploadspectralrulesetbundle
        with:
          owner: rest.owner
          name: rest.name
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: registry-standardization-mcp
    port: 9090
    transport: http
    description: MCP adapter for SwaggerHub Registry API — Standardization. One tool per consumed operation, routed inline
      through this capability's consumes block.
    tools:
    - name: get-spectral-ruleset-bundle
      description: Get Spectral Ruleset Bundle
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: registry-standardization.getspectralrulesetbundle
      with:
        owner: tools.owner
        name: tools.name
      outputParameters:
      - type: object
        mapping: $.
    - name: upload-spectral-ruleset-bundle
      description: Upload Spectral Ruleset Bundle
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: registry-standardization.uploadspectralrulesetbundle
      with:
        owner: tools.owner
        name: tools.name
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.