· 2 years ago · Jul 18, 2023, 04:05 PM
1 "name": "toolType",
2 "default": null,
3 "schema": {
4 "type": "integer"
5 }
6 },
7 {
8 "in": "query",
9 "name": "toolGroup",
10 "default": null,
11 "schema": {
12 "type": "integer"
13 },
14 "description": "Filter on specific toolType"
15 },
16 {
17 "in": "query",
18 "name": "offset",
19 "default": 0,
20 "schema": {
21 "type": "integer"
22 },
23 "description": "Offset the result by this many records."
24 },
25 {
26 "in": "query",
27 "name": "limit",
28 "default": 10,
29 "schema": {
30 "type": "integer"
31 },
32 "description": "Return this [integer] amount of records."
33 }
34 ],
35 "responses": {
36 "200": {
37 "description": "A successful response"
38 }
39 }
40 },
41 "post": {
42 "tags": [
43 "merchant_workbench_tools"
44 ],
45 "summary": "Create",
46 "requestBody": {
47 "description": "Create new merchant tool entry",
48 "required": true,
49 "content": {
50 "application/json": {
51 "schema": {
52 "type": "object",
53 "properties": {
54 "name": {
55 "type": "string"
56 },
57 "description": {
58 "type": "string"
59 },
60 "toolType": {
61 "type": "number"
62 },
63 "toolGroup": {
64 "type": "number"
65 },
66 "url": {
67 "type": "string"
68 },
69 "img": {
70 "type": "string"
71 }
72 }
73 }
74 }
75 }
76 },
77 "responses": {
78 "201": {
79 "description": "Updated"
80 }
81 }
82 },
83 "components": {
84 "responses": null,
85 "UnauthorizedError": {
86 "description": "API key is missing or invalid",
87 "headers": {
88 "WWW_Authenticate": {
89 "schema": {
90 "type": "string"
91 }
92 }
93 }
94 }
95 },
96 "patch": {
97 "tags": [
98 "merchant_workbench_tools"
99 ],
100 "summary": "Update",
101 "requestBody": {
102 "description": "Update Merchant Workbench Tool",
103 "required": true,
104 "content": {
105 "application/json": {
106 "schema": {
107 "type": "object",
108 "properties": {
109 "toolID": {
110 "type": "integer"
111 },
112 "description": {
113 "type": "string"
114 },
115 "url": {
116 "type": "string"
117 },
118 "img": {
119 "type": "string"
120 }
121 }
122 }
123 }
124 }
125 },
126 "responses": {
127 "201": {
128 "description": "Updated"
129 }
130 }
131 }
132 },
133 "/mma-applications": {
134 "get": {
135 "tags": [
136 "mma_applications"
137 ],
138 "description": "Finds applications descriptions",
139 "summary": "Find",
140 "parameters": [
141 {
142 "in": "query",
143 "name": "application_name",
144 "default": null,
145 "schema": {
146 "type": "string"
147 },
148 "description": "Filter on specific application"
149 }
150 ],
151 "responses": {
152 "200": {
153 "description": "A successful response"
154 }
155 }
156 },
157 "post": {
158 "tags": [
159 "mma_applications"
160 ],
161 "summary": "Create",
162 "requestBody": {
163 "description": "Create a new reusable_api_keys",
164 "required": true,
165 "content": {
166 "application/json": {
167 "schema": {
168 "type": "object",
169 "properties": {
170 "application_name": {
171 "type": "string"
172 },
173 "application_description": {
174 "type": "string"
175 },
176 "mma_resource": {
177 "type": "string"
178 }
179 }
180 }
181 }
182 }
183 },
184 "responses": {
185 "201": {
186 "description": "Created"
187 }
188 }
189 },
190 "patch": {
191 "tags": [
192 "mma_applications"
193 ],
194 "summary": "Update",
195 "requestBody": {
196 "description": "Update reusable_api_keys",
197 "required": true,
198 "content": {
199 "application/json": {
200 "schema": {
201 "type": "object",
202 "properties": {
203 "application_name": {
204 "type": "string"
205 },
206 "application_description": {
207 "type": "string"
208 },
209 "mma_resource": {
210 "type": "string"
211 }
212 }
213 }
214 }
215 }
216 },
217 "responses": {
218 "201": {
219 "description": "Updated"
220 }
221 }
222 },
223 "components": {
224 "responses": null,
225 "UnauthorizedError": {
226 "description": "API key is missing or invalid",
227 "headers": {
228 "WWW_Authenticate": {
229 "schema": {
230 "type": "string"
231 }
232 }
233 }
234 }
235 }
236 },
237 "/pack_and_hold_commentors": {
238 "get": {
239 "tags": [
240 "pack_and_hold_commentors"
241 ],
242 "description": "Gets users who are Pnh Commentors",
243 "summary": "Find",
244 "parameters": [
245 {
246 "in": "query",
247 "name": "ldap",
248 "default": null,
249 "schema": {
250 "type": "string"
251 },
252 "description": "Filter on ldap"
253 },
254 {
255 "in": "query",
256 "name": "limit",
257 "default": null,
258 "schema": {
259 "type": "integer"
260 },
261 "description": "Return this [integer] amount of records."
262 }
263 ],
264 "responses": {
265 "200": {
266 "description": "A successful response"
267 }
268 }
269 },
270 "post": {
271 "tags": [
272 "pack_and_hold_commentors"
273 ],
274 "summary": "Create",
275 "requestBody": {
276 "description": "Add user to Pnh Commentors",
277 "required": true,
278 "content": {
279 "application/json": {
280 "schema": {
281 "type": "object",
282 "properties": {
283 "ldap": {
284 "type": "string"
285 },
286 "display_name": {
287 "type": "string"
288 }
289 }
290 }
291 }
292 }
293 },
294 "responses": {
295 "201": {
296 "description": "Updated"
297 }
298 }
299 },
300 "components": {
301 "responses": null,
302 "UnauthorizedError": {
303 "description": "API key is missing or invalid",
304 "headers": {
305 "WWW_Authenticate": {
306 "schema": {
307 "type": "string"
308 }
309 }
310 }
311 }
312 },
313 "patch": {
314 "tags": [
315 "pack_and_hold_commentors"
316 ],
317 "summary": "Update",
318 "requestBody": {
319 "description": "Update display_name",
320 "required": true,
321 "content": {
322 "application/json": {
323 "schema": {
324 "type": "object",
325 "properties": {
326 "ldap": {
327 "type": "string"
328 },
329 "display_name": {
330 "type": "string"
331 }
332 }
333 }
334 }
335 }
336 },
337 "responses": {
338 "201": {
339 "description": "Updated"
340 }
341 }
342 },
343 "delete": {
344 "tags": [
345 "pack_and_hold_commentors"
346 ],
347 "summary": "Delete",
348 "parameters": [
349 {
350 "in": "query",
351 "name": "ldap",
352 "required": true,
353 "schema": {
354 "type": "string"
355 },
356 "description": "unique identifier"
357 }
358 ],
359 "responses": {
360 "201": {
361 "description": "Deleted"
362 }
363 }
364 }
365 },
366 "/patch-logs": {
367 "name": "patch_logs",
368 "get": {
369 "tags": [
370 "patch_logs"
371 ],
372 "description": "Finds patch logs for applications",
373 "summary": "Find",
374 "parameters": [
375 {
376 "in": "query",
377 "name": "app_name",
378 "default": null,
379 "schema": {
380 "type": "string"
381 },
382 "description": "Filter on Application Name"
383 },
384 {
385 "in": "query",
386 "name": "patch_number",
387 "default": null,
388 "schema": {
389 "type": "float"
390 },
391 "description": "Filter on Patch Number"
392 },
393 {
394 "in": "query",
395 "name": "offset",
396 "default": 0,
397 "schema": {
398 "type": "integer"
399 },
400 "description": "Offset the result by this many records."
401 },
402 {
403 "in": "query",
404 "name": "limit",
405 "default": 10,
406 "schema": {
407 "type": "integer"
408 },
409 "description": "Return this [integer] amount of records."
410 }
411 ],
412 "responses": {
413 "200": {
414 "description": "A successful response"
415 }
416 }
417 },
418 "post": {
419 "tags": [
420 "patch_logs"
421 ],
422 "summary": "Create",
423 "requestBody": {
424 "description": "Create Patch Log",
425 "required": true,
426 "content": {
427 "application/json": {
428 "schema": {
429 "type": "object",
430 "properties": {
431 "app_name": {
432 "type": "string"
433 },
434 "patch_number": {
435 "type": "number"
436 },
437 "patch_notes": {
438 "type": "string"
439 }
440 }
441 }
442 }
443 }
444 },
445 "responses": {
446 "201": {
447 "description": "Updated"
448 }
449 }
450 },
451 "components": {
452 "responses": null,
453 "UnauthorizedError": {
454 "description": "API key is missing or invalid",
455 "headers": {
456 "WWW_Authenticate": {
457 "schema": {
458 "type": "string"
459 }
460 }
461 }
462 }
463 }
464 },
465 "/po-approval-redirects": {
466 "get": {
467 "tags": [
468 "po_approval_redirects"
469 ],
470 "description": "Finds all recoreds of po approval redirects for the order approval tool",
471 "summary": "Find",
472 "parameters": [
473 {
474 "in": "query",
475 "name": "rule_maker_ldap",
476 "default": "wpan1",
477 "schema": {
478 "type": "string"
479 },
480 "description": "Filter on rule_maker_ldap Id"
481 },
482 {
483 "in": "query",
484 "name": "buyer_ldap",
485 "default": "wpan1",
486 "schema": {
487 "type": "string"
488 },
489 "description": "Filter on buyer_ldap Id"
490 }
491 ],
492 "responses": {
493 "200": {
494 "description": "A successful response"
495 }
496 }
497 },
498 "post": {
499 "tags": [
500 "po_approval_redirects"