· 2 years ago · Jul 18, 2023, 04:15 PM
1 "summary": "Update",
2 "requestBody": {
3 "description": "Update User Preferences for application",
4 "required": true,
5 "content": {
6 "application/json": {
7 "schema": {
8 "type": "object",
9 "properties": {
10 "user_id": {
11 "type": "string"
12 },
13 "proxy_user_id": {
14 "type": "string"
15 },
16 "notification_type": {
17 "type": "integer"
18 },
19 "buyer_approval": {
20 "type": "integer"
21 }
22 }
23 }
24 }
25 }
26 },
27 "responses": {
28 "201": {
29 "description": "Updated"
30 }
31 }
32 },
33 "components": {
34 "responses": null,
35 "UnauthorizedError": {
36 "description": "API key is missing or invalid",
37 "headers": {
38 "WWW_Authenticate": {
39 "schema": {
40 "type": "string"
41 }
42 }
43 }
44 }
45 }
46 },
47 "/users": {
48 "get": {
49 "tags": [
50 "users"
51 ],
52 "description": "Finds users",
53 "summary": "Find",
54 "parameters": [
55 {
56 "in": "query",
57 "name": "user_id",
58 "default": 18200,
59 "schema": {
60 "type": "number"
61 },
62 "description": "Filter on user_id"
63 },
64 {
65 "in": "query",
66 "name": "workday_id",
67 "default": null,
68 "schema": {
69 "type": "string"
70 },
71 "description": "Find user based on workday id"
72 },
73 {
74 "in": "query",
75 "name": "azure_id",
76 "default": "75725161-de4e-4f71-8729-ace0296260a1",
77 "schema": {
78 "type": "string"
79 },
80 "description": "Find user based on azure id"
81 },
82 {
83 "in": "query",
84 "name": "ldap_id",
85 "default": "lveres",
86 "schema": {
87 "type": "string"
88 },
89 "description": "Find user based on ldap id"
90 },
91 {
92 "in": "query",
93 "name": "email",
94 "default": "Lydia.Veres@burlington.com",
95 "schema": {
96 "type": "string"
97 },
98 "description": "Find user based on email"
99 },
100 {
101 "in": "query",
102 "name": "offset",
103 "default": null,
104 "schema": {
105 "type": "integer"
106 },
107 "description": "Offset this [integer] amount of records."
108 },
109 {
110 "in": "query",
111 "name": "limit",
112 "default": 10,
113 "schema": {
114 "type": "integer"
115 },
116 "description": "Return this [integer] amount of records."
117 }
118 ],
119 "responses": {
120 "200": {
121 "description": "A successful response"
122 }
123 }
124 },
125 "post": {
126 "tags": [
127 "users"
128 ],
129 "summary": "Create",
130 "requestBody": {
131 "description": "Create new user",
132 "required": true,
133 "content": {
134 "application/json": {
135 "schema": {
136 "type": "object",
137 "properties": {
138 "azure_id": {
139 "type": "string"
140 },
141 "email": {
142 "type": "string"
143 },
144 "ldap_id": {
145 "type": "string"
146 },
147 "workday_id": {
148 "type": "number"
149 }
150 }
151 }
152 }
153 }
154 },
155 "responses": {
156 "201": {
157 "description": "Updated"
158 }
159 }
160 },
161 "patch": {
162 "tags": [
163 "users"
164 ],
165 "summary": "Update",
166 "requestBody": {
167 "description": "Update users",
168 "required": true,
169 "content": {
170 "application/json": {
171 "schema": {
172 "type": "object",
173 "properties": {
174 "user_id": {
175 "type": "integer"
176 },
177 "azure_id": {
178 "type": "string"
179 },
180 "ldap_id": {
181 "type": "string"
182 },
183 "email": {
184 "type": "string"
185 },
186 "workday_id": {
187 "type": "string"
188 }
189 }
190 }
191 }
192 }
193 },
194 "responses": {
195 "201": {
196 "description": "Updated"
197 }
198 }
199 },
200 "components": {
201 "responses": null,
202 "UnauthorizedError": {
203 "description": "API key is missing or invalid",
204 "headers": {
205 "WWW_Authenticate": {
206 "schema": {
207 "type": "string"
208 }
209 }
210 }
211 }
212 }
213 }
214 },
215 "tags": []
216}