naftiko: 1.0.0-alpha2 info: label: Render Public API — Services - Routes description: 'Render Public API — Services - Routes. 5 operations. Lead operation: List redirect/rewrite rules. Self-contained Naftiko capability covering one Render business surface.' tags: - Render - Services - Routes created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: RENDER_API_KEY: RENDER_API_KEY capability: consumes: - type: http namespace: render-services-routes baseUri: https://api.render.com/v1 description: Render Public API — Services - Routes business capability. Self-contained, no shared references. resources: - name: services-serviceId-routes path: /services/{serviceId}/routes operations: - name: listroutes method: GET description: List redirect/rewrite rules outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: type in: query type: array description: Filter for the type of route rule - name: source in: query type: array description: Filter for the source path of the route - name: destination in: query type: array description: Filter for the destination path of the route - name: addroute method: POST description: Add redirect/rewrite rules outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true - name: patchroute method: PATCH description: Update redirect/rewrite rule priority outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true - name: putroutes method: PUT description: Update redirect/rewrite rules outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true - name: services-serviceId-routes-routeId path: /services/{serviceId}/routes/{routeId} operations: - name: deleteroute method: DELETE description: Delete redirect/rewrite rule outputRawFormat: json outputParameters: - name: result type: object value: $. authentication: type: bearer token: '{{env.RENDER_API_KEY}}' exposes: - type: rest namespace: render-services-routes-rest port: 8080 description: REST adapter for Render Public API — Services - Routes. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/services/{serviceid}/routes name: services-serviceid-routes description: REST surface for services-serviceId-routes. operations: - method: GET name: listroutes description: List redirect/rewrite rules call: render-services-routes.listroutes with: type: rest.type source: rest.source destination: rest.destination outputParameters: - type: object mapping: $. - method: POST name: addroute description: Add redirect/rewrite rules call: render-services-routes.addroute with: body: rest.body outputParameters: - type: object mapping: $. - method: PATCH name: patchroute description: Update redirect/rewrite rule priority call: render-services-routes.patchroute with: body: rest.body outputParameters: - type: object mapping: $. - method: PUT name: putroutes description: Update redirect/rewrite rules call: render-services-routes.putroutes with: body: rest.body outputParameters: - type: object mapping: $. - path: /v1/services/{serviceid}/routes/{routeid} name: services-serviceid-routes-routeid description: REST surface for services-serviceId-routes-routeId. operations: - method: DELETE name: deleteroute description: Delete redirect/rewrite rule call: render-services-routes.deleteroute outputParameters: - type: object mapping: $. - type: mcp namespace: render-services-routes-mcp port: 9090 transport: http description: MCP adapter for Render Public API — Services - Routes. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: list-redirect-rewrite-rules description: List redirect/rewrite rules hints: readOnly: true destructive: false idempotent: true call: render-services-routes.listroutes with: type: tools.type source: tools.source destination: tools.destination outputParameters: - type: object mapping: $. - name: add-redirect-rewrite-rules description: Add redirect/rewrite rules hints: readOnly: false destructive: false idempotent: false call: render-services-routes.addroute with: body: tools.body outputParameters: - type: object mapping: $. - name: update-redirect-rewrite-rule-priority description: Update redirect/rewrite rule priority hints: readOnly: false destructive: false idempotent: true call: render-services-routes.patchroute with: body: tools.body outputParameters: - type: object mapping: $. - name: update-redirect-rewrite-rules description: Update redirect/rewrite rules hints: readOnly: false destructive: false idempotent: true call: render-services-routes.putroutes with: body: tools.body outputParameters: - type: object mapping: $. - name: delete-redirect-rewrite-rule description: Delete redirect/rewrite rule hints: readOnly: false destructive: true idempotent: true call: render-services-routes.deleteroute outputParameters: - type: object mapping: $.