naftiko: 1.0.0-alpha2 info: label: Acceptance Criteria Management API — BDD Scenarios description: 'Acceptance Criteria Management API — BDD Scenarios. 2 operations. Lead operation: List BDD scenarios. Self-contained Naftiko capability covering one Acceptance Criteria business surface.' tags: - Acceptance Criteria - BDD Scenarios created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: ACCEPTANCE_CRITERIA_API_KEY: ACCEPTANCE_CRITERIA_API_KEY capability: consumes: - type: http namespace: management-bdd-scenarios baseUri: https://api.example.com/v1 description: Acceptance Criteria Management API — BDD Scenarios business capability. Self-contained, no shared references. resources: - name: scenarios path: /scenarios operations: - name: listscenarios method: GET description: List BDD scenarios outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: storyId in: query type: string description: Filter scenarios by parent user story - name: status in: query type: string description: Filter by scenario test status - name: page in: query type: integer - name: pageSize in: query type: integer - name: createscenario method: POST description: Create a BDD scenario outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true authentication: type: bearer token: '{{env.ACCEPTANCE_CRITERIA_API_KEY}}' exposes: - type: rest namespace: management-bdd-scenarios-rest port: 8080 description: REST adapter for Acceptance Criteria Management API — BDD Scenarios. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/scenarios name: scenarios description: REST surface for scenarios. operations: - method: GET name: listscenarios description: List BDD scenarios call: management-bdd-scenarios.listscenarios with: storyId: rest.storyId status: rest.status page: rest.page pageSize: rest.pageSize outputParameters: - type: object mapping: $. - method: POST name: createscenario description: Create a BDD scenario call: management-bdd-scenarios.createscenario with: body: rest.body outputParameters: - type: object mapping: $. - type: mcp namespace: management-bdd-scenarios-mcp port: 9090 transport: http description: MCP adapter for Acceptance Criteria Management API — BDD Scenarios. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: list-bdd-scenarios description: List BDD scenarios hints: readOnly: true destructive: false idempotent: true call: management-bdd-scenarios.listscenarios with: storyId: tools.storyId status: tools.status page: tools.page pageSize: tools.pageSize outputParameters: - type: object mapping: $. - name: create-bdd-scenario description: Create a BDD scenario hints: readOnly: false destructive: false idempotent: false call: management-bdd-scenarios.createscenario with: body: tools.body outputParameters: - type: object mapping: $.