RapidAPI · Capability

RapidAPI Gateway API — Routes

RapidAPI Gateway API — Routes. 4 operations. Lead operation: List routes. Self-contained Naftiko capability covering one Rapidapi business surface.

Run with Naftiko RapidapiRoutes

What You Can Do

GET
Listroutes — List routes
/v1/gateways/{gatewayid}/routes
POST
Createroute — Create a route
/v1/gateways/{gatewayid}/routes
PUT
Updateroute — Update a route
/v1/gateways/{gatewayid}/routes/{routeid}
DELETE
Deleteroute — Delete a route
/v1/gateways/{gatewayid}/routes/{routeid}

MCP Tools

list-routes

List routes

read-only idempotent
create-route

Create a route

update-route

Update a route

idempotent
delete-route

Delete a route

idempotent

Capability Spec

gateway-routes.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: RapidAPI Gateway API — Routes
  description: 'RapidAPI Gateway API — Routes. 4 operations. Lead operation: List routes. Self-contained Naftiko capability
    covering one Rapidapi business surface.'
  tags:
  - Rapidapi
  - Routes
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    RAPIDAPI_API_KEY: RAPIDAPI_API_KEY
capability:
  consumes:
  - type: http
    namespace: gateway-routes
    baseUri: https://gateway.rapidapi.com/v1
    description: RapidAPI Gateway API — Routes business capability. Self-contained, no shared references.
    resources:
    - name: gateways-gatewayId-routes
      path: /gateways/{gatewayId}/routes
      operations:
      - name: listroutes
        method: GET
        description: List routes
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: createroute
        method: POST
        description: Create a route
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: gateways-gatewayId-routes-routeId
      path: /gateways/{gatewayId}/routes/{routeId}
      operations:
      - name: updateroute
        method: PUT
        description: Update a route
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
      - name: deleteroute
        method: DELETE
        description: Delete a route
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    authentication:
      type: apikey
      key: X-RapidAPI-Key
      value: '{{env.RAPIDAPI_API_KEY}}'
      placement: header
  exposes:
  - type: rest
    namespace: gateway-routes-rest
    port: 8080
    description: REST adapter for RapidAPI Gateway API — Routes. One Spectral-compliant resource per consumed operation, prefixed
      with /v1.
    resources:
    - path: /v1/gateways/{gatewayid}/routes
      name: gateways-gatewayid-routes
      description: REST surface for gateways-gatewayId-routes.
      operations:
      - method: GET
        name: listroutes
        description: List routes
        call: gateway-routes.listroutes
        outputParameters:
        - type: object
          mapping: $.
      - method: POST
        name: createroute
        description: Create a route
        call: gateway-routes.createroute
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/gateways/{gatewayid}/routes/{routeid}
      name: gateways-gatewayid-routes-routeid
      description: REST surface for gateways-gatewayId-routes-routeId.
      operations:
      - method: PUT
        name: updateroute
        description: Update a route
        call: gateway-routes.updateroute
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
      - method: DELETE
        name: deleteroute
        description: Delete a route
        call: gateway-routes.deleteroute
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: gateway-routes-mcp
    port: 9090
    transport: http
    description: MCP adapter for RapidAPI Gateway API — Routes. One tool per consumed operation, routed inline through this
      capability's consumes block.
    tools:
    - name: list-routes
      description: List routes
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: gateway-routes.listroutes
      outputParameters:
      - type: object
        mapping: $.
    - name: create-route
      description: Create a route
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: gateway-routes.createroute
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: update-route
      description: Update a route
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: gateway-routes.updateroute
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: delete-route
      description: Delete a route
      hints:
        readOnly: false
        destructive: true
        idempotent: true
      call: gateway-routes.deleteroute
      outputParameters:
      - type: object
        mapping: $.