|
4 | 4 | "title": "Biz-Events Service - Biz-Events Helpdesk", |
5 | 5 | "description": "Microservice for exposing REST APIs for bizevent Helpdesk.", |
6 | 6 | "termsOfService": "https://www.pagopa.gov.it/", |
7 | | - "version": "0.2.2" |
| 7 | + "version": "0.2.3" |
8 | 8 | }, |
9 | 9 | "servers": [ |
10 | 10 | { |
|
23 | 23 | "summary": "health check", |
24 | 24 | "description": "Return OK if application is started", |
25 | 25 | "operationId": "healthCheck", |
| 26 | + "parameters": [ |
| 27 | + { |
| 28 | + "name": "X-Request-Id", |
| 29 | + "in": "header", |
| 30 | + "description": "This header identifies the call, if not passed it is self-generated. This ID is returned in the response.", |
| 31 | + "required": false, |
| 32 | + "schema": { |
| 33 | + "type": "string" |
| 34 | + } |
| 35 | + } |
| 36 | + ], |
26 | 37 | "responses": { |
27 | 38 | "401": { |
28 | 39 | "description": "Unauthorized", |
|
46 | 57 | } |
47 | 58 | } |
48 | 59 | }, |
49 | | - "429": { |
50 | | - "description": "Too many requests", |
51 | | - "headers": { |
52 | | - "X-Request-Id": { |
53 | | - "description": "This header identifies the call", |
54 | | - "schema": { |
55 | | - "type": "string" |
56 | | - } |
57 | | - } |
58 | | - } |
59 | | - }, |
60 | 60 | "400": { |
61 | 61 | "description": "Bad Request", |
62 | 62 | "headers": { |
|
75 | 75 | } |
76 | 76 | } |
77 | 77 | }, |
| 78 | + "429": { |
| 79 | + "description": "Too many requests", |
| 80 | + "headers": { |
| 81 | + "X-Request-Id": { |
| 82 | + "description": "This header identifies the call", |
| 83 | + "schema": { |
| 84 | + "type": "string" |
| 85 | + } |
| 86 | + } |
| 87 | + } |
| 88 | + }, |
78 | 89 | "200": { |
79 | 90 | "description": "OK", |
80 | 91 | "headers": { |
|
117 | 128 | "ApiKey": [] |
118 | 129 | } |
119 | 130 | ] |
120 | | - }, |
121 | | - "parameters": [ |
122 | | - { |
123 | | - "name": "X-Request-Id", |
124 | | - "in": "header", |
125 | | - "description": "This header identifies the call, if not passed it is self-generated. This ID is returned in the response.", |
126 | | - "required": false, |
127 | | - "schema": { |
128 | | - "type": "string" |
129 | | - } |
130 | | - } |
131 | | - ] |
| 131 | + } |
132 | 132 | }, |
133 | 133 | "/events/{biz-event-id}": { |
134 | 134 | "get": { |
|
146 | 146 | "schema": { |
147 | 147 | "type": "string" |
148 | 148 | } |
| 149 | + }, |
| 150 | + { |
| 151 | + "name": "X-Request-Id", |
| 152 | + "in": "header", |
| 153 | + "description": "This header identifies the call, if not passed it is self-generated. This ID is returned in the response.", |
| 154 | + "required": false, |
| 155 | + "schema": { |
| 156 | + "type": "string" |
| 157 | + } |
149 | 158 | } |
150 | 159 | ], |
151 | 160 | "responses": { |
|
160 | 169 | } |
161 | 170 | } |
162 | 171 | }, |
163 | | - "422": { |
164 | | - "description": "Unable to process the request.", |
| 172 | + "401": { |
| 173 | + "description": "Wrong or missing function key.", |
| 174 | + "headers": { |
| 175 | + "X-Request-Id": { |
| 176 | + "description": "This header identifies the call", |
| 177 | + "schema": { |
| 178 | + "type": "string" |
| 179 | + } |
| 180 | + } |
| 181 | + } |
| 182 | + }, |
| 183 | + "200": { |
| 184 | + "description": "Obtained biz-event.", |
165 | 185 | "headers": { |
166 | 186 | "X-Request-Id": { |
167 | 187 | "description": "This header identifies the call", |
|
173 | 193 | "content": { |
174 | 194 | "application/json": { |
175 | 195 | "schema": { |
176 | | - "$ref": "#/components/schemas/ProblemJson" |
| 196 | + "$ref": "#/components/schemas/BizEvent" |
177 | 197 | } |
178 | 198 | } |
179 | 199 | } |
|
196 | 216 | } |
197 | 217 | } |
198 | 218 | }, |
199 | | - "200": { |
200 | | - "description": "Obtained biz-event.", |
| 219 | + "422": { |
| 220 | + "description": "Unable to process the request.", |
201 | 221 | "headers": { |
202 | 222 | "X-Request-Id": { |
203 | 223 | "description": "This header identifies the call", |
|
209 | 229 | "content": { |
210 | 230 | "application/json": { |
211 | 231 | "schema": { |
212 | | - "$ref": "#/components/schemas/BizEvent" |
| 232 | + "$ref": "#/components/schemas/ProblemJson" |
213 | 233 | } |
214 | 234 | } |
215 | 235 | } |
|
231 | 251 | } |
232 | 252 | } |
233 | 253 | } |
234 | | - }, |
235 | | - "401": { |
236 | | - "description": "Wrong or missing function key.", |
237 | | - "headers": { |
238 | | - "X-Request-Id": { |
239 | | - "description": "This header identifies the call", |
240 | | - "schema": { |
241 | | - "type": "string" |
242 | | - } |
243 | | - } |
244 | | - } |
245 | 254 | } |
246 | 255 | }, |
247 | 256 | "security": [ |
248 | 257 | { |
249 | 258 | "ApiKey": [] |
250 | 259 | } |
251 | 260 | ] |
252 | | - }, |
253 | | - "parameters": [ |
254 | | - { |
255 | | - "name": "X-Request-Id", |
256 | | - "in": "header", |
257 | | - "description": "This header identifies the call, if not passed it is self-generated. This ID is returned in the response.", |
258 | | - "required": false, |
259 | | - "schema": { |
260 | | - "type": "string" |
261 | | - } |
262 | | - } |
263 | | - ] |
| 261 | + } |
264 | 262 | }, |
265 | 263 | "/events/organizations/{organization-fiscal-code}/iuvs/{iuv}": { |
266 | 264 | "get": { |
|
287 | 285 | "schema": { |
288 | 286 | "type": "string" |
289 | 287 | } |
| 288 | + }, |
| 289 | + { |
| 290 | + "name": "X-Request-Id", |
| 291 | + "in": "header", |
| 292 | + "description": "This header identifies the call, if not passed it is self-generated. This ID is returned in the response.", |
| 293 | + "required": false, |
| 294 | + "schema": { |
| 295 | + "type": "string" |
| 296 | + } |
290 | 297 | } |
291 | 298 | ], |
292 | 299 | "responses": { |
|
301 | 308 | } |
302 | 309 | } |
303 | 310 | }, |
304 | | - "422": { |
305 | | - "description": "Unable to process the request.", |
| 311 | + "401": { |
| 312 | + "description": "Wrong or missing function key.", |
| 313 | + "headers": { |
| 314 | + "X-Request-Id": { |
| 315 | + "description": "This header identifies the call", |
| 316 | + "schema": { |
| 317 | + "type": "string" |
| 318 | + } |
| 319 | + } |
| 320 | + } |
| 321 | + }, |
| 322 | + "200": { |
| 323 | + "description": "Obtained biz-event.", |
306 | 324 | "headers": { |
307 | 325 | "X-Request-Id": { |
308 | 326 | "description": "This header identifies the call", |
|
314 | 332 | "content": { |
315 | 333 | "application/json": { |
316 | 334 | "schema": { |
317 | | - "$ref": "#/components/schemas/ProblemJson" |
| 335 | + "$ref": "#/components/schemas/BizEvent" |
318 | 336 | } |
319 | 337 | } |
320 | 338 | } |
|
337 | 355 | } |
338 | 356 | } |
339 | 357 | }, |
340 | | - "200": { |
341 | | - "description": "Obtained biz-event.", |
| 358 | + "422": { |
| 359 | + "description": "Unable to process the request.", |
342 | 360 | "headers": { |
343 | 361 | "X-Request-Id": { |
344 | 362 | "description": "This header identifies the call", |
|
350 | 368 | "content": { |
351 | 369 | "application/json": { |
352 | 370 | "schema": { |
353 | | - "$ref": "#/components/schemas/BizEvent" |
| 371 | + "$ref": "#/components/schemas/ProblemJson" |
354 | 372 | } |
355 | 373 | } |
356 | 374 | } |
|
372 | 390 | } |
373 | 391 | } |
374 | 392 | } |
375 | | - }, |
376 | | - "401": { |
377 | | - "description": "Wrong or missing function key.", |
378 | | - "headers": { |
379 | | - "X-Request-Id": { |
380 | | - "description": "This header identifies the call", |
381 | | - "schema": { |
382 | | - "type": "string" |
383 | | - } |
384 | | - } |
385 | | - } |
386 | 393 | } |
387 | 394 | }, |
388 | 395 | "security": [ |
389 | 396 | { |
390 | 397 | "ApiKey": [] |
391 | 398 | } |
392 | 399 | ] |
393 | | - }, |
394 | | - "parameters": [ |
395 | | - { |
396 | | - "name": "X-Request-Id", |
397 | | - "in": "header", |
398 | | - "description": "This header identifies the call, if not passed it is self-generated. This ID is returned in the response.", |
399 | | - "required": false, |
400 | | - "schema": { |
401 | | - "type": "string" |
402 | | - } |
403 | | - } |
404 | | - ] |
| 400 | + } |
405 | 401 | } |
406 | 402 | }, |
407 | 403 | "components": { |
|
0 commit comments