Apache APISIX · Capability

Apache APISIX Admin API — Stream Routes

Apache APISIX Admin API — Stream Routes. 4 operations. Lead operation: Apache APISIX List All Stream Routes. Self-contained Naftiko capability covering one Apache Apisix business surface.

Run with Naftiko Apache ApisixStream Routes

What You Can Do

GET
Liststreamroutes — Apache APISIX List All Stream Routes
/v1/stream-routes
GET
Getstreamroute — Apache APISIX Get a Stream Route
/v1/stream-routes/{route-id}
PUT
Createorupdatestreamroute — Apache APISIX Create or Update a Stream Route
/v1/stream-routes/{route-id}
DELETE
Deletestreamroute — Apache APISIX Delete a Stream Route
/v1/stream-routes/{route-id}

MCP Tools

apache-apisix-list-all-stream

Apache APISIX List All Stream Routes

read-only idempotent
apache-apisix-get-stream-route

Apache APISIX Get a Stream Route

read-only idempotent
apache-apisix-create-update-stream

Apache APISIX Create or Update a Stream Route

idempotent
apache-apisix-delete-stream-route

Apache APISIX Delete a Stream Route

idempotent

Capability Spec

admin-stream-routes.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Apache APISIX Admin API — Stream Routes
  description: 'Apache APISIX Admin API — Stream Routes. 4 operations. Lead operation: Apache APISIX List All Stream Routes.
    Self-contained Naftiko capability covering one Apache Apisix business surface.'
  tags:
  - Apache Apisix
  - Stream Routes
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    APACHE_APISIX_API_KEY: APACHE_APISIX_API_KEY
capability:
  consumes:
  - type: http
    namespace: admin-stream-routes
    baseUri: http://127.0.0.1:9180/apisix/admin
    description: Apache APISIX Admin API — Stream Routes business capability. Self-contained, no shared references.
    resources:
    - name: stream_routes
      path: /stream_routes
      operations:
      - name: liststreamroutes
        method: GET
        description: Apache APISIX List All Stream Routes
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: stream_routes-route_id
      path: /stream_routes/{route_id}
      operations:
      - name: getstreamroute
        method: GET
        description: Apache APISIX Get a Stream Route
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: createorupdatestreamroute
        method: PUT
        description: Apache APISIX Create or Update a Stream Route
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
      - name: deletestreamroute
        method: DELETE
        description: Apache APISIX Delete a Stream Route
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    authentication:
      type: apikey
      key: X-API-KEY
      value: '{{env.APACHE_APISIX_API_KEY}}'
      placement: header
  exposes:
  - type: rest
    namespace: admin-stream-routes-rest
    port: 8080
    description: REST adapter for Apache APISIX Admin API — Stream Routes. One Spectral-compliant resource per consumed operation,
      prefixed with /v1.
    resources:
    - path: /v1/stream-routes
      name: stream-routes
      description: REST surface for stream_routes.
      operations:
      - method: GET
        name: liststreamroutes
        description: Apache APISIX List All Stream Routes
        call: admin-stream-routes.liststreamroutes
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/stream-routes/{route-id}
      name: stream-routes-route-id
      description: REST surface for stream_routes-route_id.
      operations:
      - method: GET
        name: getstreamroute
        description: Apache APISIX Get a Stream Route
        call: admin-stream-routes.getstreamroute
        outputParameters:
        - type: object
          mapping: $.
      - method: PUT
        name: createorupdatestreamroute
        description: Apache APISIX Create or Update a Stream Route
        call: admin-stream-routes.createorupdatestreamroute
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
      - method: DELETE
        name: deletestreamroute
        description: Apache APISIX Delete a Stream Route
        call: admin-stream-routes.deletestreamroute
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: admin-stream-routes-mcp
    port: 9090
    transport: http
    description: MCP adapter for Apache APISIX Admin API — Stream Routes. One tool per consumed operation, routed inline through
      this capability's consumes block.
    tools:
    - name: apache-apisix-list-all-stream
      description: Apache APISIX List All Stream Routes
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: admin-stream-routes.liststreamroutes
      outputParameters:
      - type: object
        mapping: $.
    - name: apache-apisix-get-stream-route
      description: Apache APISIX Get a Stream Route
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: admin-stream-routes.getstreamroute
      outputParameters:
      - type: object
        mapping: $.
    - name: apache-apisix-create-update-stream
      description: Apache APISIX Create or Update a Stream Route
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: admin-stream-routes.createorupdatestreamroute
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: apache-apisix-delete-stream-route
      description: Apache APISIX Delete a Stream Route
      hints:
        readOnly: false
        destructive: true
        idempotent: true
      call: admin-stream-routes.deletestreamroute
      outputParameters:
      - type: object
        mapping: $.