naftiko: 1.0.0-alpha2 info: label: Acceptance Criteria Management API — Test Runs description: 'Acceptance Criteria Management API — Test Runs. 2 operations. Lead operation: List acceptance test runs. Self-contained Naftiko capability covering one Acceptance Criteria business surface.' tags: - Acceptance Criteria - Test Runs 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-test-runs baseUri: https://api.example.com/v1 description: Acceptance Criteria Management API — Test Runs business capability. Self-contained, no shared references. resources: - name: test-runs path: /test-runs operations: - name: listtestruns method: GET description: List acceptance test runs outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: page in: query type: integer - name: pageSize in: query type: integer - name: createtestrun method: POST description: Create a test run 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-test-runs-rest port: 8080 description: REST adapter for Acceptance Criteria Management API — Test Runs. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/test-runs name: test-runs description: REST surface for test-runs. operations: - method: GET name: listtestruns description: List acceptance test runs call: management-test-runs.listtestruns with: page: rest.page pageSize: rest.pageSize outputParameters: - type: object mapping: $. - method: POST name: createtestrun description: Create a test run call: management-test-runs.createtestrun with: body: rest.body outputParameters: - type: object mapping: $. - type: mcp namespace: management-test-runs-mcp port: 9090 transport: http description: MCP adapter for Acceptance Criteria Management API — Test Runs. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: list-acceptance-test-runs description: List acceptance test runs hints: readOnly: true destructive: false idempotent: true call: management-test-runs.listtestruns with: page: tools.page pageSize: tools.pageSize outputParameters: - type: object mapping: $. - name: create-test-run description: Create a test run hints: readOnly: true destructive: false idempotent: false call: management-test-runs.createtestrun with: body: tools.body outputParameters: - type: object mapping: $.