blob: 637a1386f40eeb967b4d7ee054fe42b36d9b4424 [file] [log] [blame]
tragait34a94b92021-03-30 12:02:27 +01001# ============LICENSE_START=======================================================
halil.cakal04280e22024-01-23 10:05:36 +00002# Copyright (C) 2021-2024 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 ]
sourabh_sourabh55164b22023-09-26 12:11:42 +010090 upgradedCmHandles:
91 $ref: '#/components/schemas/UpgradedCmHandles'
Renu Kumarib14f04b2022-03-28 10:22:41 -040092 DmiPluginRegistrationErrorResponse:
93 type: object
94 properties:
95 failedCreatedCmHandles:
96 type: array
97 items:
98 $ref: '#/components/schemas/CmHandlerRegistrationErrorResponse'
Renu Kumarib14f04b2022-03-28 10:22:41 -040099 failedUpdatedCmHandles:
100 type: array
101 items:
102 $ref: '#/components/schemas/CmHandlerRegistrationErrorResponse'
Renu Kumarib14f04b2022-03-28 10:22:41 -0400103 failedRemovedCmHandles:
104 type: array
105 items:
106 $ref: '#/components/schemas/CmHandlerRegistrationErrorResponse'
sourabh_sourabh55164b22023-09-26 12:11:42 +0100107 failedUpgradeCmHandles:
108 type: array
109 items:
110 $ref: '#/components/schemas/CmHandlerRegistrationErrorResponse'
Renu Kumarib14f04b2022-03-28 10:22:41 -0400111 CmHandlerRegistrationErrorResponse:
112 type: object
113 properties:
114 cmHandle:
115 type: string
116 example: my-cm-handle
117 errorCode:
118 type: string
Renu Kumari952603c2022-04-18 12:39:33 -0400119 example: '00'
Renu Kumarib14f04b2022-03-28 10:22:41 -0400120 errorText:
121 type: string
Renu Kumari952603c2022-04-18 12:39:33 -0400122 example: 'Unknown error. <error-details>'
DylanB95EST4f4178c2021-07-02 13:30:42 +0100123
DylanB95ESTe5573382022-01-27 17:12:52 +0000124 RestInputCmHandle:
DylanB95EST4f4178c2021-07-02 13:30:42 +0100125 required:
126 - cmHandle
127 type: object
128 properties:
129 cmHandle:
130 type: string
emaclee844cab32021-12-01 09:42:37 +0000131 example: my-cm-handle
DylanB95EST4f4178c2021-07-02 13:30:42 +0100132 cmHandleProperties:
bmiklosbbaf5012022-08-25 18:28:16 +0200133 $ref: '#/components/schemas/RestCmHandleProperties'
DylanB95EST63132ce2021-12-14 16:34:38 +0000134 publicCmHandleProperties:
bmiklosbbaf5012022-08-25 18:28:16 +0200135 $ref: '#/components/schemas/RestCmHandleProperties'
leventecsanyi46782b72023-09-04 10:59:23 +0200136 moduleSetTag:
137 type: string
138 example: "my-module-set-tag"
seanbeirnef41dd3b2023-10-17 11:03:16 +0100139 trustLevel:
140 type: string
141 enum: [COMPLETE, NONE]
142 example: "COMPLETE"
leventecsanyid8be9ef2023-12-07 16:17:12 +0100143 alternateId:
144 type: string
145 example: "my-alternate-id"
JvD_Ericssona927b202024-02-16 09:30:45 +0000146 dataProducerIdentifier:
147 type: string
148 example: "my-data-producer-identifier"
DylanB95EST63132ce2021-12-14 16:34:38 +0000149 RestCmHandleProperties:
bmiklosbbaf5012022-08-25 18:28:16 +0200150 type: object
151 additionalProperties:
152 type: string
153 example: my-property
sourabh_sourabh55164b22023-09-26 12:11:42 +0100154 #Module upgrade schema
155 UpgradedCmHandles:
156 required:
157 - cmHandles
158 type: object
159 properties:
160 cmHandles:
161 type: array
162 items:
163 type: string
164 example: [ my-cm-handle1, my-cm-handle2, my-cm-handle3 ]
165 moduleSetTag:
166 type: string
sourabh_sourabh541ed452023-12-05 11:02:17 +0000167 default: ""
sourabh_sourabh55164b22023-09-26 12:11:42 +0100168 example: 'my-module-set-tag'
Ruslan Kashapov9f52f602021-01-22 12:53:01 +0200169
niamhcore66017b42021-10-19 11:07:02 +0100170 #Response Schemas
lukegleesond5bda882022-03-02 14:32:47 +0000171 RestModuleReference:
puthuparambil.adityad0007332021-12-08 18:53:39 +0000172 type: object
173 title: Module reference details
174 properties:
175 moduleName:
176 type: string
177 example: my-module-name
178 revision:
179 type: string
180 example: my-module-revision
181
emacleee1f73e22022-06-17 17:42:56 +0100182 RestModuleDefinition:
183 type: object
184 title: Module definitions
185 properties:
186 moduleName:
187 type: string
188 example: my-module-name
189 revision:
190 type: string
191 example: 2020-09-15
192 content:
193 type: string
194 example: |
195 module stores {
196 yang-version 1.1;
egernug9426ae82023-06-21 11:16:02 +0100197 namespace 'org:onap:ccsdk:sample';
emacleee1f73e22022-06-17 17:42:56 +0100198 prefix book-store;
egernug9426ae82023-06-21 11:16:02 +0100199 revision '2020-09-15' {
emacleee1f73e22022-06-17 17:42:56 +0100200 description
egernug9426ae82023-06-21 11:16:02 +0100201 'Sample Model';
emacleee1f73e22022-06-17 17:42:56 +0100202 }
203 }
204
kissande9ed5812022-05-12 15:59:18 +0200205 CmHandleQueryParameters:
JosephKeenandeac4772022-03-28 12:26:07 +0100206 type: object
207 title: Cm Handle query parameters for executing cm handle search
208 properties:
kissande9ed5812022-05-12 15:59:18 +0200209 cmHandleQueryParameters:
210 type: array
211 items:
kissande9ed5812022-05-12 15:59:18 +0200212 $ref: '#/components/schemas/ConditionProperties'
213 conditions:
214 deprecated: true
215 type: array
216 items:
kissande9ed5812022-05-12 15:59:18 +0200217 $ref: '#/components/schemas/OldConditionProperties'
218 description: not necessary, it is just for backward compatibility
lukegleeson82a550f2022-07-11 10:55:53 +0100219
kissande9ed5812022-05-12 15:59:18 +0200220 ConditionProperties:
221 properties:
222 conditionName:
223 type: string
224 conditionParameters:
225 type: array
226 items:
227 type: object
228 additionalProperties:
229 type: string
230 OldConditionProperties:
231 deprecated: true
232 properties:
233 name:
234 type: string
235 conditionParameters:
236 type: array
237 items:
kissande9ed5812022-05-12 15:59:18 +0200238 $ref: '#/components/schemas/ModuleNameAsJsonObject'
239 ModuleNameAsJsonObject:
240 properties:
241 moduleName:
242 type: string
243 example: my-module
JosephKeenandeac4772022-03-28 12:26:07 +0100244
DylanB95ESTe5573382022-01-27 17:12:52 +0000245 RestOutputCmHandle:
246 type: object
247 title: CM handle Details
248 properties:
249 cmHandle:
250 type: string
251 example: my-cm-handle1
252 publicCmHandleProperties:
253 $ref: '#/components/schemas/CmHandlePublicProperties'
mpriyank4cf49622022-05-20 15:25:15 +0100254 state:
lukegleeson78062a12022-06-02 10:56:43 +0100255 $ref: '#/components/schemas/CmHandleCompositeState'
emacleee24f5e82023-09-23 13:46:15 +0100256 trustLevel:
257 $ref: '#/components/schemas/CmHandleTrustLevel'
JvD_Ericssone14fe9a2024-02-26 13:45:47 +0000258 moduleSetTag:
259 type: string
260 example: my-module-set-tag
261 alternateId:
262 type: string
263 example: my-alternate-id
264 dataProducerIdentifier:
265 type: string
266 example: my-data-producer-identifier
DylanB95ESTe5573382022-01-27 17:12:52 +0000267 CmHandlePublicProperties:
egernug477bd462023-09-21 17:51:21 +0100268 type: object
DylanB95ESTe5573382022-01-27 17:12:52 +0000269 items:
Toine Siebelinkad9b7012023-09-20 09:35:10 +0000270 type: object
271 additionalProperties:
272 type: string
egernug477bd462023-09-21 17:51:21 +0100273 example: 'Book Type'
lukegleeson78062a12022-06-02 10:56:43 +0100274 CmHandleCompositeState:
mpriyank4cf49622022-05-20 15:25:15 +0100275 type: object
276 properties:
277 cmHandleState:
278 type: string
279 example: ADVISED
280 lockReason:
281 $ref: '#/components/schemas/lock-reason'
282 lastUpdateTime:
283 type: string
284 example: 2022-12-31T20:30:40.000+0000
285 dataSyncEnabled:
286 type: boolean
287 example: false
288 dataSyncState:
289 $ref: '#/components/schemas/dataStores'
emacleee24f5e82023-09-23 13:46:15 +0100290 CmHandleTrustLevel:
291 type: string
292 description: Current trust level of the relevant CM handle ID.
293 example: COMPLETE
mpriyank4cf49622022-05-20 15:25:15 +0100294
295 lock-reason:
296 type: object
297 properties:
298 reason:
299 type: string
lukegleeson4e596842022-06-28 12:15:33 +0100300 example: LOCKED_MISBEHAVING
mpriyank4cf49622022-05-20 15:25:15 +0100301 details:
302 type: string
lukegleeson4e596842022-06-28 12:15:33 +0100303 example: locked due to failure in module sync
mpriyank4cf49622022-05-20 15:25:15 +0100304
305 dataStores:
306 type: object
307 properties:
308 operational:
309 $ref: '#/components/schemas/sync-state'
310 running:
311 $ref: '#/components/schemas/sync-state'
312
313 sync-state:
314 type: object
315 properties:
lukegleeson82a550f2022-07-11 10:55:53 +0100316 syncState:
mpriyank4cf49622022-05-20 15:25:15 +0100317 type: string
318 example: NONE_REQUESTED
319 lastSyncTime:
320 type: string
321 example: 2022-12-31T20:30:40.000+0000
DylanB95ESTe5573382022-01-27 17:12:52 +0000322
lukegleesonbed18fd2022-05-06 12:02:42 +0100323 RestOutputCmHandlePublicProperties:
324 type: object
325 properties:
326 publicCmHandleProperties:
327 $ref: '#/components/schemas/CmHandlePublicProperties'
328
lukegleeson78062a12022-06-02 10:56:43 +0100329 RestOutputCmHandleCompositeState:
330 type: object
331 properties:
332 state:
333 $ref: '#/components/schemas/CmHandleCompositeState'
raviteja.karumuri977f7c32023-06-20 19:10:21 +0100334 # Data Operation Request Schemas
335 DataOperationRequest:
sourabh_sourabhf232f302023-05-09 14:34:59 +0100336 type: object
raviteja.karumuri977f7c32023-06-20 19:10:21 +0100337 title: execute data operation for given array of operations
sourabh_sourabhf232f302023-05-09 14:34:59 +0100338 properties:
339 operations:
340 type: array
341 items:
raviteja.karumuri977f7c32023-06-20 19:10:21 +0100342 $ref: '#/components/schemas/DataOperationDefinition'
343 description: contains group of data operation requests
344 DataOperationDefinition:
sourabh_sourabhf232f302023-05-09 14:34:59 +0100345 required:
346 - operation
347 - datastore
348 - operationId
349 properties:
350 operation:
351 type: string
352 example: 'read'
353 operationId:
354 type: string
355 example: '12'
356 datastore:
357 type: string
358 example: 'ncmp-datastore:passthrough-operational'
359 options:
360 type: string
361 example: '(fields=schemas/schema)'
362 resourceIdentifier:
363 type: string
364 example: 'parent/child'
365 targetIds:
366 type: array
367 items:
368 type: string
seanbeirnec37dee42024-11-05 10:21:30 +0000369 description: targeted cm handle references, maximum of 200 supported. If this limit is exceeded the request will be refused.
egernug9426ae82023-06-21 11:16:02 +0100370 example: [ "da310eecdb8d44c2acc0ddaae01174b1","c748c58f8e0b438f9fd1f28370b17d47" ]
lukegleeson78062a12022-06-02 10:56:43 +0100371
emaclee844cab32021-12-01 09:42:37 +0000372 examples:
373 dataSampleRequest:
bmiklosbbaf5012022-08-25 18:28:16 +0200374 summary: Sample request
375 description: Sample request body
376 value:
377 test:bookstore:
378 bookstore-name: Chapters
379 categories:
380 - code: '01'
381 name: SciFi
382 books:
emaclee844cab32021-12-01 09:42:37 +0000383 - authors:
384 - Iain M. Banks
emaclee844cab32021-12-01 09:42:37 +0000385 - Ursula K. Le Guin
bmiklosbbaf5012022-08-25 18:28:16 +0200386 - code: '02'
387 name: kids
388 books:
emaclee844cab32021-12-01 09:42:37 +0000389 - authors:
390 - Philip Pullman
391
tragaitecd7f5e2022-01-13 13:15:14 +0000392 dataSamplePatchRequest:
393 summary: Sample patch request
394 description: Sample patch request body
395 value:
396 ietf-restconf:yang-patch:
397 patch-id: patch-1
398 edit:
399 - edit-id: edit1
400 operation: merge
401 target: /
402 value:
403 test:bookstore:
404 bookstore-name: Chapters
405 categories:
406 - code: '01'
407 name: Science
408 books:
409 - authors:
410 - Author1
411 - Author2
412 - code: '02'
413 name: Arts
414 books:
415 - authors:
416 - Author3
417 - edit-id: edit2
418 operation: merge
419 target: /
420 value:
421 test:bookstore:
422 bookstore-name: Novels
423 categories:
424 - code: '03'
425 name: History
426 books:
427 - authors:
428 - Iain M. Banks
429 - Ursula K. Le Guin
430 - code: '04'
431 name: Fiction
432 books:
433 - authors:
434 - Philip Pullman
435
emaclee844cab32021-12-01 09:42:37 +0000436 dataSampleResponse:
bmiklosbbaf5012022-08-25 18:28:16 +0200437 summary: Sample response
438 description: Sample response for selecting 'sample 1'.
439 value:
440 bookstore:
441 categories:
442 - code: '01'
443 books:
444 - authors:
445 - Iain M. Banks
446 - Ursula K. Le Guin
447 name: SciFi
448 - code: '02'
449 books:
450 - authors:
451 - Philip Pullman
452 name: kids
niamhcore66017b42021-10-19 11:07:02 +0100453
lukegleeson82a550f2022-07-11 10:55:53 +0100454 allCmHandleQueryParameters:
455 value:
456 cmHandleQueryParameters:
457 - conditionName: hasAllModules
458 conditionParameters:
459 - { "moduleName": "my-module-1" }
460 - { "moduleName": "my-module-2" }
461 - { "moduleName": "my-module-3" }
462 - conditionName: hasAllProperties
463 conditionParameters:
464 - { "Color": "yellow" }
465 - { "Shape": "circle" }
466 - { "Size": "small" }
467 - conditionName: cmHandleWithCpsPath
468 conditionParameters:
469 - { "cpsPath": "//state[@cm-handle-state='ADVISED']" }
470 pubPropCmHandleQueryParameters:
471 value:
472 cmHandleQueryParameters:
473 - conditionName: hasAllProperties
474 conditionParameters:
475 - { "Color": "yellow" }
476 - { "Shape": "circle" }
477 - { "Size": "small" }
478 modulesCmHandleQueryParameters:
479 value:
480 cmHandleQueryParameters:
481 - conditionName: hasAllModules
482 conditionParameters:
483 - { "moduleName": "my-module-1" }
484 - { "moduleName": "my-module-2" }
485 - { "moduleName": "my-module-3" }
486 cpsPathCmHandleStateQueryParameters:
487 value:
488 cmHandleQueryParameters:
489 - conditionName: cmHandleWithCpsPath
490 conditionParameters:
491 - { "cpsPath": "//state[@cm-handle-state='LOCKED']" }
492 cpsPathCmHandleDataSyncQueryParameters:
493 value:
494 cmHandleQueryParameters:
495 - conditionName: cmHandleWithCpsPath
496 conditionParameters:
497 - { "cpsPath": "//state[@data-sync-enabled='true']" }
498
Ruslan Kashapov9f52f602021-01-22 12:53:01 +0200499 parameters:
Hanif Kukkalli83e318f2021-02-23 12:26:39 +0100500 cmHandleInPath:
501 name: cm-handle
502 in: path
tragait34a94b92021-03-30 12:02:27 +0100503 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 +0100504 required: true
505 schema:
506 type: string
emaclee844cab32021-12-01 09:42:37 +0000507 example: my-cm-handle
mpriyank45308e02024-08-27 16:08:31 +0100508 cmHandleReferenceInPath:
509 name: cm-handle
510 in: path
511 description: The identifier (cmHandle or alternate) for a network function, network element, subnetwork or any other cm object by managed Network CM Proxy
512 required: true
513 schema:
514 type: string
515 example: my-cm-handle-reference
seanbeirneccf48ef2024-09-03 15:27:28 +0100516 outputAlternateIdOptionInQuery:
517 name: outputAlternateId
518 in: query
seanbeirne90608182024-11-20 11:00:49 +0000519 description: Boolean parameter to determine if returned value(s) will be cm handle ids or alternate ids for a given query
seanbeirneccf48ef2024-09-03 15:27:28 +0100520 required: false
521 schema:
522 type: boolean
523 default: false
halil.cakal04280e22024-01-23 10:05:36 +0000524 moduleNameInQuery:
525 name: module-name
526 in: query
527 description: Filter for a module name.This is an optional parameter
528 required: false
529 schema:
530 type: string
531 example: my-module
532 revisionInQuery:
533 name: revision
534 in: query
535 description: Filter for a module revision.This is an optional parameter and ignored when no module name is supplied
536 required: false
537 schema:
538 type: string
539 example: 2024-01-22
DylanB95EST6ddbe4a2022-07-19 11:36:10 +0100540 dataSyncEnabled:
541 name: dataSyncEnabled
542 in: query
543 description: Is used to enable or disable the data synchronization flag
544 required: true
545 schema:
546 type: boolean
547 example: true
Hanif Kukkalli83e318f2021-02-23 12:26:39 +0100548 xpathInQuery:
549 name: xpath
550 in: query
551 description: xpath
552 required: false
553 schema:
554 type: string
555 default: /
Ruslan Kashapov1baf48d2021-05-07 10:46:27 +0300556 requiredXpathInQuery:
557 name: xpath
558 in: query
559 description: xpath
560 required: true
561 schema:
562 type: string
Hanif Kukkalli83e318f2021-02-23 12:26:39 +0100563 includeDescendantsOptionInQuery:
564 name: include-descendants
565 in: query
bmiklosbbaf5012022-08-25 18:28:16 +0200566 description: Determines if descendants are included in response
Hanif Kukkalli83e318f2021-02-23 12:26:39 +0100567 required: false
568 schema:
569 type: boolean
570 default: false
niamhcoreb5d573b2021-02-26 10:13:48 +0000571 cpsPathInQuery:
572 name: cps-path
573 in: query
lukegleeson20e7a732022-10-20 10:14:00 +0100574 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 +0000575 required: false
576 schema:
577 type: string
578 default: /
lukegleeson20e7a732022-10-20 10:14:00 +0100579 examples:
580 container cps path:
581 value: //bookstore
582 list attributes cps path:
583 value: //categories[@code=1]
emacleed3400472022-08-19 09:26:39 +0100584 dmiPluginIdentifierInQuery:
585 name: dmi-plugin-identifier
586 in: query
587 description: dmi-plugin-identifier
588 required: true
589 schema:
590 type: string
591 example: my-dmi-plugin
niamhcorefd2e6dd2021-09-29 16:43:35 +0100592 resourceIdentifierInQuery:
tragaitc3285512021-08-16 15:12:36 +0100593 name: resourceIdentifier
niamhcorefd2e6dd2021-09-29 16:43:35 +0100594 in: query
595 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 +0100596 required: true
597 schema:
598 type: string
niamhcorefd2e6dd2021-09-29 16:43:35 +0100599 examples:
emaclee844cab32021-12-01 09:42:37 +0000600 sample 1:
niamhcorefd2e6dd2021-09-29 16:43:35 +0100601 value:
emaclee844cab32021-12-01 09:42:37 +0000602 resourceIdentifier: \shops\bookstore
603 sample 2:
niamhcorefd2e6dd2021-09-29 16:43:35 +0100604 value:
emaclee844cab32021-12-01 09:42:37 +0000605 resourceIdentifier: \shops\bookstore\categories[@code=1]
606 sample 3:
niamhcorefd2e6dd2021-09-29 16:43:35 +0100607 value:
emaclee844cab32021-12-01 09:42:37 +0000608 resourceIdentifier: parent=shops,child=bookstore
tragaitabdff1b2021-10-06 11:04:18 +0100609 optionsParamInQuery:
610 name: options
tragaitc3285512021-08-16 15:12:36 +0100611 in: query
emaclee844cab32021-12-01 09:42:37 +0000612 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 +0100613 required: false
614 schema:
615 type: string
tragaitabdff1b2021-10-06 11:04:18 +0100616 examples:
emaclee844cab32021-12-01 09:42:37 +0000617 sample 1:
tragaitabdff1b2021-10-06 11:04:18 +0100618 value:
emaclee844cab32021-12-01 09:42:37 +0000619 options: (depth=3)
620 sample 2:
tragaitabdff1b2021-10-06 11:04:18 +0100621 value:
emaclee844cab32021-12-01 09:42:37 +0000622 options: (fields=book)
623 sample 3:
tragaitabdff1b2021-10-06 11:04:18 +0100624 value:
emaclee844cab32021-12-01 09:42:37 +0000625 options: (depth=2,fields=book/authors)
sourabh_sourabh1f2e66e2022-02-16 21:53:41 +0530626 topicParamInQuery:
627 name: topic
628 in: query
629 description: topic parameter in query.
630 required: false
631 schema:
632 type: string
sourabh_sourabh1f2e66e2022-02-16 21:53:41 +0530633 examples:
634 sample 1:
635 value:
636 topic: my-topic-name
sourabh_sourabh4031d432023-03-27 14:36:20 +0100637 requiredTopicParamInQuery:
638 name: topic
639 in: query
640 description: mandatory topic parameter in query.
641 required: true
642 schema:
643 type: string
sourabh_sourabh4031d432023-03-27 14:36:20 +0100644 examples:
645 sample 1:
646 value:
647 topic: my-topic-name
tragaitc584bf22021-08-20 15:45:58 +0100648 contentParamInHeader:
649 name: Content-Type
650 in: header
651 required: false
652 description: Content parameter for request, if content parameter is null, default value is application/json.
653 schema:
654 type: string
655 default: application/json
emaclee844cab32021-12-01 09:42:37 +0000656 example: application/yang-data+json
danielhanrahanc5222a72024-02-28 16:05:07 +0000657 authorizationParamInHeader:
658 name: Authorization
659 in: header
660 required: false
661 description: Authorization parameter for request.
662 schema:
663 type: string
bmiklosbbaf5012022-08-25 18:28:16 +0200664 datastoreName:
lukegleeson20e7a732022-10-20 10:14:00 +0100665 name: datastore-name
bmiklosbbaf5012022-08-25 18:28:16 +0200666 in: path
667 description: The type of the requested data
668 required: true
669 schema:
670 type: string
seanbeirneafc60552023-01-30 16:53:37 +0000671 example: ncmp-datastore:running
Ruslan Kashapov9f52f602021-01-22 12:53:01 +0200672
673 responses:
674 NotFound:
675 description: The specified resource was not found
676 content:
677 application/json:
678 schema:
679 $ref: '#/components/schemas/ErrorMessage'
emaclee844cab32021-12-01 09:42:37 +0000680 example:
681 status: 400
682 message: Not found error message
683 details: Not found error details
Ruslan Kashapov9f52f602021-01-22 12:53:01 +0200684 Unauthorized:
685 description: Unauthorized
686 content:
687 application/json:
688 schema:
689 $ref: '#/components/schemas/ErrorMessage'
emaclee844cab32021-12-01 09:42:37 +0000690 example:
691 status: 401
692 message: Unauthorized error message
693 details: Unauthorized error details
Ruslan Kashapov9f52f602021-01-22 12:53:01 +0200694 Forbidden:
695 description: Forbidden
696 content:
697 application/json:
698 schema:
699 $ref: '#/components/schemas/ErrorMessage'
emaclee844cab32021-12-01 09:42:37 +0000700 example:
bmiklosbbaf5012022-08-25 18:28:16 +0200701 status: 403
702 message: Forbidden error message
703 details: Forbidden error details
Ruslan Kashapov9f52f602021-01-22 12:53:01 +0200704 BadRequest:
705 description: Bad Request
706 content:
707 application/json:
708 schema:
709 $ref: '#/components/schemas/ErrorMessage'
emaclee844cab32021-12-01 09:42:37 +0000710 example:
ToineSiebelink693cfdd2024-04-09 18:39:51 +0100711 status: 400
bmiklosbbaf5012022-08-25 18:28:16 +0200712 message: Bad request error message
713 details: Bad request error details
Ruslan Kashapov9f52f602021-01-22 12:53:01 +0200714 Conflict:
715 description: Conflict
716 content:
717 application/json:
718 schema:
719 $ref: '#/components/schemas/ErrorMessage'
emaclee844cab32021-12-01 09:42:37 +0000720 example:
ToineSiebelink693cfdd2024-04-09 18:39:51 +0100721 status: 409
bmiklosbbaf5012022-08-25 18:28:16 +0200722 message: Conflict error message
723 details: Conflict error details
ToineSiebelink693cfdd2024-04-09 18:39:51 +0100724 PayloadTooLarge:
725 description: The request is larger than the server is willing or able to process
726 content:
727 application/json:
728 schema:
729 $ref: '#/components/schemas/ErrorMessage'
730 example:
731 status: 413
732 message: Payload Too Large error message
733 details: Payload Too Large error details
Hanif Kukkalli83e318f2021-02-23 12:26:39 +0100734 NotImplemented:
735 description: The given path has not been implemented
736 content:
737 application/json:
738 schema:
739 $ref: '#/components/schemas/ErrorMessage'
emaclee844cab32021-12-01 09:42:37 +0000740 example:
bmiklosbbaf5012022-08-25 18:28:16 +0200741 status: 501
742 message: Not implemented error message
743 details: Not implemented error details
Ruslan Kashapov9f52f602021-01-22 12:53:01 +0200744 Ok:
745 description: OK
746 content:
747 application/json:
748 schema:
749 type: object
750 Created:
751 description: Created
bmiklosbbaf5012022-08-25 18:28:16 +0200752 content: { }
Ruslan Kashapov9f52f602021-01-22 12:53:01 +0200753 NoContent:
754 description: No Content
bmiklosbbaf5012022-08-25 18:28:16 +0200755 content: { }
JosephKeenane0873dd2022-01-28 11:22:22 +0000756 InternalServerError:
757 description: Internal Server Error
758 content:
759 application/json:
760 schema:
761 $ref: "#/components/schemas/ErrorMessage"
762 example:
763 status: 500
764 message: Internal Server Error
765 details: Internal Server Error occurred
mpriyank93afc1e2022-03-28 15:47:47 +0530766 BadGateway:
767 description: Bad Gateway
768 content:
769 application/json:
770 schema:
771 $ref: "#/components/schemas/DmiErrorMessage"
772 example:
773 message: "Bad Gateway Error Message NCMP"
774 dmi-response:
775 http-code: 400
776 body: "Bad Request"