-
Notifications
You must be signed in to change notification settings - Fork 0
/
API.yaml
196 lines (196 loc) · 6.67 KB
/
API.yaml
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
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
swagger: '2.0'
info:
version: '1.0'
title: API
schemes:
- https
consumes:
- application/json
produces:
- application/json
paths:
/register:
post:
operationId: postRegister
x-openwhisk:
namespace: 09d40aa4-be03-4974-a926-571e54d6797c
action: register
package: default
url: >-
https://au-syd.functions.appdomain.cloud/api/v1/web/09d40aa4-be03-4974-a926-571e54d6797c/default/register.json
auth: 97417feb-723c-4429-9dba-53917b345789
responses:
'200':
description: A successful invocation response
parameters:
- name: body
in: body
description: Request body
required: false
schema:
type: object
/login:
get:
operationId: getLogin
x-openwhisk:
namespace: 09d40aa4-be03-4974-a926-571e54d6797c
action: login
package: default
url: >-
https://au-syd.functions.appdomain.cloud/api/v1/web/09d40aa4-be03-4974-a926-571e54d6797c/default/login.json
auth: 10f97baa-6373-4c73-93ef-15afaf867ec2
responses:
'200':
description: A successful invocation response
/parseImageText:
post:
operationId: postParseimagetext
x-openwhisk:
namespace: 09d40aa4-be03-4974-a926-571e54d6797c
action: parseImageText
package: default
url: >-
https://au-syd.functions.appdomain.cloud/api/v1/web/09d40aa4-be03-4974-a926-571e54d6797c/default/parseImageText.json
auth: bde8d333-4e74-4569-932b-faaa7f9fd9d1
responses:
'200':
description: A successful invocation response
parameters:
- name: body
in: body
description: Request body
required: false
schema:
type: object
/getInventory:
get:
operationId: getGetinventory
x-openwhisk:
namespace: 09d40aa4-be03-4974-a926-571e54d6797c
action: getInventory
package: default
url: >-
https://au-syd.functions.appdomain.cloud/api/v1/web/09d40aa4-be03-4974-a926-571e54d6797c/default/getInventory.json
auth: c00209a9-6947-4a81-bdf7-cbf26fb33461
responses:
'200':
description: A successful invocation response
/updateInventory:
post:
operationId: postUpdateinventory
x-openwhisk:
namespace: 09d40aa4-be03-4974-a926-571e54d6797c
action: updateInventory
package: default
url: >-
https://au-syd.functions.appdomain.cloud/api/v1/web/09d40aa4-be03-4974-a926-571e54d6797c/default/updateInventory.json
auth: f9c75f09-26e3-4f35-bc41-a4aee1f951d4
responses:
'200':
description: A successful invocation response
parameters:
- name: body
in: body
description: Request body
required: false
schema:
type: object
/classify:
post:
operationId: postClassify
x-openwhisk:
namespace: 09d40aa4-be03-4974-a926-571e54d6797c
action: classify
package: default
url: >-
https://au-syd.functions.appdomain.cloud/api/v1/web/09d40aa4-be03-4974-a926-571e54d6797c/default/classify.json
auth: b517a336-c348-48c8-8065-84c50c06cc88
responses:
'200':
description: A successful invocation response
parameters:
- name: body
in: body
description: Request body
required: false
schema:
type: object
x-ibm-configuration:
assembly:
execute:
- operation-switch:
case:
- operations:
- postRegister
execute:
- set-variable:
actions:
- set: message.headers.X-Require-Whisk-Auth
value: 97417feb-723c-4429-9dba-53917b345789
- invoke:
target-url: >-
https://au-syd.functions.appdomain.cloud/api/v1/web/09d40aa4-be03-4974-a926-571e54d6797c/default/register.json
verb: keep
- operations:
- getLogin
execute:
- set-variable:
actions:
- set: message.headers.X-Require-Whisk-Auth
value: 10f97baa-6373-4c73-93ef-15afaf867ec2
- invoke:
target-url: >-
https://au-syd.functions.appdomain.cloud/api/v1/web/09d40aa4-be03-4974-a926-571e54d6797c/default/login.json
verb: keep
- operations:
- postParseimagetext
execute:
- set-variable:
actions:
- set: message.headers.X-Require-Whisk-Auth
value: bde8d333-4e74-4569-932b-faaa7f9fd9d1
- invoke:
target-url: >-
https://au-syd.functions.appdomain.cloud/api/v1/web/09d40aa4-be03-4974-a926-571e54d6797c/default/parseImageText.json
verb: keep
- operations:
- getGetinventory
execute:
- set-variable:
actions:
- set: message.headers.X-Require-Whisk-Auth
value: c00209a9-6947-4a81-bdf7-cbf26fb33461
- invoke:
target-url: >-
https://au-syd.functions.appdomain.cloud/api/v1/web/09d40aa4-be03-4974-a926-571e54d6797c/default/getInventory.json
verb: keep
- operations:
- postUpdateinventory
execute:
- set-variable:
actions:
- set: message.headers.X-Require-Whisk-Auth
value: f9c75f09-26e3-4f35-bc41-a4aee1f951d4
- invoke:
target-url: >-
https://au-syd.functions.appdomain.cloud/api/v1/web/09d40aa4-be03-4974-a926-571e54d6797c/default/updateInventory.json
verb: keep
- operations:
- postClassify
execute:
- set-variable:
actions:
- set: message.headers.X-Require-Whisk-Auth
value: b517a336-c348-48c8-8065-84c50c06cc88
- invoke:
target-url: >-
https://au-syd.functions.appdomain.cloud/api/v1/web/09d40aa4-be03-4974-a926-571e54d6797c/default/classify.json
verb: keep
otherwise: []
title: whisk-invoke
cors:
enabled: true
basePath: /api
securityDefinitions: {}
security:
- {}