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