-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconsumes-microcks.yml
More file actions
104 lines (100 loc) · 3.23 KB
/
consumes-microcks.yml
File metadata and controls
104 lines (100 loc) · 3.23 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
# yaml-language-server: $schema=../../../capabilities/naftiko-schema.json
---
naftiko: "0.5"
info:
label: "Microcks API"
description: "Shared consumes adapter for the Microcks API. Covers artifact import, service listing, and test execution — the operations needed to mock APIs and validate MCP tool behavior in sandbox environments."
tags:
- microcks
- shared
- mocking
- testing
created: "2026-03-19"
modified: "2026-03-19"
consumes:
- namespace: "microcks"
type: "http"
baseUri: "{{microcks_base_url}}/api"
authentication:
type: "bearer"
token: "{{microcks_token}}"
inputParameters:
- name: "microcks_base_url"
in: "environment"
- name: "microcks_token"
in: "environment"
- name: "Content-Type"
in: "header"
value: "application/json"
resources:
- name: "artifacts"
label: "Artifact Import"
description: "Import API specifications as mock artifacts"
path: "/artifact/upload"
operations:
- name: "import-artifact"
method: "POST"
label: "Import Artifact"
description: "Import an OpenAPI, AsyncAPI, or Postman collection as a mock artifact"
inputParameters:
- name: "artifact_url"
in: "body"
- name: "main_artifact"
in: "body"
outputParameters:
- name: "name"
type: "string"
value: "$.name"
- name: "version"
type: "string"
value: "$.version"
- name: "services"
label: "Services"
description: "List and manage mocked services"
path: "/services"
operations:
- name: "list-services"
method: "GET"
label: "List Services"
description: "List all mocked services with their operations and mock URLs"
inputParameters:
- name: "page"
in: "query"
- name: "size"
in: "query"
outputParameters:
- name: "items"
type: "array"
value: "$"
- name: "tests"
label: "Test Runs"
description: "Execute conformance and contract tests against mocked services"
path: "/tests"
operations:
- name: "run-test"
method: "POST"
label: "Run Test"
description: "Execute a test against a mocked service endpoint"
inputParameters:
- name: "service_id"
in: "body"
- name: "test_endpoint"
in: "body"
- name: "runner_type"
in: "body"
body:
type: "json"
data:
serviceId: "{{service_id}}"
testEndpoint: "{{test_endpoint}}"
runnerType: "{{runner_type}}"
outputParameters:
- name: "id"
type: "string"
value: "$.id"
- name: "success"
type: "boolean"
value: "$.success"
- name: "testCaseResults"
type: "array"
value: "$.testCaseResults"