blob: 818b2daeedd5db3a2195f2f2d7faaefa412c9da7 [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'
DylanB95EST63132ce2021-12-14 16:34:38 +0000130 RestCmHandleProperties:
bmiklosbbaf5012022-08-25 18:28:16 +0200131 type: object
132 additionalProperties:
133 type: string
134 example: my-property
Ruslan Kashapov9f52f602021-01-22 12:53:01 +0200135
niamhcore66017b42021-10-19 11:07:02 +0100136 #Response Schemas
lukegleesond5bda882022-03-02 14:32:47 +0000137 RestModuleReference:
puthuparambil.adityad0007332021-12-08 18:53:39 +0000138 type: object
139 title: Module reference details
140 properties:
141 moduleName:
142 type: string
143 example: my-module-name
144 revision:
145 type: string
146 example: my-module-revision
147
emacleee1f73e22022-06-17 17:42:56 +0100148 RestModuleDefinition:
149 type: object
150 title: Module definitions
151 properties:
152 moduleName:
153 type: string
154 example: my-module-name
155 revision:
156 type: string
157 example: 2020-09-15
158 content:
159 type: string
160 example: |
161 module stores {
162 yang-version 1.1;
egernug9426ae82023-06-21 11:16:02 +0100163 namespace 'org:onap:ccsdk:sample';
emacleee1f73e22022-06-17 17:42:56 +0100164 prefix book-store;
egernug9426ae82023-06-21 11:16:02 +0100165 revision '2020-09-15' {
emacleee1f73e22022-06-17 17:42:56 +0100166 description
egernug9426ae82023-06-21 11:16:02 +0100167 'Sample Model';
emacleee1f73e22022-06-17 17:42:56 +0100168 }
169 }
170
kissande9ed5812022-05-12 15:59:18 +0200171 CmHandleQueryParameters:
JosephKeenandeac4772022-03-28 12:26:07 +0100172 type: object
173 title: Cm Handle query parameters for executing cm handle search
174 properties:
kissande9ed5812022-05-12 15:59:18 +0200175 cmHandleQueryParameters:
176 type: array
177 items:
kissande9ed5812022-05-12 15:59:18 +0200178 $ref: '#/components/schemas/ConditionProperties'
179 conditions:
180 deprecated: true
181 type: array
182 items:
kissande9ed5812022-05-12 15:59:18 +0200183 $ref: '#/components/schemas/OldConditionProperties'
184 description: not necessary, it is just for backward compatibility
lukegleeson82a550f2022-07-11 10:55:53 +0100185
kissande9ed5812022-05-12 15:59:18 +0200186 ConditionProperties:
187 properties:
188 conditionName:
189 type: string
190 conditionParameters:
191 type: array
192 items:
193 type: object
194 additionalProperties:
195 type: string
196 OldConditionProperties:
197 deprecated: true
198 properties:
199 name:
200 type: string
201 conditionParameters:
202 type: array
203 items:
kissande9ed5812022-05-12 15:59:18 +0200204 $ref: '#/components/schemas/ModuleNameAsJsonObject'
205 ModuleNameAsJsonObject:
206 properties:
207 moduleName:
208 type: string
209 example: my-module
JosephKeenandeac4772022-03-28 12:26:07 +0100210
DylanB95ESTe5573382022-01-27 17:12:52 +0000211 RestOutputCmHandle:
212 type: object
213 title: CM handle Details
214 properties:
215 cmHandle:
216 type: string
217 example: my-cm-handle1
218 publicCmHandleProperties:
219 $ref: '#/components/schemas/CmHandlePublicProperties'
mpriyank4cf49622022-05-20 15:25:15 +0100220 state:
lukegleeson78062a12022-06-02 10:56:43 +0100221 $ref: '#/components/schemas/CmHandleCompositeState'
DylanB95ESTe5573382022-01-27 17:12:52 +0000222 CmHandlePublicProperties:
223 type: array
224 items:
225 type: object
226 additionalProperties:
227 type: string
228 example: Book Type
lukegleeson78062a12022-06-02 10:56:43 +0100229 CmHandleCompositeState:
mpriyank4cf49622022-05-20 15:25:15 +0100230 type: object
231 properties:
232 cmHandleState:
233 type: string
234 example: ADVISED
235 lockReason:
236 $ref: '#/components/schemas/lock-reason'
237 lastUpdateTime:
238 type: string
239 example: 2022-12-31T20:30:40.000+0000
240 dataSyncEnabled:
241 type: boolean
242 example: false
243 dataSyncState:
244 $ref: '#/components/schemas/dataStores'
245
246 lock-reason:
247 type: object
248 properties:
249 reason:
250 type: string
lukegleeson4e596842022-06-28 12:15:33 +0100251 example: LOCKED_MISBEHAVING
mpriyank4cf49622022-05-20 15:25:15 +0100252 details:
253 type: string
lukegleeson4e596842022-06-28 12:15:33 +0100254 example: locked due to failure in module sync
mpriyank4cf49622022-05-20 15:25:15 +0100255
256 dataStores:
257 type: object
258 properties:
259 operational:
260 $ref: '#/components/schemas/sync-state'
261 running:
262 $ref: '#/components/schemas/sync-state'
263
264 sync-state:
265 type: object
266 properties:
lukegleeson82a550f2022-07-11 10:55:53 +0100267 syncState:
mpriyank4cf49622022-05-20 15:25:15 +0100268 type: string
269 example: NONE_REQUESTED
270 lastSyncTime:
271 type: string
272 example: 2022-12-31T20:30:40.000+0000
DylanB95ESTe5573382022-01-27 17:12:52 +0000273
lukegleesonbed18fd2022-05-06 12:02:42 +0100274 RestOutputCmHandlePublicProperties:
275 type: object
276 properties:
277 publicCmHandleProperties:
278 $ref: '#/components/schemas/CmHandlePublicProperties'
279
lukegleeson78062a12022-06-02 10:56:43 +0100280 RestOutputCmHandleCompositeState:
281 type: object
282 properties:
283 state:
284 $ref: '#/components/schemas/CmHandleCompositeState'
raviteja.karumuri977f7c32023-06-20 19:10:21 +0100285 # Data Operation Request Schemas
286 DataOperationRequest:
sourabh_sourabhf232f302023-05-09 14:34:59 +0100287 type: object
raviteja.karumuri977f7c32023-06-20 19:10:21 +0100288 title: execute data operation for given array of operations
sourabh_sourabhf232f302023-05-09 14:34:59 +0100289 properties:
290 operations:
291 type: array
292 items:
raviteja.karumuri977f7c32023-06-20 19:10:21 +0100293 $ref: '#/components/schemas/DataOperationDefinition'
294 description: contains group of data operation requests
295 DataOperationDefinition:
sourabh_sourabhf232f302023-05-09 14:34:59 +0100296 required:
297 - operation
298 - datastore
299 - operationId
300 properties:
301 operation:
302 type: string
303 example: 'read'
304 operationId:
305 type: string
306 example: '12'
307 datastore:
308 type: string
309 example: 'ncmp-datastore:passthrough-operational'
310 options:
311 type: string
312 example: '(fields=schemas/schema)'
313 resourceIdentifier:
314 type: string
315 example: 'parent/child'
316 targetIds:
317 type: array
318 items:
319 type: string
egernug9426ae82023-06-21 11:16:02 +0100320 example: [ "da310eecdb8d44c2acc0ddaae01174b1","c748c58f8e0b438f9fd1f28370b17d47" ]
lukegleeson78062a12022-06-02 10:56:43 +0100321
emaclee844cab32021-12-01 09:42:37 +0000322 examples:
323 dataSampleRequest:
bmiklosbbaf5012022-08-25 18:28:16 +0200324 summary: Sample request
325 description: Sample request body
326 value:
327 test:bookstore:
328 bookstore-name: Chapters
329 categories:
330 - code: '01'
331 name: SciFi
332 books:
emaclee844cab32021-12-01 09:42:37 +0000333 - authors:
334 - Iain M. Banks
emaclee844cab32021-12-01 09:42:37 +0000335 - Ursula K. Le Guin
bmiklosbbaf5012022-08-25 18:28:16 +0200336 - code: '02'
337 name: kids
338 books:
emaclee844cab32021-12-01 09:42:37 +0000339 - authors:
340 - Philip Pullman
341
tragaitecd7f5e2022-01-13 13:15:14 +0000342 dataSamplePatchRequest:
343 summary: Sample patch request
344 description: Sample patch request body
345 value:
346 ietf-restconf:yang-patch:
347 patch-id: patch-1
348 edit:
349 - edit-id: edit1
350 operation: merge
351 target: /
352 value:
353 test:bookstore:
354 bookstore-name: Chapters
355 categories:
356 - code: '01'
357 name: Science
358 books:
359 - authors:
360 - Author1
361 - Author2
362 - code: '02'
363 name: Arts
364 books:
365 - authors:
366 - Author3
367 - edit-id: edit2
368 operation: merge
369 target: /
370 value:
371 test:bookstore:
372 bookstore-name: Novels
373 categories:
374 - code: '03'
375 name: History
376 books:
377 - authors:
378 - Iain M. Banks
379 - Ursula K. Le Guin
380 - code: '04'
381 name: Fiction
382 books:
383 - authors:
384 - Philip Pullman
385
emaclee844cab32021-12-01 09:42:37 +0000386 dataSampleResponse:
bmiklosbbaf5012022-08-25 18:28:16 +0200387 summary: Sample response
388 description: Sample response for selecting 'sample 1'.
389 value:
390 bookstore:
391 categories:
392 - code: '01'
393 books:
394 - authors:
395 - Iain M. Banks
396 - Ursula K. Le Guin
397 name: SciFi
398 - code: '02'
399 books:
400 - authors:
401 - Philip Pullman
402 name: kids
niamhcore66017b42021-10-19 11:07:02 +0100403
lukegleeson82a550f2022-07-11 10:55:53 +0100404 allCmHandleQueryParameters:
405 value:
406 cmHandleQueryParameters:
407 - conditionName: hasAllModules
408 conditionParameters:
409 - { "moduleName": "my-module-1" }
410 - { "moduleName": "my-module-2" }
411 - { "moduleName": "my-module-3" }
412 - conditionName: hasAllProperties
413 conditionParameters:
414 - { "Color": "yellow" }
415 - { "Shape": "circle" }
416 - { "Size": "small" }
417 - conditionName: cmHandleWithCpsPath
418 conditionParameters:
419 - { "cpsPath": "//state[@cm-handle-state='ADVISED']" }
420 pubPropCmHandleQueryParameters:
421 value:
422 cmHandleQueryParameters:
423 - conditionName: hasAllProperties
424 conditionParameters:
425 - { "Color": "yellow" }
426 - { "Shape": "circle" }
427 - { "Size": "small" }
428 modulesCmHandleQueryParameters:
429 value:
430 cmHandleQueryParameters:
431 - conditionName: hasAllModules
432 conditionParameters:
433 - { "moduleName": "my-module-1" }
434 - { "moduleName": "my-module-2" }
435 - { "moduleName": "my-module-3" }
436 cpsPathCmHandleStateQueryParameters:
437 value:
438 cmHandleQueryParameters:
439 - conditionName: cmHandleWithCpsPath
440 conditionParameters:
441 - { "cpsPath": "//state[@cm-handle-state='LOCKED']" }
442 cpsPathCmHandleDataSyncQueryParameters:
443 value:
444 cmHandleQueryParameters:
445 - conditionName: cmHandleWithCpsPath
446 conditionParameters:
447 - { "cpsPath": "//state[@data-sync-enabled='true']" }
448
Ruslan Kashapov9f52f602021-01-22 12:53:01 +0200449 parameters:
Hanif Kukkalli83e318f2021-02-23 12:26:39 +0100450 cmHandleInPath:
451 name: cm-handle
452 in: path
tragait34a94b92021-03-30 12:02:27 +0100453 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 +0100454 required: true
455 schema:
456 type: string
emaclee844cab32021-12-01 09:42:37 +0000457 example: my-cm-handle
DylanB95EST6ddbe4a2022-07-19 11:36:10 +0100458 dataSyncEnabled:
459 name: dataSyncEnabled
460 in: query
461 description: Is used to enable or disable the data synchronization flag
462 required: true
463 schema:
464 type: boolean
465 example: true
Hanif Kukkalli83e318f2021-02-23 12:26:39 +0100466 xpathInQuery:
467 name: xpath
468 in: query
469 description: xpath
470 required: false
471 schema:
472 type: string
473 default: /
Ruslan Kashapov1baf48d2021-05-07 10:46:27 +0300474 requiredXpathInQuery:
475 name: xpath
476 in: query
477 description: xpath
478 required: true
479 schema:
480 type: string
Hanif Kukkalli83e318f2021-02-23 12:26:39 +0100481 includeDescendantsOptionInQuery:
482 name: include-descendants
483 in: query
bmiklosbbaf5012022-08-25 18:28:16 +0200484 description: Determines if descendants are included in response
Hanif Kukkalli83e318f2021-02-23 12:26:39 +0100485 required: false
486 schema:
487 type: boolean
488 default: false
niamhcoreb5d573b2021-02-26 10:13:48 +0000489 cpsPathInQuery:
490 name: cps-path
491 in: query
lukegleeson20e7a732022-10-20 10:14:00 +0100492 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 +0000493 required: false
494 schema:
495 type: string
496 default: /
lukegleeson20e7a732022-10-20 10:14:00 +0100497 examples:
498 container cps path:
499 value: //bookstore
500 list attributes cps path:
501 value: //categories[@code=1]
emacleed3400472022-08-19 09:26:39 +0100502 dmiPluginIdentifierInQuery:
503 name: dmi-plugin-identifier
504 in: query
505 description: dmi-plugin-identifier
506 required: true
507 schema:
508 type: string
509 example: my-dmi-plugin
niamhcorefd2e6dd2021-09-29 16:43:35 +0100510 resourceIdentifierInQuery:
tragaitc3285512021-08-16 15:12:36 +0100511 name: resourceIdentifier
niamhcorefd2e6dd2021-09-29 16:43:35 +0100512 in: query
513 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 +0100514 required: true
niamhcorefd2e6dd2021-09-29 16:43:35 +0100515 allowReserved: true
tragaitc3285512021-08-16 15:12:36 +0100516 schema:
517 type: string
niamhcorefd2e6dd2021-09-29 16:43:35 +0100518 examples:
emaclee844cab32021-12-01 09:42:37 +0000519 sample 1:
niamhcorefd2e6dd2021-09-29 16:43:35 +0100520 value:
emaclee844cab32021-12-01 09:42:37 +0000521 resourceIdentifier: \shops\bookstore
522 sample 2:
niamhcorefd2e6dd2021-09-29 16:43:35 +0100523 value:
emaclee844cab32021-12-01 09:42:37 +0000524 resourceIdentifier: \shops\bookstore\categories[@code=1]
525 sample 3:
niamhcorefd2e6dd2021-09-29 16:43:35 +0100526 value:
emaclee844cab32021-12-01 09:42:37 +0000527 resourceIdentifier: parent=shops,child=bookstore
tragaitabdff1b2021-10-06 11:04:18 +0100528 optionsParamInQuery:
529 name: options
tragaitc3285512021-08-16 15:12:36 +0100530 in: query
emaclee844cab32021-12-01 09:42:37 +0000531 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 +0100532 required: false
533 schema:
534 type: string
tragaitabdff1b2021-10-06 11:04:18 +0100535 allowReserved: true
536 examples:
emaclee844cab32021-12-01 09:42:37 +0000537 sample 1:
tragaitabdff1b2021-10-06 11:04:18 +0100538 value:
emaclee844cab32021-12-01 09:42:37 +0000539 options: (depth=3)
540 sample 2:
tragaitabdff1b2021-10-06 11:04:18 +0100541 value:
emaclee844cab32021-12-01 09:42:37 +0000542 options: (fields=book)
543 sample 3:
tragaitabdff1b2021-10-06 11:04:18 +0100544 value:
emaclee844cab32021-12-01 09:42:37 +0000545 options: (depth=2,fields=book/authors)
sourabh_sourabh1f2e66e2022-02-16 21:53:41 +0530546 topicParamInQuery:
547 name: topic
548 in: query
549 description: topic parameter in query.
550 required: false
551 schema:
552 type: string
553 allowReserved: true
554 examples:
555 sample 1:
556 value:
557 topic: my-topic-name
sourabh_sourabh4031d432023-03-27 14:36:20 +0100558 requiredTopicParamInQuery:
559 name: topic
560 in: query
561 description: mandatory topic parameter in query.
562 required: true
563 schema:
564 type: string
565 allowReserved: true
566 examples:
567 sample 1:
568 value:
569 topic: my-topic-name
tragaitc584bf22021-08-20 15:45:58 +0100570 contentParamInHeader:
571 name: Content-Type
572 in: header
573 required: false
574 description: Content parameter for request, if content parameter is null, default value is application/json.
575 schema:
576 type: string
577 default: application/json
emaclee844cab32021-12-01 09:42:37 +0000578 example: application/yang-data+json
bmiklosbbaf5012022-08-25 18:28:16 +0200579 datastoreName:
lukegleeson20e7a732022-10-20 10:14:00 +0100580 name: datastore-name
bmiklosbbaf5012022-08-25 18:28:16 +0200581 in: path
582 description: The type of the requested data
583 required: true
584 schema:
585 type: string
seanbeirneafc60552023-01-30 16:53:37 +0000586 example: ncmp-datastore:running
Ruslan Kashapov9f52f602021-01-22 12:53:01 +0200587
588 responses:
589 NotFound:
590 description: The specified resource was not found
591 content:
592 application/json:
593 schema:
594 $ref: '#/components/schemas/ErrorMessage'
emaclee844cab32021-12-01 09:42:37 +0000595 example:
596 status: 400
597 message: Not found error message
598 details: Not found error details
Ruslan Kashapov9f52f602021-01-22 12:53:01 +0200599 Unauthorized:
600 description: Unauthorized
601 content:
602 application/json:
603 schema:
604 $ref: '#/components/schemas/ErrorMessage'
emaclee844cab32021-12-01 09:42:37 +0000605 example:
606 status: 401
607 message: Unauthorized error message
608 details: Unauthorized error details
Ruslan Kashapov9f52f602021-01-22 12:53:01 +0200609 Forbidden:
610 description: Forbidden
611 content:
612 application/json:
613 schema:
614 $ref: '#/components/schemas/ErrorMessage'
emaclee844cab32021-12-01 09:42:37 +0000615 example:
bmiklosbbaf5012022-08-25 18:28:16 +0200616 status: 403
617 message: Forbidden error message
618 details: Forbidden error details
Ruslan Kashapov9f52f602021-01-22 12:53:01 +0200619 BadRequest:
620 description: Bad Request
621 content:
622 application/json:
623 schema:
624 $ref: '#/components/schemas/ErrorMessage'
emaclee844cab32021-12-01 09:42:37 +0000625 example:
bmiklosbbaf5012022-08-25 18:28:16 +0200626 status: 400 BAD_REQUEST
627 message: Bad request error message
628 details: Bad request error details
Ruslan Kashapov9f52f602021-01-22 12:53:01 +0200629 Conflict:
630 description: Conflict
631 content:
632 application/json:
633 schema:
634 $ref: '#/components/schemas/ErrorMessage'
emaclee844cab32021-12-01 09:42:37 +0000635 example:
bmiklosbbaf5012022-08-25 18:28:16 +0200636 status: 409 CONFLICT
637 message: Conflict error message
638 details: Conflict error details
Hanif Kukkalli83e318f2021-02-23 12:26:39 +0100639 NotImplemented:
640 description: The given path has not been implemented
641 content:
642 application/json:
643 schema:
644 $ref: '#/components/schemas/ErrorMessage'
emaclee844cab32021-12-01 09:42:37 +0000645 example:
bmiklosbbaf5012022-08-25 18:28:16 +0200646 status: 501
647 message: Not implemented error message
648 details: Not implemented error details
Ruslan Kashapov9f52f602021-01-22 12:53:01 +0200649 Ok:
650 description: OK
651 content:
652 application/json:
653 schema:
654 type: object
655 Created:
656 description: Created
bmiklosbbaf5012022-08-25 18:28:16 +0200657 content: { }
Ruslan Kashapov9f52f602021-01-22 12:53:01 +0200658 NoContent:
659 description: No Content
bmiklosbbaf5012022-08-25 18:28:16 +0200660 content: { }
JosephKeenane0873dd2022-01-28 11:22:22 +0000661 InternalServerError:
662 description: Internal Server Error
663 content:
664 application/json:
665 schema:
666 $ref: "#/components/schemas/ErrorMessage"
667 example:
668 status: 500
669 message: Internal Server Error
670 details: Internal Server Error occurred
mpriyank93afc1e2022-03-28 15:47:47 +0530671 BadGateway:
672 description: Bad Gateway
673 content:
674 application/json:
675 schema:
676 $ref: "#/components/schemas/DmiErrorMessage"
677 example:
678 message: "Bad Gateway Error Message NCMP"
679 dmi-response:
680 http-code: 400
681 body: "Bad Request"