-
Notifications
You must be signed in to change notification settings - Fork 1.2k
/
testswaggerdoc2
117 lines (117 loc) · 4.43 KB
/
testswaggerdoc2
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
105
106
107
108
109
110
111
112
113
114
115
116
117
{
"swagger": "2.0",
"basePath": "/test1/v1",
"info": {
"title": "CLI_APIGWTEST13 API Name",
"version": "1.0.0"
},
"paths": {
"/whisk_system/utils/echo": {
"get": {
"operationId": "get_/whisk_system/utils/echo",
"responses": {
"default": {
"description": "Default response"
}
},
"x-openwhisk": {
"action": "test1a",
"namespace": "whisk.system",
"package": "",
"url": "https://172.17.0.1/api/v1/web/whisk.system/default/test1a.http"
}
},
"post": {
"operationId": "post_/whisk_system/utils/echo",
"responses": {
"default": {
"description": "Default response"
}
},
"x-openwhisk": {
"action": "test1a",
"namespace": "whisk.system",
"package": "",
"url": "https://172.17.0.1/api/v1/web/whisk.system/default/test1a.http"
}
}
},
"/whisk_system/utils/split": {
"post": {
"operationId": "post_/whisk_system/utils/split",
"responses": {
"default": {
"description": "Default response"
}
},
"x-openwhisk": {
"action": "test1a",
"namespace": "whisk.system",
"package": "",
"url": "https://172.17.0.1/api/v1/web/whisk.system/default/test1a.http"
}
}
}
},
"x-ibm-configuration": {
"assembly": {
"execute": [
{
"set-variable": {
"actions": [
{
"set": "message.headers.Authorization",
"value": "Basic Nzg5YzQ2YjEtNzFmNi00ZWQ1LThjNTQtODE2YWE0ZjhjNTAyOmFiY3pPM3haQ0xyTU42djJCS0sxZFhZRnBYbFBrY2NPRnFtMTJDZEFzTWdSVTRWck5aOWx5R1ZDR3VNREdJd1A="
}
]
}
},
{
"operation-switch": {
"case": [
{
"operations": [
"get_/whisk_system/utils/echo"
],
"execute": [
{
"invoke": {
"target-url": "https://172.17.0.1/api/v1/web/whisk.system/default/test1a.http",
"verb": "get"
}
}
]
},
{
"operations": [
"post_/whisk_system/utils/echo"
],
"execute": [
{
"invoke": {
"target-url": "https://172.17.0.1/api/v1/web/whisk.system/default/test1a.http",
"verb": "post"
}
}
]
},
{
"operations": [
"post_/whisk_system/utils/split"
],
"execute": [
{
"invoke": {
"target-url": "https://172.17.0.1/api/v1/web/whisk.system/default/test1a.http",
"verb": "post"
}
}
]
}
]
}
}
]
}
}
}