Apache ServiceMix · Capability

Apache ServiceMix REST API — Bundles

Apache ServiceMix REST API — Bundles. 3 operations. Lead operation: Apache ServiceMix List Bundles. Self-contained Naftiko capability covering one Apache Servicemix business surface.

Run with Naftiko Apache ServicemixBundles

What You Can Do

GET
Listbundles — Apache ServiceMix List Bundles
/v1/bundles
GET
Getbundle — Apache ServiceMix Get Bundle
/v1/bundles/{bundleid}
PUT
Updatebundlestate — Apache ServiceMix Update Bundle State
/v1/bundles/{bundleid}

MCP Tools

apache-servicemix-list-bundles

Apache ServiceMix List Bundles

read-only idempotent
apache-servicemix-get-bundle

Apache ServiceMix Get Bundle

read-only idempotent
apache-servicemix-update-bundle-state

Apache ServiceMix Update Bundle State

idempotent

Capability Spec

rest-bundles.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Apache ServiceMix REST API — Bundles
  description: 'Apache ServiceMix REST API — Bundles. 3 operations. Lead operation: Apache ServiceMix List Bundles. Self-contained
    Naftiko capability covering one Apache Servicemix business surface.'
  tags:
  - Apache Servicemix
  - Bundles
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    APACHE_SERVICEMIX_API_KEY: APACHE_SERVICEMIX_API_KEY
capability:
  consumes:
  - type: http
    namespace: rest-bundles
    baseUri: https://servicemix.example.com/api
    description: Apache ServiceMix REST API — Bundles business capability. Self-contained, no shared references.
    resources:
    - name: bundles
      path: /bundles
      operations:
      - name: listbundles
        method: GET
        description: Apache ServiceMix List Bundles
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: bundles-bundleId
      path: /bundles/{bundleId}
      operations:
      - name: getbundle
        method: GET
        description: Apache ServiceMix Get Bundle
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: bundleId
          in: path
          type: integer
          required: true
      - name: updatebundlestate
        method: PUT
        description: Apache ServiceMix Update Bundle State
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: bundleId
          in: path
          type: integer
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
  exposes:
  - type: rest
    namespace: rest-bundles-rest
    port: 8080
    description: REST adapter for Apache ServiceMix REST API — Bundles. One Spectral-compliant resource per consumed operation,
      prefixed with /v1.
    resources:
    - path: /v1/bundles
      name: bundles
      description: REST surface for bundles.
      operations:
      - method: GET
        name: listbundles
        description: Apache ServiceMix List Bundles
        call: rest-bundles.listbundles
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/bundles/{bundleid}
      name: bundles-bundleid
      description: REST surface for bundles-bundleId.
      operations:
      - method: GET
        name: getbundle
        description: Apache ServiceMix Get Bundle
        call: rest-bundles.getbundle
        with:
          bundleId: rest.bundleId
        outputParameters:
        - type: object
          mapping: $.
      - method: PUT
        name: updatebundlestate
        description: Apache ServiceMix Update Bundle State
        call: rest-bundles.updatebundlestate
        with:
          bundleId: rest.bundleId
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: rest-bundles-mcp
    port: 9090
    transport: http
    description: MCP adapter for Apache ServiceMix REST API — Bundles. One tool per consumed operation, routed inline through
      this capability's consumes block.
    tools:
    - name: apache-servicemix-list-bundles
      description: Apache ServiceMix List Bundles
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: rest-bundles.listbundles
      outputParameters:
      - type: object
        mapping: $.
    - name: apache-servicemix-get-bundle
      description: Apache ServiceMix Get Bundle
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: rest-bundles.getbundle
      with:
        bundleId: tools.bundleId
      outputParameters:
      - type: object
        mapping: $.
    - name: apache-servicemix-update-bundle-state
      description: Apache ServiceMix Update Bundle State
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: rest-bundles.updatebundlestate
      with:
        bundleId: tools.bundleId
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.