blob: 243de62102c14e0cf992e30a296eb4be9b6bb652 [file] [log] [blame]
tragait34a94b92021-03-30 12:02:27 +01001# ============LICENSE_START=======================================================
sourabh_sourabh4031d432023-03-27 14:36:20 +01002# Copyright (C) 2021-2023 Nordix Foundation
Ruslan Kashapov1baf48d2021-05-07 10:46:27 +03003# Modifications Copyright (C) 2021 Pantheon.tech
puthuparambil.adityad69742c2022-03-29 11:03:52 +01004# Modifications Copyright (C) 2022 Bell Canada
tragait34a94b92021-03-30 12:02:27 +01005# ================================================================================
6# Licensed under the Apache License, Version 2.0 (the "License");
7# you may not use this file except in compliance with the License.
8# You may obtain a copy of the License at
9#
10# http://www.apache.org/licenses/LICENSE-2.0
lukegleeson15b93e72021-07-07 15:25:30 +010011#
tragait34a94b92021-03-30 12:02:27 +010012# Unless required by applicable law or agreed to in writing, software
13# distributed under the License is distributed on an "AS IS" BASIS,
14# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15# See the License for the specific language governing permissions and
16# limitations under the License.
17#
18# SPDX-License-Identifier: Apache-2.0
19# ============LICENSE_END=========================================================
20
Ruslan Kashapov9f52f602021-01-22 12:53:01 +020021components:
22 schemas:
niamhcore66017b42021-10-19 11:07:02 +010023 # Common Schemas
Ruslan Kashapov9f52f602021-01-22 12:53:01 +020024 ErrorMessage:
25 type: object
26 title: Error
27 properties:
28 status:
29 type: string
30 message:
31 type: string
32 details:
33 type: string
mpriyank93afc1e2022-03-28 15:47:47 +053034 # DMI Server Exception Schema
35 DmiErrorMessage:
36 title: DMI Error Message
37 type: object
38 properties:
39 message:
40 type: string
egernug9426ae82023-06-21 11:16:02 +010041 example: 'Bad Gateway Error Message NCMP'
mpriyank93afc1e2022-03-28 15:47:47 +053042 dmi-response:
43 type: object
44 properties:
45 http-code:
46 type: integer
47 example: 400
48 body:
49 type: string
50 example: Bad Request
niamhcore66017b42021-10-19 11:07:02 +010051 # Request Schemas
DylanB95EST4f4178c2021-07-02 13:30:42 +010052 RestDmiPluginRegistration:
53 type: object
Ruslan Kashapov9f52f602021-01-22 12:53:01 +020054 properties:
DylanB95EST4f4178c2021-07-02 13:30:42 +010055 dmiPlugin:
Ruslan Kashapov9f52f602021-01-22 12:53:01 +020056 type: string
emaclee844cab32021-12-01 09:42:37 +000057 example: my-dmi-plugin
DylanB95ESTd042fcd2022-02-21 12:57:08 +000058 default: ""
JosephKeenan20b4f9c2021-11-23 12:18:28 +000059 dmiDataPlugin:
60 type: string
emaclee844cab32021-12-01 09:42:37 +000061 example: my-dmi-data-plugin
DylanB95ESTd042fcd2022-02-21 12:57:08 +000062 default: ""
JosephKeenan20b4f9c2021-11-23 12:18:28 +000063 dmiModelPlugin:
64 type: string
emaclee844cab32021-12-01 09:42:37 +000065 example: my-dmi-model-plugin
DylanB95ESTd042fcd2022-02-21 12:57:08 +000066 default: ""
DylanB95EST4f4178c2021-07-02 13:30:42 +010067 createdCmHandles:
68 type: array
69 items:
DylanB95ESTe5573382022-01-27 17:12:52 +000070 $ref: '#/components/schemas/RestInputCmHandle'
DylanB95EST31facc82021-08-18 17:12:25 +010071 updatedCmHandles:
72 type: array
73 items:
DylanB95ESTe5573382022-01-27 17:12:52 +000074 $ref: '#/components/schemas/RestInputCmHandle'
Renu Kumari2c963172022-03-10 16:02:55 -050075 example:
76 cmHandle: my-cm-handle
77 cmHandleProperties:
78 add-my-property: add-property
79 update-my-property: updated-property
80 delete-my-property: '~'
81 publicCmHandleProperties:
82 add-my-property: add-property
83 update-my-property: updated-property
84 delete-my-property: '~'
DylanB95ESTe999b022021-08-24 16:56:40 +010085 removedCmHandles:
86 type: array
87 items:
88 type: string
bmiklosbbaf5012022-08-25 18:28:16 +020089 example: [ my-cm-handle1, my-cm-handle2, my-cm-handle3 ]
Renu Kumarib14f04b2022-03-28 10:22:41 -040090 DmiPluginRegistrationErrorResponse:
91 type: object
92 properties:
93 failedCreatedCmHandles:
94 type: array
95 items:
96 $ref: '#/components/schemas/CmHandlerRegistrationErrorResponse'
Renu Kumarib14f04b2022-03-28 10:22:41 -040097 failedUpdatedCmHandles:
98 type: array
99 items:
100 $ref: '#/components/schemas/CmHandlerRegistrationErrorResponse'
Renu Kumarib14f04b2022-03-28 10:22:41 -0400101 failedRemovedCmHandles:
102 type: array
103 items:
104 $ref: '#/components/schemas/CmHandlerRegistrationErrorResponse'
Renu Kumarib14f04b2022-03-28 10:22:41 -0400105 CmHandlerRegistrationErrorResponse:
106 type: object
107 properties:
108 cmHandle:
109 type: string
110 example: my-cm-handle
111 errorCode:
112 type: string
Renu Kumari952603c2022-04-18 12:39:33 -0400113 example: '00'
Renu Kumarib14f04b2022-03-28 10:22:41 -0400114 errorText:
115 type: string
Renu Kumari952603c2022-04-18 12:39:33 -0400116 example: 'Unknown error. <error-details>'
DylanB95EST4f4178c2021-07-02 13:30:42 +0100117
DylanB95ESTe5573382022-01-27 17:12:52 +0000118 RestInputCmHandle:
DylanB95EST4f4178c2021-07-02 13:30:42 +0100119 required:
120 - cmHandle
121 type: object
122 properties:
123 cmHandle:
124 type: string
emaclee844cab32021-12-01 09:42:37 +0000125 example: my-cm-handle
DylanB95EST4f4178c2021-07-02 13:30:42 +0100126 cmHandleProperties:
bmiklosbbaf5012022-08-25 18:28:16 +0200127 $ref: '#/components/schemas/RestCmHandleProperties'
DylanB95EST63132ce2021-12-14 16:34:38 +0000128 publicCmHandleProperties:
bmiklosbbaf5012022-08-25 18:28:16 +0200129 $ref: '#/components/schemas/RestCmHandleProperties'
leventecsanyi46782b72023-09-04 10:59:23 +0200130 moduleSetTag:
131 type: string
132 example: "my-module-set-tag"
DylanB95EST63132ce2021-12-14 16:34:38 +0000133 RestCmHandleProperties:
bmiklosbbaf5012022-08-25 18:28:16 +0200134 type: object
135 additionalProperties:
136 type: string
137 example: my-property
Ruslan Kashapov9f52f602021-01-22 12:53:01 +0200138
niamhcore66017b42021-10-19 11:07:02 +0100139 #Response Schemas
lukegleesond5bda882022-03-02 14:32:47 +0000140 RestModuleReference:
puthuparambil.adityad0007332021-12-08 18:53:39 +0000141 type: object
142 title: Module reference details
143 properties:
144 moduleName:
145 type: string
146 example: my-module-name
147 revision:
148 type: string
149 example: my-module-revision
150
emacleee1f73e22022-06-17 17:42:56 +0100151 RestModuleDefinition:
152 type: object
153 title: Module definitions
154 properties:
155 moduleName:
156 type: string
157 example: my-module-name
158 revision:
159 type: string
160 example: 2020-09-15
161 content:
162 type: string
163 example: |
164 module stores {
165 yang-version 1.1;
egernug9426ae82023-06-21 11:16:02 +0100166 namespace 'org:onap:ccsdk:sample';
emacleee1f73e22022-06-17 17:42:56 +0100167 prefix book-store;
egernug9426ae82023-06-21 11:16:02 +0100168 revision '2020-09-15' {
emacleee1f73e22022-06-17 17:42:56 +0100169 description
egernug9426ae82023-06-21 11:16:02 +0100170 'Sample Model';
emacleee1f73e22022-06-17 17:42:56 +0100171 }
172 }
173
kissande9ed5812022-05-12 15:59:18 +0200174 CmHandleQueryParameters:
JosephKeenandeac4772022-03-28 12:26:07 +0100175 type: object
176 title: Cm Handle query parameters for executing cm handle search
177 properties:
kissande9ed5812022-05-12 15:59:18 +0200178 cmHandleQueryParameters:
179 type: array
180 items:
kissande9ed5812022-05-12 15:59:18 +0200181 $ref: '#/components/schemas/ConditionProperties'
182 conditions:
183 deprecated: true
184 type: array
185 items:
kissande9ed5812022-05-12 15:59:18 +0200186 $ref: '#/components/schemas/OldConditionProperties'
187 description: not necessary, it is just for backward compatibility
lukegleeson82a550f2022-07-11 10:55:53 +0100188
kissande9ed5812022-05-12 15:59:18 +0200189 ConditionProperties:
190 properties:
191 conditionName:
192 type: string
193 conditionParameters:
194 type: array
195 items:
196 type: object
197 additionalProperties:
198 type: string
199 OldConditionProperties:
200 deprecated: true
201 properties:
202 name:
203 type: string
204 conditionParameters:
205 type: array
206 items:
kissande9ed5812022-05-12 15:59:18 +0200207 $ref: '#/components/schemas/ModuleNameAsJsonObject'
208 ModuleNameAsJsonObject:
209 properties:
210 moduleName:
211 type: string
212 example: my-module
JosephKeenandeac4772022-03-28 12:26:07 +0100213
DylanB95ESTe5573382022-01-27 17:12:52 +0000214 RestOutputCmHandle:
215 type: object
216 title: CM handle Details
217 properties:
218 cmHandle:
219 type: string
220 example: my-cm-handle1
221 publicCmHandleProperties:
222 $ref: '#/components/schemas/CmHandlePublicProperties'
mpriyank4cf49622022-05-20 15:25:15 +0100223 state:
lukegleeson78062a12022-06-02 10:56:43 +0100224 $ref: '#/components/schemas/CmHandleCompositeState'
DylanB95ESTe5573382022-01-27 17:12:52 +0000225 CmHandlePublicProperties:
226 type: array
227 items:
228 type: object
229 additionalProperties:
230 type: string
231 example: Book Type
lukegleeson78062a12022-06-02 10:56:43 +0100232 CmHandleCompositeState:
mpriyank4cf49622022-05-20 15:25:15 +0100233 type: object
234 properties:
235 cmHandleState:
236 type: string
237 example: ADVISED
238 lockReason:
239 $ref: '#/components/schemas/lock-reason'
240 lastUpdateTime:
241 type: string
242 example: 2022-12-31T20:30:40.000+0000
243 dataSyncEnabled:
244 type: boolean
245 example: false
246 dataSyncState:
247 $ref: '#/components/schemas/dataStores'
248
249 lock-reason:
250 type: object
251 properties:
252 reason:
253 type: string
lukegleeson4e596842022-06-28 12:15:33 +0100254 example: LOCKED_MISBEHAVING
mpriyank4cf49622022-05-20 15:25:15 +0100255 details:
256 type: string
lukegleeson4e596842022-06-28 12:15:33 +0100257 example: locked due to failure in module sync
mpriyank4cf49622022-05-20 15:25:15 +0100258
259 dataStores:
260 type: object
261 properties:
262 operational:
263 $ref: '#/components/schemas/sync-state'
264 running:
265 $ref: '#/components/schemas/sync-state'
266
267 sync-state:
268 type: object
269 properties:
lukegleeson82a550f2022-07-11 10:55:53 +0100270 syncState:
mpriyank4cf49622022-05-20 15:25:15 +0100271 type: string
272 example: NONE_REQUESTED
273 lastSyncTime:
274 type: string
275 example: 2022-12-31T20:30:40.000+0000
DylanB95ESTe5573382022-01-27 17:12:52 +0000276
lukegleesonbed18fd2022-05-06 12:02:42 +0100277 RestOutputCmHandlePublicProperties:
278 type: object
279 properties:
280 publicCmHandleProperties:
281 $ref: '#/components/schemas/CmHandlePublicProperties'
282
lukegleeson78062a12022-06-02 10:56:43 +0100283 RestOutputCmHandleCompositeState:
284 type: object
285 properties:
286 state:
287 $ref: '#/components/schemas/CmHandleCompositeState'
raviteja.karumuri977f7c32023-06-20 19:10:21 +0100288 # Data Operation Request Schemas
289 DataOperationRequest:
sourabh_sourabhf232f302023-05-09 14:34:59 +0100290 type: object
raviteja.karumuri977f7c32023-06-20 19:10:21 +0100291 title: execute data operation for given array of operations
sourabh_sourabhf232f302023-05-09 14:34:59 +0100292 properties:
293 operations:
294 type: array
295 items:
raviteja.karumuri977f7c32023-06-20 19:10:21 +0100296 $ref: '#/components/schemas/DataOperationDefinition'
297 description: contains group of data operation requests
298 DataOperationDefinition:
sourabh_sourabhf232f302023-05-09 14:34:59 +0100299 required:
300 - operation
301 - datastore
302 - operationId
303 properties:
304 operation:
305 type: string
306 example: 'read'
307 operationId:
308 type: string
309 example: '12'
310 datastore:
311 type: string
312 example: 'ncmp-datastore:passthrough-operational'
313 options:
314 type: string
315 example: '(fields=schemas/schema)'
316 resourceIdentifier:
317 type: string
318 example: 'parent/child'
319 targetIds:
320 type: array
321 items:
322 type: string
egernug9426ae82023-06-21 11:16:02 +0100323 example: [ "da310eecdb8d44c2acc0ddaae01174b1","c748c58f8e0b438f9fd1f28370b17d47" ]
lukegleeson78062a12022-06-02 10:56:43 +0100324
emaclee844cab32021-12-01 09:42:37 +0000325 examples:
326 dataSampleRequest:
bmiklosbbaf5012022-08-25 18:28:16 +0200327 summary: Sample request
328 description: Sample request body
329 value:
330 test:bookstore:
331 bookstore-name: Chapters
332 categories:
333 - code: '01'
334 name: SciFi
335 books:
emaclee844cab32021-12-01 09:42:37 +0000336 - authors:
337 - Iain M. Banks
emaclee844cab32021-12-01 09:42:37 +0000338 - Ursula K. Le Guin
bmiklosbbaf5012022-08-25 18:28:16 +0200339 - code: '02'
340 name: kids
341 books:
emaclee844cab32021-12-01 09:42:37 +0000342 - authors:
343 - Philip Pullman
344
tragaitecd7f5e2022-01-13 13:15:14 +0000345 dataSamplePatchRequest:
346 summary: Sample patch request
347 description: Sample patch request body
348 value:
349 ietf-restconf:yang-patch:
350 patch-id: patch-1
351 edit:
352 - edit-id: edit1
353 operation: merge
354 target: /
355 value:
356 test:bookstore:
357 bookstore-name: Chapters
358 categories:
359 - code: '01'
360 name: Science
361 books:
362 - authors:
363 - Author1
364 - Author2
365 - code: '02'
366 name: Arts
367 books:
368 - authors:
369 - Author3
370 - edit-id: edit2
371 operation: merge
372 target: /
373 value:
374 test:bookstore:
375 bookstore-name: Novels
376 categories:
377 - code: '03'
378 name: History
379 books:
380 - authors:
381 - Iain M. Banks
382 - Ursula K. Le Guin
383 - code: '04'
384 name: Fiction
385 books:
386 - authors:
387 - Philip Pullman
388
emaclee844cab32021-12-01 09:42:37 +0000389 dataSampleResponse:
bmiklosbbaf5012022-08-25 18:28:16 +0200390 summary: Sample response
391 description: Sample response for selecting 'sample 1'.
392 value:
393 bookstore:
394 categories:
395 - code: '01'
396 books:
397 - authors:
398 - Iain M. Banks
399 - Ursula K. Le Guin
400 name: SciFi
401 - code: '02'
402 books:
403 - authors:
404 - Philip Pullman
405 name: kids
niamhcore66017b42021-10-19 11:07:02 +0100406
lukegleeson82a550f2022-07-11 10:55:53 +0100407 allCmHandleQueryParameters:
408 value:
409 cmHandleQueryParameters:
410 - conditionName: hasAllModules
411 conditionParameters:
412 - { "moduleName": "my-module-1" }
413 - { "moduleName": "my-module-2" }
414 - { "moduleName": "my-module-3" }
415 - conditionName: hasAllProperties
416 conditionParameters:
417 - { "Color": "yellow" }
418 - { "Shape": "circle" }
419 - { "Size": "small" }
420 - conditionName: cmHandleWithCpsPath
421 conditionParameters:
422 - { "cpsPath": "//state[@cm-handle-state='ADVISED']" }
423 pubPropCmHandleQueryParameters:
424 value:
425 cmHandleQueryParameters:
426 - conditionName: hasAllProperties
427 conditionParameters:
428 - { "Color": "yellow" }
429 - { "Shape": "circle" }
430 - { "Size": "small" }
431 modulesCmHandleQueryParameters:
432 value:
433 cmHandleQueryParameters:
434 - conditionName: hasAllModules
435 conditionParameters:
436 - { "moduleName": "my-module-1" }
437 - { "moduleName": "my-module-2" }
438 - { "moduleName": "my-module-3" }
439 cpsPathCmHandleStateQueryParameters:
440 value:
441 cmHandleQueryParameters:
442 - conditionName: cmHandleWithCpsPath
443 conditionParameters:
444 - { "cpsPath": "//state[@cm-handle-state='LOCKED']" }
445 cpsPathCmHandleDataSyncQueryParameters:
446 value:
447 cmHandleQueryParameters:
448 - conditionName: cmHandleWithCpsPath
449 conditionParameters:
450 - { "cpsPath": "//state[@data-sync-enabled='true']" }
451
Ruslan Kashapov9f52f602021-01-22 12:53:01 +0200452 parameters:
Hanif Kukkalli83e318f2021-02-23 12:26:39 +0100453 cmHandleInPath:
454 name: cm-handle
455 in: path
tragait34a94b92021-03-30 12:02:27 +0100456 description: The identifier for a network function, network element, subnetwork or any other cm object by managed Network CM Proxy
Hanif Kukkalli83e318f2021-02-23 12:26:39 +0100457 required: true
458 schema:
459 type: string
emaclee844cab32021-12-01 09:42:37 +0000460 example: my-cm-handle
DylanB95EST6ddbe4a2022-07-19 11:36:10 +0100461 dataSyncEnabled:
462 name: dataSyncEnabled
463 in: query
464 description: Is used to enable or disable the data synchronization flag
465 required: true
466 schema:
467 type: boolean
468 example: true
Hanif Kukkalli83e318f2021-02-23 12:26:39 +0100469 xpathInQuery:
470 name: xpath
471 in: query
472 description: xpath
473 required: false
474 schema:
475 type: string
476 default: /
Ruslan Kashapov1baf48d2021-05-07 10:46:27 +0300477 requiredXpathInQuery:
478 name: xpath
479 in: query
480 description: xpath
481 required: true
482 schema:
483 type: string
Hanif Kukkalli83e318f2021-02-23 12:26:39 +0100484 includeDescendantsOptionInQuery:
485 name: include-descendants
486 in: query
bmiklosbbaf5012022-08-25 18:28:16 +0200487 description: Determines if descendants are included in response
Hanif Kukkalli83e318f2021-02-23 12:26:39 +0100488 required: false
489 schema:
490 type: boolean
491 default: false
niamhcoreb5d573b2021-02-26 10:13:48 +0000492 cpsPathInQuery:
493 name: cps-path
494 in: query
lukegleeson20e7a732022-10-20 10:14:00 +0100495 description: For more details on cps path, please refer https://docs.onap.org/projects/onap-cps/en/latest/cps-path.html
niamhcoreb5d573b2021-02-26 10:13:48 +0000496 required: false
497 schema:
498 type: string
499 default: /
lukegleeson20e7a732022-10-20 10:14:00 +0100500 examples:
501 container cps path:
502 value: //bookstore
503 list attributes cps path:
504 value: //categories[@code=1]
emacleed3400472022-08-19 09:26:39 +0100505 dmiPluginIdentifierInQuery:
506 name: dmi-plugin-identifier
507 in: query
508 description: dmi-plugin-identifier
509 required: true
510 schema:
511 type: string
512 example: my-dmi-plugin
niamhcorefd2e6dd2021-09-29 16:43:35 +0100513 resourceIdentifierInQuery:
tragaitc3285512021-08-16 15:12:36 +0100514 name: resourceIdentifier
niamhcorefd2e6dd2021-09-29 16:43:35 +0100515 in: query
516 description: The format of resource identifier depend on the associated DMI Plugin implementation. For ONAP DMI Plugin it will be RESTConf paths but it can really be anything.
tragaitc3285512021-08-16 15:12:36 +0100517 required: true
niamhcorefd2e6dd2021-09-29 16:43:35 +0100518 allowReserved: true
tragaitc3285512021-08-16 15:12:36 +0100519 schema:
520 type: string
niamhcorefd2e6dd2021-09-29 16:43:35 +0100521 examples:
emaclee844cab32021-12-01 09:42:37 +0000522 sample 1:
niamhcorefd2e6dd2021-09-29 16:43:35 +0100523 value:
emaclee844cab32021-12-01 09:42:37 +0000524 resourceIdentifier: \shops\bookstore
525 sample 2:
niamhcorefd2e6dd2021-09-29 16:43:35 +0100526 value:
emaclee844cab32021-12-01 09:42:37 +0000527 resourceIdentifier: \shops\bookstore\categories[@code=1]
528 sample 3:
niamhcorefd2e6dd2021-09-29 16:43:35 +0100529 value:
emaclee844cab32021-12-01 09:42:37 +0000530 resourceIdentifier: parent=shops,child=bookstore
tragaitabdff1b2021-10-06 11:04:18 +0100531 optionsParamInQuery:
532 name: options
tragaitc3285512021-08-16 15:12:36 +0100533 in: query
emaclee844cab32021-12-01 09:42:37 +0000534 description: options parameter in query, it is mandatory to wrap key(s)=value(s) in parenthesis'()'. The format of options parameter depend on the associated DMI Plugin implementation.
tragaitc3285512021-08-16 15:12:36 +0100535 required: false
536 schema:
537 type: string
tragaitabdff1b2021-10-06 11:04:18 +0100538 allowReserved: true
539 examples:
emaclee844cab32021-12-01 09:42:37 +0000540 sample 1:
tragaitabdff1b2021-10-06 11:04:18 +0100541 value:
emaclee844cab32021-12-01 09:42:37 +0000542 options: (depth=3)
543 sample 2:
tragaitabdff1b2021-10-06 11:04:18 +0100544 value:
emaclee844cab32021-12-01 09:42:37 +0000545 options: (fields=book)
546 sample 3:
tragaitabdff1b2021-10-06 11:04:18 +0100547 value:
emaclee844cab32021-12-01 09:42:37 +0000548 options: (depth=2,fields=book/authors)
sourabh_sourabh1f2e66e2022-02-16 21:53:41 +0530549 topicParamInQuery:
550 name: topic
551 in: query
552 description: topic parameter in query.
553 required: false
554 schema:
555 type: string
556 allowReserved: true
557 examples:
558 sample 1:
559 value:
560 topic: my-topic-name
sourabh_sourabh4031d432023-03-27 14:36:20 +0100561 requiredTopicParamInQuery:
562 name: topic
563 in: query
564 description: mandatory topic parameter in query.
565 required: true
566 schema:
567 type: string
568 allowReserved: true
569 examples:
570 sample 1:
571 value:
572 topic: my-topic-name
tragaitc584bf22021-08-20 15:45:58 +0100573 contentParamInHeader:
574 name: Content-Type
575 in: header
576 required: false
577 description: Content parameter for request, if content parameter is null, default value is application/json.
578 schema:
579 type: string
580 default: application/json
emaclee844cab32021-12-01 09:42:37 +0000581 example: application/yang-data+json
bmiklosbbaf5012022-08-25 18:28:16 +0200582 datastoreName:
lukegleeson20e7a732022-10-20 10:14:00 +0100583 name: datastore-name
bmiklosbbaf5012022-08-25 18:28:16 +0200584 in: path
585 description: The type of the requested data
586 required: true
587 schema:
588 type: string
seanbeirneafc60552023-01-30 16:53:37 +0000589 example: ncmp-datastore:running
Ruslan Kashapov9f52f602021-01-22 12:53:01 +0200590
591 responses:
592 NotFound:
593 description: The specified resource was not found
594 content:
595 application/json:
596 schema:
597 $ref: '#/components/schemas/ErrorMessage'
emaclee844cab32021-12-01 09:42:37 +0000598 example:
599 status: 400
600 message: Not found error message
601 details: Not found error details
Ruslan Kashapov9f52f602021-01-22 12:53:01 +0200602 Unauthorized:
603 description: Unauthorized
604 content:
605 application/json:
606 schema:
607 $ref: '#/components/schemas/ErrorMessage'
emaclee844cab32021-12-01 09:42:37 +0000608 example:
609 status: 401
610 message: Unauthorized error message
611 details: Unauthorized error details
Ruslan Kashapov9f52f602021-01-22 12:53:01 +0200612 Forbidden:
613 description: Forbidden
614 content:
615 application/json:
616 schema:
617 $ref: '#/components/schemas/ErrorMessage'
emaclee844cab32021-12-01 09:42:37 +0000618 example:
bmiklosbbaf5012022-08-25 18:28:16 +0200619 status: 403
620 message: Forbidden error message
621 details: Forbidden error details
Ruslan Kashapov9f52f602021-01-22 12:53:01 +0200622 BadRequest:
623 description: Bad Request
624 content:
625 application/json:
626 schema:
627 $ref: '#/components/schemas/ErrorMessage'
emaclee844cab32021-12-01 09:42:37 +0000628 example:
bmiklosbbaf5012022-08-25 18:28:16 +0200629 status: 400 BAD_REQUEST
630 message: Bad request error message
631 details: Bad request error details
Ruslan Kashapov9f52f602021-01-22 12:53:01 +0200632 Conflict:
633 description: Conflict
634 content:
635 application/json:
636 schema:
637 $ref: '#/components/schemas/ErrorMessage'
emaclee844cab32021-12-01 09:42:37 +0000638 example:
bmiklosbbaf5012022-08-25 18:28:16 +0200639 status: 409 CONFLICT
640 message: Conflict error message
641 details: Conflict error details
Hanif Kukkalli83e318f2021-02-23 12:26:39 +0100642 NotImplemented:
643 description: The given path has not been implemented
644 content:
645 application/json:
646 schema:
647 $ref: '#/components/schemas/ErrorMessage'
emaclee844cab32021-12-01 09:42:37 +0000648 example:
bmiklosbbaf5012022-08-25 18:28:16 +0200649 status: 501
650 message: Not implemented error message
651 details: Not implemented error details
Ruslan Kashapov9f52f602021-01-22 12:53:01 +0200652 Ok:
653 description: OK
654 content:
655 application/json:
656 schema:
657 type: object
658 Created:
659 description: Created
bmiklosbbaf5012022-08-25 18:28:16 +0200660 content: { }
Ruslan Kashapov9f52f602021-01-22 12:53:01 +0200661 NoContent:
662 description: No Content
bmiklosbbaf5012022-08-25 18:28:16 +0200663 content: { }
JosephKeenane0873dd2022-01-28 11:22:22 +0000664 InternalServerError:
665 description: Internal Server Error
666 content:
667 application/json:
668 schema:
669 $ref: "#/components/schemas/ErrorMessage"
670 example:
671 status: 500
672 message: Internal Server Error
673 details: Internal Server Error occurred
mpriyank93afc1e2022-03-28 15:47:47 +0530674 BadGateway:
675 description: Bad Gateway
676 content:
677 application/json:
678 schema:
679 $ref: "#/components/schemas/DmiErrorMessage"
680 example:
681 message: "Bad Gateway Error Message NCMP"
682 dmi-response:
683 http-code: 400
684 body: "Bad Request"