blob: cd77effc89327f6b21a977f520e2f7a7a5d62710 [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"
DylanB95EST63132ce2021-12-14 16:34:38 +0000146 RestCmHandleProperties:
bmiklosbbaf5012022-08-25 18:28:16 +0200147 type: object
148 additionalProperties:
149 type: string
150 example: my-property
sourabh_sourabh55164b22023-09-26 12:11:42 +0100151 #Module upgrade schema
152 UpgradedCmHandles:
153 required:
154 - cmHandles
155 type: object
156 properties:
157 cmHandles:
158 type: array
159 items:
160 type: string
161 example: [ my-cm-handle1, my-cm-handle2, my-cm-handle3 ]
162 moduleSetTag:
163 type: string
sourabh_sourabh541ed452023-12-05 11:02:17 +0000164 default: ""
sourabh_sourabh55164b22023-09-26 12:11:42 +0100165 example: 'my-module-set-tag'
Ruslan Kashapov9f52f602021-01-22 12:53:01 +0200166
niamhcore66017b42021-10-19 11:07:02 +0100167 #Response Schemas
lukegleesond5bda882022-03-02 14:32:47 +0000168 RestModuleReference:
puthuparambil.adityad0007332021-12-08 18:53:39 +0000169 type: object
170 title: Module reference details
171 properties:
172 moduleName:
173 type: string
174 example: my-module-name
175 revision:
176 type: string
177 example: my-module-revision
178
emacleee1f73e22022-06-17 17:42:56 +0100179 RestModuleDefinition:
180 type: object
181 title: Module definitions
182 properties:
183 moduleName:
184 type: string
185 example: my-module-name
186 revision:
187 type: string
188 example: 2020-09-15
189 content:
190 type: string
191 example: |
192 module stores {
193 yang-version 1.1;
egernug9426ae82023-06-21 11:16:02 +0100194 namespace 'org:onap:ccsdk:sample';
emacleee1f73e22022-06-17 17:42:56 +0100195 prefix book-store;
egernug9426ae82023-06-21 11:16:02 +0100196 revision '2020-09-15' {
emacleee1f73e22022-06-17 17:42:56 +0100197 description
egernug9426ae82023-06-21 11:16:02 +0100198 'Sample Model';
emacleee1f73e22022-06-17 17:42:56 +0100199 }
200 }
201
kissande9ed5812022-05-12 15:59:18 +0200202 CmHandleQueryParameters:
JosephKeenandeac4772022-03-28 12:26:07 +0100203 type: object
204 title: Cm Handle query parameters for executing cm handle search
205 properties:
kissande9ed5812022-05-12 15:59:18 +0200206 cmHandleQueryParameters:
207 type: array
208 items:
kissande9ed5812022-05-12 15:59:18 +0200209 $ref: '#/components/schemas/ConditionProperties'
210 conditions:
211 deprecated: true
212 type: array
213 items:
kissande9ed5812022-05-12 15:59:18 +0200214 $ref: '#/components/schemas/OldConditionProperties'
215 description: not necessary, it is just for backward compatibility
lukegleeson82a550f2022-07-11 10:55:53 +0100216
kissande9ed5812022-05-12 15:59:18 +0200217 ConditionProperties:
218 properties:
219 conditionName:
220 type: string
221 conditionParameters:
222 type: array
223 items:
224 type: object
225 additionalProperties:
226 type: string
227 OldConditionProperties:
228 deprecated: true
229 properties:
230 name:
231 type: string
232 conditionParameters:
233 type: array
234 items:
kissande9ed5812022-05-12 15:59:18 +0200235 $ref: '#/components/schemas/ModuleNameAsJsonObject'
236 ModuleNameAsJsonObject:
237 properties:
238 moduleName:
239 type: string
240 example: my-module
JosephKeenandeac4772022-03-28 12:26:07 +0100241
DylanB95ESTe5573382022-01-27 17:12:52 +0000242 RestOutputCmHandle:
243 type: object
244 title: CM handle Details
245 properties:
246 cmHandle:
247 type: string
248 example: my-cm-handle1
249 publicCmHandleProperties:
250 $ref: '#/components/schemas/CmHandlePublicProperties'
mpriyank4cf49622022-05-20 15:25:15 +0100251 state:
lukegleeson78062a12022-06-02 10:56:43 +0100252 $ref: '#/components/schemas/CmHandleCompositeState'
emacleee24f5e82023-09-23 13:46:15 +0100253 trustLevel:
254 $ref: '#/components/schemas/CmHandleTrustLevel'
DylanB95ESTe5573382022-01-27 17:12:52 +0000255 CmHandlePublicProperties:
egernug477bd462023-09-21 17:51:21 +0100256 type: object
DylanB95ESTe5573382022-01-27 17:12:52 +0000257 items:
Toine Siebelinkad9b7012023-09-20 09:35:10 +0000258 type: object
259 additionalProperties:
260 type: string
egernug477bd462023-09-21 17:51:21 +0100261 example: 'Book Type'
lukegleeson78062a12022-06-02 10:56:43 +0100262 CmHandleCompositeState:
mpriyank4cf49622022-05-20 15:25:15 +0100263 type: object
264 properties:
265 cmHandleState:
266 type: string
267 example: ADVISED
268 lockReason:
269 $ref: '#/components/schemas/lock-reason'
270 lastUpdateTime:
271 type: string
272 example: 2022-12-31T20:30:40.000+0000
273 dataSyncEnabled:
274 type: boolean
275 example: false
276 dataSyncState:
277 $ref: '#/components/schemas/dataStores'
emacleee24f5e82023-09-23 13:46:15 +0100278 CmHandleTrustLevel:
279 type: string
280 description: Current trust level of the relevant CM handle ID.
281 example: COMPLETE
mpriyank4cf49622022-05-20 15:25:15 +0100282
283 lock-reason:
284 type: object
285 properties:
286 reason:
287 type: string
lukegleeson4e596842022-06-28 12:15:33 +0100288 example: LOCKED_MISBEHAVING
mpriyank4cf49622022-05-20 15:25:15 +0100289 details:
290 type: string
lukegleeson4e596842022-06-28 12:15:33 +0100291 example: locked due to failure in module sync
mpriyank4cf49622022-05-20 15:25:15 +0100292
293 dataStores:
294 type: object
295 properties:
296 operational:
297 $ref: '#/components/schemas/sync-state'
298 running:
299 $ref: '#/components/schemas/sync-state'
300
301 sync-state:
302 type: object
303 properties:
lukegleeson82a550f2022-07-11 10:55:53 +0100304 syncState:
mpriyank4cf49622022-05-20 15:25:15 +0100305 type: string
306 example: NONE_REQUESTED
307 lastSyncTime:
308 type: string
309 example: 2022-12-31T20:30:40.000+0000
DylanB95ESTe5573382022-01-27 17:12:52 +0000310
lukegleesonbed18fd2022-05-06 12:02:42 +0100311 RestOutputCmHandlePublicProperties:
312 type: object
313 properties:
314 publicCmHandleProperties:
315 $ref: '#/components/schemas/CmHandlePublicProperties'
316
lukegleeson78062a12022-06-02 10:56:43 +0100317 RestOutputCmHandleCompositeState:
318 type: object
319 properties:
320 state:
321 $ref: '#/components/schemas/CmHandleCompositeState'
raviteja.karumuri977f7c32023-06-20 19:10:21 +0100322 # Data Operation Request Schemas
323 DataOperationRequest:
sourabh_sourabhf232f302023-05-09 14:34:59 +0100324 type: object
raviteja.karumuri977f7c32023-06-20 19:10:21 +0100325 title: execute data operation for given array of operations
sourabh_sourabhf232f302023-05-09 14:34:59 +0100326 properties:
327 operations:
328 type: array
329 items:
raviteja.karumuri977f7c32023-06-20 19:10:21 +0100330 $ref: '#/components/schemas/DataOperationDefinition'
331 description: contains group of data operation requests
332 DataOperationDefinition:
sourabh_sourabhf232f302023-05-09 14:34:59 +0100333 required:
334 - operation
335 - datastore
336 - operationId
337 properties:
338 operation:
339 type: string
340 example: 'read'
341 operationId:
342 type: string
343 example: '12'
344 datastore:
345 type: string
346 example: 'ncmp-datastore:passthrough-operational'
347 options:
348 type: string
349 example: '(fields=schemas/schema)'
350 resourceIdentifier:
351 type: string
352 example: 'parent/child'
353 targetIds:
354 type: array
355 items:
356 type: string
egernug9426ae82023-06-21 11:16:02 +0100357 example: [ "da310eecdb8d44c2acc0ddaae01174b1","c748c58f8e0b438f9fd1f28370b17d47" ]
lukegleeson78062a12022-06-02 10:56:43 +0100358
emaclee844cab32021-12-01 09:42:37 +0000359 examples:
360 dataSampleRequest:
bmiklosbbaf5012022-08-25 18:28:16 +0200361 summary: Sample request
362 description: Sample request body
363 value:
364 test:bookstore:
365 bookstore-name: Chapters
366 categories:
367 - code: '01'
368 name: SciFi
369 books:
emaclee844cab32021-12-01 09:42:37 +0000370 - authors:
371 - Iain M. Banks
emaclee844cab32021-12-01 09:42:37 +0000372 - Ursula K. Le Guin
bmiklosbbaf5012022-08-25 18:28:16 +0200373 - code: '02'
374 name: kids
375 books:
emaclee844cab32021-12-01 09:42:37 +0000376 - authors:
377 - Philip Pullman
378
tragaitecd7f5e2022-01-13 13:15:14 +0000379 dataSamplePatchRequest:
380 summary: Sample patch request
381 description: Sample patch request body
382 value:
383 ietf-restconf:yang-patch:
384 patch-id: patch-1
385 edit:
386 - edit-id: edit1
387 operation: merge
388 target: /
389 value:
390 test:bookstore:
391 bookstore-name: Chapters
392 categories:
393 - code: '01'
394 name: Science
395 books:
396 - authors:
397 - Author1
398 - Author2
399 - code: '02'
400 name: Arts
401 books:
402 - authors:
403 - Author3
404 - edit-id: edit2
405 operation: merge
406 target: /
407 value:
408 test:bookstore:
409 bookstore-name: Novels
410 categories:
411 - code: '03'
412 name: History
413 books:
414 - authors:
415 - Iain M. Banks
416 - Ursula K. Le Guin
417 - code: '04'
418 name: Fiction
419 books:
420 - authors:
421 - Philip Pullman
422
emaclee844cab32021-12-01 09:42:37 +0000423 dataSampleResponse:
bmiklosbbaf5012022-08-25 18:28:16 +0200424 summary: Sample response
425 description: Sample response for selecting 'sample 1'.
426 value:
427 bookstore:
428 categories:
429 - code: '01'
430 books:
431 - authors:
432 - Iain M. Banks
433 - Ursula K. Le Guin
434 name: SciFi
435 - code: '02'
436 books:
437 - authors:
438 - Philip Pullman
439 name: kids
niamhcore66017b42021-10-19 11:07:02 +0100440
lukegleeson82a550f2022-07-11 10:55:53 +0100441 allCmHandleQueryParameters:
442 value:
443 cmHandleQueryParameters:
444 - conditionName: hasAllModules
445 conditionParameters:
446 - { "moduleName": "my-module-1" }
447 - { "moduleName": "my-module-2" }
448 - { "moduleName": "my-module-3" }
449 - conditionName: hasAllProperties
450 conditionParameters:
451 - { "Color": "yellow" }
452 - { "Shape": "circle" }
453 - { "Size": "small" }
454 - conditionName: cmHandleWithCpsPath
455 conditionParameters:
456 - { "cpsPath": "//state[@cm-handle-state='ADVISED']" }
457 pubPropCmHandleQueryParameters:
458 value:
459 cmHandleQueryParameters:
460 - conditionName: hasAllProperties
461 conditionParameters:
462 - { "Color": "yellow" }
463 - { "Shape": "circle" }
464 - { "Size": "small" }
465 modulesCmHandleQueryParameters:
466 value:
467 cmHandleQueryParameters:
468 - conditionName: hasAllModules
469 conditionParameters:
470 - { "moduleName": "my-module-1" }
471 - { "moduleName": "my-module-2" }
472 - { "moduleName": "my-module-3" }
473 cpsPathCmHandleStateQueryParameters:
474 value:
475 cmHandleQueryParameters:
476 - conditionName: cmHandleWithCpsPath
477 conditionParameters:
478 - { "cpsPath": "//state[@cm-handle-state='LOCKED']" }
479 cpsPathCmHandleDataSyncQueryParameters:
480 value:
481 cmHandleQueryParameters:
482 - conditionName: cmHandleWithCpsPath
483 conditionParameters:
484 - { "cpsPath": "//state[@data-sync-enabled='true']" }
485
Ruslan Kashapov9f52f602021-01-22 12:53:01 +0200486 parameters:
Hanif Kukkalli83e318f2021-02-23 12:26:39 +0100487 cmHandleInPath:
488 name: cm-handle
489 in: path
tragait34a94b92021-03-30 12:02:27 +0100490 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 +0100491 required: true
492 schema:
493 type: string
emaclee844cab32021-12-01 09:42:37 +0000494 example: my-cm-handle
halil.cakal04280e22024-01-23 10:05:36 +0000495 moduleNameInQuery:
496 name: module-name
497 in: query
498 description: Filter for a module name.This is an optional parameter
499 required: false
500 schema:
501 type: string
502 example: my-module
503 revisionInQuery:
504 name: revision
505 in: query
506 description: Filter for a module revision.This is an optional parameter and ignored when no module name is supplied
507 required: false
508 schema:
509 type: string
510 example: 2024-01-22
DylanB95EST6ddbe4a2022-07-19 11:36:10 +0100511 dataSyncEnabled:
512 name: dataSyncEnabled
513 in: query
514 description: Is used to enable or disable the data synchronization flag
515 required: true
516 schema:
517 type: boolean
518 example: true
Hanif Kukkalli83e318f2021-02-23 12:26:39 +0100519 xpathInQuery:
520 name: xpath
521 in: query
522 description: xpath
523 required: false
524 schema:
525 type: string
526 default: /
Ruslan Kashapov1baf48d2021-05-07 10:46:27 +0300527 requiredXpathInQuery:
528 name: xpath
529 in: query
530 description: xpath
531 required: true
532 schema:
533 type: string
Hanif Kukkalli83e318f2021-02-23 12:26:39 +0100534 includeDescendantsOptionInQuery:
535 name: include-descendants
536 in: query
bmiklosbbaf5012022-08-25 18:28:16 +0200537 description: Determines if descendants are included in response
Hanif Kukkalli83e318f2021-02-23 12:26:39 +0100538 required: false
539 schema:
540 type: boolean
541 default: false
niamhcoreb5d573b2021-02-26 10:13:48 +0000542 cpsPathInQuery:
543 name: cps-path
544 in: query
lukegleeson20e7a732022-10-20 10:14:00 +0100545 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 +0000546 required: false
547 schema:
548 type: string
549 default: /
lukegleeson20e7a732022-10-20 10:14:00 +0100550 examples:
551 container cps path:
552 value: //bookstore
553 list attributes cps path:
554 value: //categories[@code=1]
emacleed3400472022-08-19 09:26:39 +0100555 dmiPluginIdentifierInQuery:
556 name: dmi-plugin-identifier
557 in: query
558 description: dmi-plugin-identifier
559 required: true
560 schema:
561 type: string
562 example: my-dmi-plugin
niamhcorefd2e6dd2021-09-29 16:43:35 +0100563 resourceIdentifierInQuery:
tragaitc3285512021-08-16 15:12:36 +0100564 name: resourceIdentifier
niamhcorefd2e6dd2021-09-29 16:43:35 +0100565 in: query
566 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 +0100567 required: true
niamhcorefd2e6dd2021-09-29 16:43:35 +0100568 allowReserved: true
tragaitc3285512021-08-16 15:12:36 +0100569 schema:
570 type: string
niamhcorefd2e6dd2021-09-29 16:43:35 +0100571 examples:
emaclee844cab32021-12-01 09:42:37 +0000572 sample 1:
niamhcorefd2e6dd2021-09-29 16:43:35 +0100573 value:
emaclee844cab32021-12-01 09:42:37 +0000574 resourceIdentifier: \shops\bookstore
575 sample 2:
niamhcorefd2e6dd2021-09-29 16:43:35 +0100576 value:
emaclee844cab32021-12-01 09:42:37 +0000577 resourceIdentifier: \shops\bookstore\categories[@code=1]
578 sample 3:
niamhcorefd2e6dd2021-09-29 16:43:35 +0100579 value:
emaclee844cab32021-12-01 09:42:37 +0000580 resourceIdentifier: parent=shops,child=bookstore
tragaitabdff1b2021-10-06 11:04:18 +0100581 optionsParamInQuery:
582 name: options
tragaitc3285512021-08-16 15:12:36 +0100583 in: query
emaclee844cab32021-12-01 09:42:37 +0000584 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 +0100585 required: false
586 schema:
587 type: string
tragaitabdff1b2021-10-06 11:04:18 +0100588 allowReserved: true
589 examples:
emaclee844cab32021-12-01 09:42:37 +0000590 sample 1:
tragaitabdff1b2021-10-06 11:04:18 +0100591 value:
emaclee844cab32021-12-01 09:42:37 +0000592 options: (depth=3)
593 sample 2:
tragaitabdff1b2021-10-06 11:04:18 +0100594 value:
emaclee844cab32021-12-01 09:42:37 +0000595 options: (fields=book)
596 sample 3:
tragaitabdff1b2021-10-06 11:04:18 +0100597 value:
emaclee844cab32021-12-01 09:42:37 +0000598 options: (depth=2,fields=book/authors)
sourabh_sourabh1f2e66e2022-02-16 21:53:41 +0530599 topicParamInQuery:
600 name: topic
601 in: query
602 description: topic parameter in query.
603 required: false
604 schema:
605 type: string
606 allowReserved: true
607 examples:
608 sample 1:
609 value:
610 topic: my-topic-name
sourabh_sourabh4031d432023-03-27 14:36:20 +0100611 requiredTopicParamInQuery:
612 name: topic
613 in: query
614 description: mandatory topic parameter in query.
615 required: true
616 schema:
617 type: string
618 allowReserved: true
619 examples:
620 sample 1:
621 value:
622 topic: my-topic-name
tragaitc584bf22021-08-20 15:45:58 +0100623 contentParamInHeader:
624 name: Content-Type
625 in: header
626 required: false
627 description: Content parameter for request, if content parameter is null, default value is application/json.
628 schema:
629 type: string
630 default: application/json
emaclee844cab32021-12-01 09:42:37 +0000631 example: application/yang-data+json
danielhanrahanc5222a72024-02-28 16:05:07 +0000632 authorizationParamInHeader:
633 name: Authorization
634 in: header
635 required: false
636 description: Authorization parameter for request.
637 schema:
638 type: string
bmiklosbbaf5012022-08-25 18:28:16 +0200639 datastoreName:
lukegleeson20e7a732022-10-20 10:14:00 +0100640 name: datastore-name
bmiklosbbaf5012022-08-25 18:28:16 +0200641 in: path
642 description: The type of the requested data
643 required: true
644 schema:
645 type: string
seanbeirneafc60552023-01-30 16:53:37 +0000646 example: ncmp-datastore:running
Ruslan Kashapov9f52f602021-01-22 12:53:01 +0200647
648 responses:
649 NotFound:
650 description: The specified resource was not found
651 content:
652 application/json:
653 schema:
654 $ref: '#/components/schemas/ErrorMessage'
emaclee844cab32021-12-01 09:42:37 +0000655 example:
656 status: 400
657 message: Not found error message
658 details: Not found error details
Ruslan Kashapov9f52f602021-01-22 12:53:01 +0200659 Unauthorized:
660 description: Unauthorized
661 content:
662 application/json:
663 schema:
664 $ref: '#/components/schemas/ErrorMessage'
emaclee844cab32021-12-01 09:42:37 +0000665 example:
666 status: 401
667 message: Unauthorized error message
668 details: Unauthorized error details
Ruslan Kashapov9f52f602021-01-22 12:53:01 +0200669 Forbidden:
670 description: Forbidden
671 content:
672 application/json:
673 schema:
674 $ref: '#/components/schemas/ErrorMessage'
emaclee844cab32021-12-01 09:42:37 +0000675 example:
bmiklosbbaf5012022-08-25 18:28:16 +0200676 status: 403
677 message: Forbidden error message
678 details: Forbidden error details
Ruslan Kashapov9f52f602021-01-22 12:53:01 +0200679 BadRequest:
680 description: Bad Request
681 content:
682 application/json:
683 schema:
684 $ref: '#/components/schemas/ErrorMessage'
emaclee844cab32021-12-01 09:42:37 +0000685 example:
bmiklosbbaf5012022-08-25 18:28:16 +0200686 status: 400 BAD_REQUEST
687 message: Bad request error message
688 details: Bad request error details
Ruslan Kashapov9f52f602021-01-22 12:53:01 +0200689 Conflict:
690 description: Conflict
691 content:
692 application/json:
693 schema:
694 $ref: '#/components/schemas/ErrorMessage'
emaclee844cab32021-12-01 09:42:37 +0000695 example:
bmiklosbbaf5012022-08-25 18:28:16 +0200696 status: 409 CONFLICT
697 message: Conflict error message
698 details: Conflict error details
Hanif Kukkalli83e318f2021-02-23 12:26:39 +0100699 NotImplemented:
700 description: The given path has not been implemented
701 content:
702 application/json:
703 schema:
704 $ref: '#/components/schemas/ErrorMessage'
emaclee844cab32021-12-01 09:42:37 +0000705 example:
bmiklosbbaf5012022-08-25 18:28:16 +0200706 status: 501
707 message: Not implemented error message
708 details: Not implemented error details
Ruslan Kashapov9f52f602021-01-22 12:53:01 +0200709 Ok:
710 description: OK
711 content:
712 application/json:
713 schema:
714 type: object
715 Created:
716 description: Created
bmiklosbbaf5012022-08-25 18:28:16 +0200717 content: { }
Ruslan Kashapov9f52f602021-01-22 12:53:01 +0200718 NoContent:
719 description: No Content
bmiklosbbaf5012022-08-25 18:28:16 +0200720 content: { }
JosephKeenane0873dd2022-01-28 11:22:22 +0000721 InternalServerError:
722 description: Internal Server Error
723 content:
724 application/json:
725 schema:
726 $ref: "#/components/schemas/ErrorMessage"
727 example:
728 status: 500
729 message: Internal Server Error
730 details: Internal Server Error occurred
mpriyank93afc1e2022-03-28 15:47:47 +0530731 BadGateway:
732 description: Bad Gateway
733 content:
734 application/json:
735 schema:
736 $ref: "#/components/schemas/DmiErrorMessage"
737 example:
738 message: "Bad Gateway Error Message NCMP"
739 dmi-response:
740 http-code: 400
741 body: "Bad Request"