SmartBear · Capability

SmartBear SwaggerHub API — Projects

SmartBear SwaggerHub API — Projects. 6 operations. Lead operation: Get Owner Projects. Self-contained Naftiko capability covering one Smartbear business surface.

Run with Naftiko SmartbearProjects

What You Can Do

GET
Getownerprojects — Get Owner Projects
/v1/projects/{owner}
POST
Createproject — Create Project
/v1/projects/{owner}
GET
Getproject — Get Project
/v1/projects/{owner}/{project}
DELETE
Deleteproject — Delete Project
/v1/projects/{owner}/{project}
POST
Addapitoproject — Add API To Project
/v1/projects/{owner}/{project}/apis
POST
Adddomaintoproject — Add Domain To Project
/v1/projects/{owner}/{project}/domains

MCP Tools

get-owner-projects

Get Owner Projects

read-only idempotent
create-project

Create Project

get-project

Get Project

read-only idempotent
delete-project

Delete Project

idempotent
add-api-project

Add API To Project

add-domain-project

Add Domain To Project

Capability Spec

swaggerhub-projects.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: SmartBear SwaggerHub API — Projects
  description: 'SmartBear SwaggerHub API — Projects. 6 operations. Lead operation: Get Owner Projects. Self-contained Naftiko
    capability covering one Smartbear business surface.'
  tags:
  - Smartbear
  - Projects
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    SMARTBEAR_API_KEY: SMARTBEAR_API_KEY
capability:
  consumes:
  - type: http
    namespace: swaggerhub-projects
    baseUri: https://api.swaggerhub.com
    description: SmartBear SwaggerHub API — Projects business capability. Self-contained, no shared references.
    resources:
    - name: projects-owner
      path: /projects/{owner}
      operations:
      - name: getownerprojects
        method: GET
        description: Get Owner Projects
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: owner
          in: path
          type: string
          required: true
      - name: createproject
        method: POST
        description: Create Project
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: owner
          in: path
          type: string
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: projects-owner-project
      path: /projects/{owner}/{project}
      operations:
      - name: getproject
        method: GET
        description: Get Project
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: owner
          in: path
          type: string
          required: true
        - name: project
          in: path
          type: string
          required: true
      - name: deleteproject
        method: DELETE
        description: Delete Project
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: owner
          in: path
          type: string
          required: true
        - name: project
          in: path
          type: string
          required: true
    - name: projects-owner-project-apis
      path: /projects/{owner}/{project}/apis
      operations:
      - name: addapitoproject
        method: POST
        description: Add API To Project
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: owner
          in: path
          type: string
          required: true
        - name: project
          in: path
          type: string
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: projects-owner-project-domains
      path: /projects/{owner}/{project}/domains
      operations:
      - name: adddomaintoproject
        method: POST
        description: Add Domain To Project
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: owner
          in: path
          type: string
          required: true
        - name: project
          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.SMARTBEAR_API_KEY}}'
      placement: header
  exposes:
  - type: rest
    namespace: swaggerhub-projects-rest
    port: 8080
    description: REST adapter for SmartBear SwaggerHub API — Projects. One Spectral-compliant resource per consumed operation,
      prefixed with /v1.
    resources:
    - path: /v1/projects/{owner}
      name: projects-owner
      description: REST surface for projects-owner.
      operations:
      - method: GET
        name: getownerprojects
        description: Get Owner Projects
        call: swaggerhub-projects.getownerprojects
        with:
          owner: rest.owner
        outputParameters:
        - type: object
          mapping: $.
      - method: POST
        name: createproject
        description: Create Project
        call: swaggerhub-projects.createproject
        with:
          owner: rest.owner
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/projects/{owner}/{project}
      name: projects-owner-project
      description: REST surface for projects-owner-project.
      operations:
      - method: GET
        name: getproject
        description: Get Project
        call: swaggerhub-projects.getproject
        with:
          owner: rest.owner
          project: rest.project
        outputParameters:
        - type: object
          mapping: $.
      - method: DELETE
        name: deleteproject
        description: Delete Project
        call: swaggerhub-projects.deleteproject
        with:
          owner: rest.owner
          project: rest.project
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/projects/{owner}/{project}/apis
      name: projects-owner-project-apis
      description: REST surface for projects-owner-project-apis.
      operations:
      - method: POST
        name: addapitoproject
        description: Add API To Project
        call: swaggerhub-projects.addapitoproject
        with:
          owner: rest.owner
          project: rest.project
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/projects/{owner}/{project}/domains
      name: projects-owner-project-domains
      description: REST surface for projects-owner-project-domains.
      operations:
      - method: POST
        name: adddomaintoproject
        description: Add Domain To Project
        call: swaggerhub-projects.adddomaintoproject
        with:
          owner: rest.owner
          project: rest.project
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: swaggerhub-projects-mcp
    port: 9090
    transport: http
    description: MCP adapter for SmartBear SwaggerHub API — Projects. One tool per consumed operation, routed inline through
      this capability's consumes block.
    tools:
    - name: get-owner-projects
      description: Get Owner Projects
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: swaggerhub-projects.getownerprojects
      with:
        owner: tools.owner
      outputParameters:
      - type: object
        mapping: $.
    - name: create-project
      description: Create Project
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: swaggerhub-projects.createproject
      with:
        owner: tools.owner
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: get-project
      description: Get Project
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: swaggerhub-projects.getproject
      with:
        owner: tools.owner
        project: tools.project
      outputParameters:
      - type: object
        mapping: $.
    - name: delete-project
      description: Delete Project
      hints:
        readOnly: false
        destructive: true
        idempotent: true
      call: swaggerhub-projects.deleteproject
      with:
        owner: tools.owner
        project: tools.project
      outputParameters:
      - type: object
        mapping: $.
    - name: add-api-project
      description: Add API To Project
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: swaggerhub-projects.addapitoproject
      with:
        owner: tools.owner
        project: tools.project
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: add-domain-project
      description: Add Domain To Project
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: swaggerhub-projects.adddomaintoproject
      with:
        owner: tools.owner
        project: tools.project
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.