naftiko: 1.0.0-alpha2 info: label: API-Fiddle API Fiddle API — Workspaces description: 'API-Fiddle API Fiddle API — Workspaces. 5 operations. Lead operation: API-Fiddle List workspaces. Self-contained Naftiko capability covering one Api Fiddle business surface.' tags: - Api Fiddle - Workspaces created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: API_FIDDLE_API_KEY: API_FIDDLE_API_KEY capability: consumes: - type: http namespace: api-fiddle-workspaces baseUri: https://api.api-fiddle.com/v1 description: API-Fiddle API Fiddle API — Workspaces business capability. Self-contained, no shared references. resources: - name: workspaces path: /workspaces operations: - name: listworkspaces method: GET description: API-Fiddle List workspaces outputRawFormat: json outputParameters: - name: result type: object value: $. - name: createworkspace method: POST description: API-Fiddle Create a workspace outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true - name: workspaces-workspaceId path: /workspaces/{workspaceId} operations: - name: getworkspace method: GET description: API-Fiddle Get a workspace outputRawFormat: json outputParameters: - name: result type: object value: $. - name: updateworkspace method: PUT description: API-Fiddle Update a workspace outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true - name: deleteworkspace method: DELETE description: API-Fiddle Delete a workspace outputRawFormat: json outputParameters: - name: result type: object value: $. authentication: type: bearer token: '{{env.API_FIDDLE_API_KEY}}' exposes: - type: rest namespace: api-fiddle-workspaces-rest port: 8080 description: REST adapter for API-Fiddle API Fiddle API — Workspaces. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/workspaces name: workspaces description: REST surface for workspaces. operations: - method: GET name: listworkspaces description: API-Fiddle List workspaces call: api-fiddle-workspaces.listworkspaces outputParameters: - type: object mapping: $. - method: POST name: createworkspace description: API-Fiddle Create a workspace call: api-fiddle-workspaces.createworkspace with: body: rest.body outputParameters: - type: object mapping: $. - path: /v1/workspaces/{workspaceid} name: workspaces-workspaceid description: REST surface for workspaces-workspaceId. operations: - method: GET name: getworkspace description: API-Fiddle Get a workspace call: api-fiddle-workspaces.getworkspace outputParameters: - type: object mapping: $. - method: PUT name: updateworkspace description: API-Fiddle Update a workspace call: api-fiddle-workspaces.updateworkspace with: body: rest.body outputParameters: - type: object mapping: $. - method: DELETE name: deleteworkspace description: API-Fiddle Delete a workspace call: api-fiddle-workspaces.deleteworkspace outputParameters: - type: object mapping: $. - type: mcp namespace: api-fiddle-workspaces-mcp port: 9090 transport: http description: MCP adapter for API-Fiddle API Fiddle API — Workspaces. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: api-fiddle-list-workspaces description: API-Fiddle List workspaces hints: readOnly: true destructive: false idempotent: true call: api-fiddle-workspaces.listworkspaces outputParameters: - type: object mapping: $. - name: api-fiddle-create-workspace description: API-Fiddle Create a workspace hints: readOnly: false destructive: false idempotent: false call: api-fiddle-workspaces.createworkspace with: body: tools.body outputParameters: - type: object mapping: $. - name: api-fiddle-get-workspace description: API-Fiddle Get a workspace hints: readOnly: true destructive: false idempotent: true call: api-fiddle-workspaces.getworkspace outputParameters: - type: object mapping: $. - name: api-fiddle-update-workspace description: API-Fiddle Update a workspace hints: readOnly: false destructive: false idempotent: true call: api-fiddle-workspaces.updateworkspace with: body: tools.body outputParameters: - type: object mapping: $. - name: api-fiddle-delete-workspace description: API-Fiddle Delete a workspace hints: readOnly: false destructive: true idempotent: true call: api-fiddle-workspaces.deleteworkspace outputParameters: - type: object mapping: $.