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