naftiko: 1.0.0-alpha2 info: label: Microcks API v1.14 — test description: 'Microcks API v1.14 — test. 7 operations. Lead operation: Create a new Test. Self-contained Naftiko capability covering one Microcks business surface.' tags: - Microcks - test created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: MICROCKS_API_KEY: MICROCKS_API_KEY capability: consumes: - type: http namespace: microcks-test baseUri: http://microcks.example.com/api description: Microcks API v1.14 — test business capability. Self-contained, no shared references. resources: - name: tests path: /tests operations: - name: createtest method: POST description: Create a new Test outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true - name: tests-service-serviceId path: /tests/service/{serviceId} operations: - name: gettestresultsbyservice method: GET description: Get TestResults by Service outputRawFormat: json outputParameters: - name: result type: object value: $. - name: tests-service-serviceId-count path: /tests/service/{serviceId}/count operations: - name: gettestresultsbyservicecounter method: GET description: Get the TestResults for Service counter outputRawFormat: json outputParameters: - name: result type: object value: $. - name: tests-id path: /tests/{id} operations: - name: gettestresult method: GET description: Get TestResult outputRawFormat: json outputParameters: - name: result type: object value: $. - name: tests-id-events-testCaseId path: /tests/{id}/events/{testCaseId} operations: - name: geteventsbytestcase method: GET description: Get events for TestCase outputRawFormat: json outputParameters: - name: result type: object value: $. - name: tests-id-messages-testCaseId path: /tests/{id}/messages/{testCaseId} operations: - name: getmessagesbytestcase method: GET description: Get messages for TestCase outputRawFormat: json outputParameters: - name: result type: object value: $. - name: tests-id-testCaseResult path: /tests/{id}/testCaseResult operations: - name: reporttestcaseresult method: POST description: Report and create a new TestCaseResult 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.MICROCKS_API_KEY}}' exposes: - type: rest namespace: microcks-test-rest port: 8080 description: REST adapter for Microcks API v1.14 — test. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/tests name: tests description: REST surface for tests. operations: - method: POST name: createtest description: Create a new Test call: microcks-test.createtest with: body: rest.body outputParameters: - type: object mapping: $. - path: /v1/tests/service/{serviceid} name: tests-service-serviceid description: REST surface for tests-service-serviceId. operations: - method: GET name: gettestresultsbyservice description: Get TestResults by Service call: microcks-test.gettestresultsbyservice outputParameters: - type: object mapping: $. - path: /v1/tests/service/{serviceid}/count name: tests-service-serviceid-count description: REST surface for tests-service-serviceId-count. operations: - method: GET name: gettestresultsbyservicecounter description: Get the TestResults for Service counter call: microcks-test.gettestresultsbyservicecounter outputParameters: - type: object mapping: $. - path: /v1/tests/{id} name: tests-id description: REST surface for tests-id. operations: - method: GET name: gettestresult description: Get TestResult call: microcks-test.gettestresult outputParameters: - type: object mapping: $. - path: /v1/tests/{id}/events/{testcaseid} name: tests-id-events-testcaseid description: REST surface for tests-id-events-testCaseId. operations: - method: GET name: geteventsbytestcase description: Get events for TestCase call: microcks-test.geteventsbytestcase outputParameters: - type: object mapping: $. - path: /v1/tests/{id}/messages/{testcaseid} name: tests-id-messages-testcaseid description: REST surface for tests-id-messages-testCaseId. operations: - method: GET name: getmessagesbytestcase description: Get messages for TestCase call: microcks-test.getmessagesbytestcase outputParameters: - type: object mapping: $. - path: /v1/tests/{id}/testcaseresult name: tests-id-testcaseresult description: REST surface for tests-id-testCaseResult. operations: - method: POST name: reporttestcaseresult description: Report and create a new TestCaseResult call: microcks-test.reporttestcaseresult with: body: rest.body outputParameters: - type: object mapping: $. - type: mcp namespace: microcks-test-mcp port: 9090 transport: http description: MCP adapter for Microcks API v1.14 — test. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: create-new-test description: Create a new Test hints: readOnly: false destructive: false idempotent: false call: microcks-test.createtest with: body: tools.body outputParameters: - type: object mapping: $. - name: get-testresults-service description: Get TestResults by Service hints: readOnly: true destructive: false idempotent: true call: microcks-test.gettestresultsbyservice outputParameters: - type: object mapping: $. - name: get-testresults-service-counter description: Get the TestResults for Service counter hints: readOnly: true destructive: false idempotent: true call: microcks-test.gettestresultsbyservicecounter outputParameters: - type: object mapping: $. - name: get-testresult description: Get TestResult hints: readOnly: true destructive: false idempotent: true call: microcks-test.gettestresult outputParameters: - type: object mapping: $. - name: get-events-testcase description: Get events for TestCase hints: readOnly: true destructive: false idempotent: true call: microcks-test.geteventsbytestcase outputParameters: - type: object mapping: $. - name: get-messages-testcase description: Get messages for TestCase hints: readOnly: true destructive: false idempotent: true call: microcks-test.getmessagesbytestcase outputParameters: - type: object mapping: $. - name: report-and-create-new-testcaseresult description: Report and create a new TestCaseResult hints: readOnly: false destructive: false idempotent: false call: microcks-test.reporttestcaseresult with: body: tools.body outputParameters: - type: object mapping: $.