tragait | 34a94b9 | 2021-03-30 12:02:27 +0100 | [diff] [blame] | 1 | # ============LICENSE_START======================================================= |
sourabh_sourabh | 4031d43 | 2023-03-27 14:36:20 +0100 | [diff] [blame] | 2 | # Copyright (C) 2021-2023 Nordix Foundation |
Ruslan Kashapov | 1baf48d | 2021-05-07 10:46:27 +0300 | [diff] [blame] | 3 | # Modifications Copyright (C) 2021 Pantheon.tech |
puthuparambil.aditya | d69742c | 2022-03-29 11:03:52 +0100 | [diff] [blame] | 4 | # Modifications Copyright (C) 2022 Bell Canada |
tragait | 34a94b9 | 2021-03-30 12:02:27 +0100 | [diff] [blame] | 5 | # ================================================================================ |
| 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 |
lukegleeson | 15b93e7 | 2021-07-07 15:25:30 +0100 | [diff] [blame] | 11 | # |
tragait | 34a94b9 | 2021-03-30 12:02:27 +0100 | [diff] [blame] | 12 | # 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 Kashapov | 9f52f60 | 2021-01-22 12:53:01 +0200 | [diff] [blame] | 21 | components: |
| 22 | schemas: |
niamhcore | 66017b4 | 2021-10-19 11:07:02 +0100 | [diff] [blame] | 23 | # Common Schemas |
Ruslan Kashapov | 9f52f60 | 2021-01-22 12:53:01 +0200 | [diff] [blame] | 24 | ErrorMessage: |
| 25 | type: object |
| 26 | title: Error |
| 27 | properties: |
| 28 | status: |
| 29 | type: string |
| 30 | message: |
| 31 | type: string |
| 32 | details: |
| 33 | type: string |
mpriyank | 93afc1e | 2022-03-28 15:47:47 +0530 | [diff] [blame] | 34 | # DMI Server Exception Schema |
| 35 | DmiErrorMessage: |
| 36 | title: DMI Error Message |
| 37 | type: object |
| 38 | properties: |
| 39 | message: |
| 40 | type: string |
| 41 | example: "Bad Gateway Error Message NCMP" |
| 42 | 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 |
niamhcore | 66017b4 | 2021-10-19 11:07:02 +0100 | [diff] [blame] | 51 | # Request Schemas |
DylanB95EST | 4f4178c | 2021-07-02 13:30:42 +0100 | [diff] [blame] | 52 | RestDmiPluginRegistration: |
| 53 | type: object |
Ruslan Kashapov | 9f52f60 | 2021-01-22 12:53:01 +0200 | [diff] [blame] | 54 | properties: |
DylanB95EST | 4f4178c | 2021-07-02 13:30:42 +0100 | [diff] [blame] | 55 | dmiPlugin: |
Ruslan Kashapov | 9f52f60 | 2021-01-22 12:53:01 +0200 | [diff] [blame] | 56 | type: string |
emaclee | 844cab3 | 2021-12-01 09:42:37 +0000 | [diff] [blame] | 57 | example: my-dmi-plugin |
DylanB95EST | d042fcd | 2022-02-21 12:57:08 +0000 | [diff] [blame] | 58 | default: "" |
JosephKeenan | 20b4f9c | 2021-11-23 12:18:28 +0000 | [diff] [blame] | 59 | dmiDataPlugin: |
| 60 | type: string |
emaclee | 844cab3 | 2021-12-01 09:42:37 +0000 | [diff] [blame] | 61 | example: my-dmi-data-plugin |
DylanB95EST | d042fcd | 2022-02-21 12:57:08 +0000 | [diff] [blame] | 62 | default: "" |
JosephKeenan | 20b4f9c | 2021-11-23 12:18:28 +0000 | [diff] [blame] | 63 | dmiModelPlugin: |
| 64 | type: string |
emaclee | 844cab3 | 2021-12-01 09:42:37 +0000 | [diff] [blame] | 65 | example: my-dmi-model-plugin |
DylanB95EST | d042fcd | 2022-02-21 12:57:08 +0000 | [diff] [blame] | 66 | default: "" |
DylanB95EST | 4f4178c | 2021-07-02 13:30:42 +0100 | [diff] [blame] | 67 | createdCmHandles: |
| 68 | type: array |
| 69 | items: |
DylanB95EST | e557338 | 2022-01-27 17:12:52 +0000 | [diff] [blame] | 70 | $ref: '#/components/schemas/RestInputCmHandle' |
DylanB95EST | 31facc8 | 2021-08-18 17:12:25 +0100 | [diff] [blame] | 71 | updatedCmHandles: |
| 72 | type: array |
| 73 | items: |
DylanB95EST | e557338 | 2022-01-27 17:12:52 +0000 | [diff] [blame] | 74 | $ref: '#/components/schemas/RestInputCmHandle' |
Renu Kumari | 2c96317 | 2022-03-10 16:02:55 -0500 | [diff] [blame] | 75 | 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: '~' |
DylanB95EST | e999b02 | 2021-08-24 16:56:40 +0100 | [diff] [blame] | 85 | removedCmHandles: |
| 86 | type: array |
| 87 | items: |
| 88 | type: string |
bmiklos | bbaf501 | 2022-08-25 18:28:16 +0200 | [diff] [blame] | 89 | example: [ my-cm-handle1, my-cm-handle2, my-cm-handle3 ] |
Renu Kumari | b14f04b | 2022-03-28 10:22:41 -0400 | [diff] [blame] | 90 | DmiPluginRegistrationErrorResponse: |
| 91 | type: object |
| 92 | properties: |
| 93 | failedCreatedCmHandles: |
| 94 | type: array |
| 95 | items: |
| 96 | $ref: '#/components/schemas/CmHandlerRegistrationErrorResponse' |
Renu Kumari | b14f04b | 2022-03-28 10:22:41 -0400 | [diff] [blame] | 97 | failedUpdatedCmHandles: |
| 98 | type: array |
| 99 | items: |
| 100 | $ref: '#/components/schemas/CmHandlerRegistrationErrorResponse' |
Renu Kumari | b14f04b | 2022-03-28 10:22:41 -0400 | [diff] [blame] | 101 | failedRemovedCmHandles: |
| 102 | type: array |
| 103 | items: |
| 104 | $ref: '#/components/schemas/CmHandlerRegistrationErrorResponse' |
Renu Kumari | b14f04b | 2022-03-28 10:22:41 -0400 | [diff] [blame] | 105 | CmHandlerRegistrationErrorResponse: |
| 106 | type: object |
| 107 | properties: |
| 108 | cmHandle: |
| 109 | type: string |
| 110 | example: my-cm-handle |
| 111 | errorCode: |
| 112 | type: string |
Renu Kumari | 952603c | 2022-04-18 12:39:33 -0400 | [diff] [blame] | 113 | example: '00' |
Renu Kumari | b14f04b | 2022-03-28 10:22:41 -0400 | [diff] [blame] | 114 | errorText: |
| 115 | type: string |
Renu Kumari | 952603c | 2022-04-18 12:39:33 -0400 | [diff] [blame] | 116 | example: 'Unknown error. <error-details>' |
DylanB95EST | 4f4178c | 2021-07-02 13:30:42 +0100 | [diff] [blame] | 117 | |
DylanB95EST | e557338 | 2022-01-27 17:12:52 +0000 | [diff] [blame] | 118 | RestInputCmHandle: |
DylanB95EST | 4f4178c | 2021-07-02 13:30:42 +0100 | [diff] [blame] | 119 | required: |
| 120 | - cmHandle |
| 121 | type: object |
| 122 | properties: |
| 123 | cmHandle: |
| 124 | type: string |
emaclee | 844cab3 | 2021-12-01 09:42:37 +0000 | [diff] [blame] | 125 | example: my-cm-handle |
DylanB95EST | 4f4178c | 2021-07-02 13:30:42 +0100 | [diff] [blame] | 126 | cmHandleProperties: |
bmiklos | bbaf501 | 2022-08-25 18:28:16 +0200 | [diff] [blame] | 127 | $ref: '#/components/schemas/RestCmHandleProperties' |
DylanB95EST | 63132ce | 2021-12-14 16:34:38 +0000 | [diff] [blame] | 128 | publicCmHandleProperties: |
bmiklos | bbaf501 | 2022-08-25 18:28:16 +0200 | [diff] [blame] | 129 | $ref: '#/components/schemas/RestCmHandleProperties' |
DylanB95EST | 63132ce | 2021-12-14 16:34:38 +0000 | [diff] [blame] | 130 | RestCmHandleProperties: |
bmiklos | bbaf501 | 2022-08-25 18:28:16 +0200 | [diff] [blame] | 131 | type: object |
| 132 | additionalProperties: |
| 133 | type: string |
| 134 | example: my-property |
Ruslan Kashapov | 9f52f60 | 2021-01-22 12:53:01 +0200 | [diff] [blame] | 135 | |
niamhcore | 66017b4 | 2021-10-19 11:07:02 +0100 | [diff] [blame] | 136 | #Response Schemas |
lukegleeson | d5bda88 | 2022-03-02 14:32:47 +0000 | [diff] [blame] | 137 | RestModuleReference: |
puthuparambil.aditya | d000733 | 2021-12-08 18:53:39 +0000 | [diff] [blame] | 138 | 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 | |
emaclee | e1f73e2 | 2022-06-17 17:42:56 +0100 | [diff] [blame] | 148 | 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; |
| 163 | namespace "org:onap:ccsdk:sample"; |
| 164 | prefix book-store; |
| 165 | revision "2020-09-15" { |
| 166 | description |
| 167 | "Sample Model"; |
| 168 | } |
| 169 | } |
| 170 | |
kissand | e9ed581 | 2022-05-12 15:59:18 +0200 | [diff] [blame] | 171 | CmHandleQueryParameters: |
JosephKeenan | deac477 | 2022-03-28 12:26:07 +0100 | [diff] [blame] | 172 | type: object |
| 173 | title: Cm Handle query parameters for executing cm handle search |
| 174 | properties: |
kissand | e9ed581 | 2022-05-12 15:59:18 +0200 | [diff] [blame] | 175 | cmHandleQueryParameters: |
| 176 | type: array |
| 177 | items: |
| 178 | type: object |
| 179 | $ref: '#/components/schemas/ConditionProperties' |
| 180 | conditions: |
| 181 | deprecated: true |
| 182 | type: array |
| 183 | items: |
| 184 | type: object |
| 185 | $ref: '#/components/schemas/OldConditionProperties' |
| 186 | description: not necessary, it is just for backward compatibility |
lukegleeson | 82a550f | 2022-07-11 10:55:53 +0100 | [diff] [blame] | 187 | |
kissand | e9ed581 | 2022-05-12 15:59:18 +0200 | [diff] [blame] | 188 | ConditionProperties: |
| 189 | properties: |
| 190 | conditionName: |
| 191 | type: string |
| 192 | conditionParameters: |
| 193 | type: array |
| 194 | items: |
| 195 | type: object |
| 196 | additionalProperties: |
| 197 | type: string |
| 198 | OldConditionProperties: |
| 199 | deprecated: true |
| 200 | properties: |
| 201 | name: |
| 202 | type: string |
| 203 | conditionParameters: |
| 204 | type: array |
| 205 | items: |
| 206 | type: object |
| 207 | $ref: '#/components/schemas/ModuleNameAsJsonObject' |
| 208 | ModuleNameAsJsonObject: |
| 209 | properties: |
| 210 | moduleName: |
| 211 | type: string |
| 212 | example: my-module |
JosephKeenan | deac477 | 2022-03-28 12:26:07 +0100 | [diff] [blame] | 213 | |
DylanB95EST | e557338 | 2022-01-27 17:12:52 +0000 | [diff] [blame] | 214 | 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' |
mpriyank | 4cf4962 | 2022-05-20 15:25:15 +0100 | [diff] [blame] | 223 | state: |
lukegleeson | 78062a1 | 2022-06-02 10:56:43 +0100 | [diff] [blame] | 224 | $ref: '#/components/schemas/CmHandleCompositeState' |
DylanB95EST | e557338 | 2022-01-27 17:12:52 +0000 | [diff] [blame] | 225 | CmHandlePublicProperties: |
| 226 | type: array |
| 227 | items: |
| 228 | type: object |
| 229 | additionalProperties: |
| 230 | type: string |
| 231 | example: Book Type |
lukegleeson | 78062a1 | 2022-06-02 10:56:43 +0100 | [diff] [blame] | 232 | CmHandleCompositeState: |
mpriyank | 4cf4962 | 2022-05-20 15:25:15 +0100 | [diff] [blame] | 233 | 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 |
lukegleeson | 4e59684 | 2022-06-28 12:15:33 +0100 | [diff] [blame] | 254 | example: LOCKED_MISBEHAVING |
mpriyank | 4cf4962 | 2022-05-20 15:25:15 +0100 | [diff] [blame] | 255 | details: |
| 256 | type: string |
lukegleeson | 4e59684 | 2022-06-28 12:15:33 +0100 | [diff] [blame] | 257 | example: locked due to failure in module sync |
mpriyank | 4cf4962 | 2022-05-20 15:25:15 +0100 | [diff] [blame] | 258 | |
| 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: |
lukegleeson | 82a550f | 2022-07-11 10:55:53 +0100 | [diff] [blame] | 270 | syncState: |
mpriyank | 4cf4962 | 2022-05-20 15:25:15 +0100 | [diff] [blame] | 271 | type: string |
| 272 | example: NONE_REQUESTED |
| 273 | lastSyncTime: |
| 274 | type: string |
| 275 | example: 2022-12-31T20:30:40.000+0000 |
DylanB95EST | e557338 | 2022-01-27 17:12:52 +0000 | [diff] [blame] | 276 | |
lukegleeson | bed18fd | 2022-05-06 12:02:42 +0100 | [diff] [blame] | 277 | RestOutputCmHandlePublicProperties: |
| 278 | type: object |
| 279 | properties: |
| 280 | publicCmHandleProperties: |
| 281 | $ref: '#/components/schemas/CmHandlePublicProperties' |
| 282 | |
lukegleeson | 78062a1 | 2022-06-02 10:56:43 +0100 | [diff] [blame] | 283 | RestOutputCmHandleCompositeState: |
| 284 | type: object |
| 285 | properties: |
| 286 | state: |
| 287 | $ref: '#/components/schemas/CmHandleCompositeState' |
raviteja.karumuri | 977f7c3 | 2023-06-20 19:10:21 +0100 | [diff] [blame^] | 288 | # Data Operation Request Schemas |
| 289 | DataOperationRequest: |
sourabh_sourabh | f232f30 | 2023-05-09 14:34:59 +0100 | [diff] [blame] | 290 | type: object |
raviteja.karumuri | 977f7c3 | 2023-06-20 19:10:21 +0100 | [diff] [blame^] | 291 | title: execute data operation for given array of operations |
sourabh_sourabh | f232f30 | 2023-05-09 14:34:59 +0100 | [diff] [blame] | 292 | properties: |
| 293 | operations: |
| 294 | type: array |
| 295 | items: |
| 296 | type: object |
raviteja.karumuri | 977f7c3 | 2023-06-20 19:10:21 +0100 | [diff] [blame^] | 297 | $ref: '#/components/schemas/DataOperationDefinition' |
| 298 | description: contains group of data operation requests |
| 299 | DataOperationDefinition: |
sourabh_sourabh | f232f30 | 2023-05-09 14:34:59 +0100 | [diff] [blame] | 300 | required: |
| 301 | - operation |
| 302 | - datastore |
| 303 | - operationId |
| 304 | properties: |
| 305 | operation: |
| 306 | type: string |
| 307 | example: 'read' |
| 308 | operationId: |
| 309 | type: string |
| 310 | example: '12' |
| 311 | datastore: |
| 312 | type: string |
| 313 | example: 'ncmp-datastore:passthrough-operational' |
| 314 | options: |
| 315 | type: string |
| 316 | example: '(fields=schemas/schema)' |
| 317 | resourceIdentifier: |
| 318 | type: string |
| 319 | example: 'parent/child' |
| 320 | targetIds: |
| 321 | type: array |
| 322 | items: |
| 323 | type: string |
| 324 | example: [ "da310eecdb8d44c2acc0ddaae01174b1","c748c58f8e0b438f9fd1f28370b17d47" ] |
lukegleeson | 78062a1 | 2022-06-02 10:56:43 +0100 | [diff] [blame] | 325 | |
emaclee | 844cab3 | 2021-12-01 09:42:37 +0000 | [diff] [blame] | 326 | examples: |
| 327 | dataSampleRequest: |
bmiklos | bbaf501 | 2022-08-25 18:28:16 +0200 | [diff] [blame] | 328 | summary: Sample request |
| 329 | description: Sample request body |
| 330 | value: |
| 331 | test:bookstore: |
| 332 | bookstore-name: Chapters |
| 333 | categories: |
| 334 | - code: '01' |
| 335 | name: SciFi |
| 336 | books: |
emaclee | 844cab3 | 2021-12-01 09:42:37 +0000 | [diff] [blame] | 337 | - authors: |
| 338 | - Iain M. Banks |
emaclee | 844cab3 | 2021-12-01 09:42:37 +0000 | [diff] [blame] | 339 | - Ursula K. Le Guin |
bmiklos | bbaf501 | 2022-08-25 18:28:16 +0200 | [diff] [blame] | 340 | - code: '02' |
| 341 | name: kids |
| 342 | books: |
emaclee | 844cab3 | 2021-12-01 09:42:37 +0000 | [diff] [blame] | 343 | - authors: |
| 344 | - Philip Pullman |
| 345 | |
tragait | ecd7f5e | 2022-01-13 13:15:14 +0000 | [diff] [blame] | 346 | dataSamplePatchRequest: |
| 347 | summary: Sample patch request |
| 348 | description: Sample patch request body |
| 349 | value: |
| 350 | ietf-restconf:yang-patch: |
| 351 | patch-id: patch-1 |
| 352 | edit: |
| 353 | - edit-id: edit1 |
| 354 | operation: merge |
| 355 | target: / |
| 356 | value: |
| 357 | test:bookstore: |
| 358 | bookstore-name: Chapters |
| 359 | categories: |
| 360 | - code: '01' |
| 361 | name: Science |
| 362 | books: |
| 363 | - authors: |
| 364 | - Author1 |
| 365 | - Author2 |
| 366 | - code: '02' |
| 367 | name: Arts |
| 368 | books: |
| 369 | - authors: |
| 370 | - Author3 |
| 371 | - edit-id: edit2 |
| 372 | operation: merge |
| 373 | target: / |
| 374 | value: |
| 375 | test:bookstore: |
| 376 | bookstore-name: Novels |
| 377 | categories: |
| 378 | - code: '03' |
| 379 | name: History |
| 380 | books: |
| 381 | - authors: |
| 382 | - Iain M. Banks |
| 383 | - Ursula K. Le Guin |
| 384 | - code: '04' |
| 385 | name: Fiction |
| 386 | books: |
| 387 | - authors: |
| 388 | - Philip Pullman |
| 389 | |
emaclee | 844cab3 | 2021-12-01 09:42:37 +0000 | [diff] [blame] | 390 | dataSampleResponse: |
bmiklos | bbaf501 | 2022-08-25 18:28:16 +0200 | [diff] [blame] | 391 | summary: Sample response |
| 392 | description: Sample response for selecting 'sample 1'. |
| 393 | value: |
| 394 | bookstore: |
| 395 | categories: |
| 396 | - code: '01' |
| 397 | books: |
| 398 | - authors: |
| 399 | - Iain M. Banks |
| 400 | - Ursula K. Le Guin |
| 401 | name: SciFi |
| 402 | - code: '02' |
| 403 | books: |
| 404 | - authors: |
| 405 | - Philip Pullman |
| 406 | name: kids |
niamhcore | 66017b4 | 2021-10-19 11:07:02 +0100 | [diff] [blame] | 407 | |
lukegleeson | 82a550f | 2022-07-11 10:55:53 +0100 | [diff] [blame] | 408 | allCmHandleQueryParameters: |
| 409 | value: |
| 410 | cmHandleQueryParameters: |
| 411 | - conditionName: hasAllModules |
| 412 | conditionParameters: |
| 413 | - { "moduleName": "my-module-1" } |
| 414 | - { "moduleName": "my-module-2" } |
| 415 | - { "moduleName": "my-module-3" } |
| 416 | - conditionName: hasAllProperties |
| 417 | conditionParameters: |
| 418 | - { "Color": "yellow" } |
| 419 | - { "Shape": "circle" } |
| 420 | - { "Size": "small" } |
| 421 | - conditionName: cmHandleWithCpsPath |
| 422 | conditionParameters: |
| 423 | - { "cpsPath": "//state[@cm-handle-state='ADVISED']" } |
| 424 | pubPropCmHandleQueryParameters: |
| 425 | value: |
| 426 | cmHandleQueryParameters: |
| 427 | - conditionName: hasAllProperties |
| 428 | conditionParameters: |
| 429 | - { "Color": "yellow" } |
| 430 | - { "Shape": "circle" } |
| 431 | - { "Size": "small" } |
| 432 | modulesCmHandleQueryParameters: |
| 433 | value: |
| 434 | cmHandleQueryParameters: |
| 435 | - conditionName: hasAllModules |
| 436 | conditionParameters: |
| 437 | - { "moduleName": "my-module-1" } |
| 438 | - { "moduleName": "my-module-2" } |
| 439 | - { "moduleName": "my-module-3" } |
| 440 | cpsPathCmHandleStateQueryParameters: |
| 441 | value: |
| 442 | cmHandleQueryParameters: |
| 443 | - conditionName: cmHandleWithCpsPath |
| 444 | conditionParameters: |
| 445 | - { "cpsPath": "//state[@cm-handle-state='LOCKED']" } |
| 446 | cpsPathCmHandleDataSyncQueryParameters: |
| 447 | value: |
| 448 | cmHandleQueryParameters: |
| 449 | - conditionName: cmHandleWithCpsPath |
| 450 | conditionParameters: |
| 451 | - { "cpsPath": "//state[@data-sync-enabled='true']" } |
| 452 | |
Ruslan Kashapov | 9f52f60 | 2021-01-22 12:53:01 +0200 | [diff] [blame] | 453 | parameters: |
Hanif Kukkalli | 83e318f | 2021-02-23 12:26:39 +0100 | [diff] [blame] | 454 | cmHandleInPath: |
| 455 | name: cm-handle |
| 456 | in: path |
tragait | 34a94b9 | 2021-03-30 12:02:27 +0100 | [diff] [blame] | 457 | description: The identifier for a network function, network element, subnetwork or any other cm object by managed Network CM Proxy |
Hanif Kukkalli | 83e318f | 2021-02-23 12:26:39 +0100 | [diff] [blame] | 458 | required: true |
| 459 | schema: |
| 460 | type: string |
emaclee | 844cab3 | 2021-12-01 09:42:37 +0000 | [diff] [blame] | 461 | example: my-cm-handle |
DylanB95EST | 6ddbe4a | 2022-07-19 11:36:10 +0100 | [diff] [blame] | 462 | dataSyncEnabled: |
| 463 | name: dataSyncEnabled |
| 464 | in: query |
| 465 | description: Is used to enable or disable the data synchronization flag |
| 466 | required: true |
| 467 | schema: |
| 468 | type: boolean |
| 469 | example: true |
Hanif Kukkalli | 83e318f | 2021-02-23 12:26:39 +0100 | [diff] [blame] | 470 | xpathInQuery: |
| 471 | name: xpath |
| 472 | in: query |
| 473 | description: xpath |
| 474 | required: false |
| 475 | schema: |
| 476 | type: string |
| 477 | default: / |
Ruslan Kashapov | 1baf48d | 2021-05-07 10:46:27 +0300 | [diff] [blame] | 478 | requiredXpathInQuery: |
| 479 | name: xpath |
| 480 | in: query |
| 481 | description: xpath |
| 482 | required: true |
| 483 | schema: |
| 484 | type: string |
Hanif Kukkalli | 83e318f | 2021-02-23 12:26:39 +0100 | [diff] [blame] | 485 | includeDescendantsOptionInQuery: |
| 486 | name: include-descendants |
| 487 | in: query |
bmiklos | bbaf501 | 2022-08-25 18:28:16 +0200 | [diff] [blame] | 488 | description: Determines if descendants are included in response |
Hanif Kukkalli | 83e318f | 2021-02-23 12:26:39 +0100 | [diff] [blame] | 489 | required: false |
| 490 | schema: |
| 491 | type: boolean |
| 492 | default: false |
niamhcore | b5d573b | 2021-02-26 10:13:48 +0000 | [diff] [blame] | 493 | cpsPathInQuery: |
| 494 | name: cps-path |
| 495 | in: query |
lukegleeson | 20e7a73 | 2022-10-20 10:14:00 +0100 | [diff] [blame] | 496 | description: For more details on cps path, please refer https://docs.onap.org/projects/onap-cps/en/latest/cps-path.html |
niamhcore | b5d573b | 2021-02-26 10:13:48 +0000 | [diff] [blame] | 497 | required: false |
| 498 | schema: |
| 499 | type: string |
| 500 | default: / |
lukegleeson | 20e7a73 | 2022-10-20 10:14:00 +0100 | [diff] [blame] | 501 | examples: |
| 502 | container cps path: |
| 503 | value: //bookstore |
| 504 | list attributes cps path: |
| 505 | value: //categories[@code=1] |
emaclee | d340047 | 2022-08-19 09:26:39 +0100 | [diff] [blame] | 506 | dmiPluginIdentifierInQuery: |
| 507 | name: dmi-plugin-identifier |
| 508 | in: query |
| 509 | description: dmi-plugin-identifier |
| 510 | required: true |
| 511 | schema: |
| 512 | type: string |
| 513 | example: my-dmi-plugin |
niamhcore | fd2e6dd | 2021-09-29 16:43:35 +0100 | [diff] [blame] | 514 | resourceIdentifierInQuery: |
tragait | c328551 | 2021-08-16 15:12:36 +0100 | [diff] [blame] | 515 | name: resourceIdentifier |
niamhcore | fd2e6dd | 2021-09-29 16:43:35 +0100 | [diff] [blame] | 516 | in: query |
| 517 | 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. |
tragait | c328551 | 2021-08-16 15:12:36 +0100 | [diff] [blame] | 518 | required: true |
niamhcore | fd2e6dd | 2021-09-29 16:43:35 +0100 | [diff] [blame] | 519 | allowReserved: true |
tragait | c328551 | 2021-08-16 15:12:36 +0100 | [diff] [blame] | 520 | schema: |
| 521 | type: string |
niamhcore | fd2e6dd | 2021-09-29 16:43:35 +0100 | [diff] [blame] | 522 | examples: |
emaclee | 844cab3 | 2021-12-01 09:42:37 +0000 | [diff] [blame] | 523 | sample 1: |
niamhcore | fd2e6dd | 2021-09-29 16:43:35 +0100 | [diff] [blame] | 524 | value: |
emaclee | 844cab3 | 2021-12-01 09:42:37 +0000 | [diff] [blame] | 525 | resourceIdentifier: \shops\bookstore |
| 526 | sample 2: |
niamhcore | fd2e6dd | 2021-09-29 16:43:35 +0100 | [diff] [blame] | 527 | value: |
emaclee | 844cab3 | 2021-12-01 09:42:37 +0000 | [diff] [blame] | 528 | resourceIdentifier: \shops\bookstore\categories[@code=1] |
| 529 | sample 3: |
niamhcore | fd2e6dd | 2021-09-29 16:43:35 +0100 | [diff] [blame] | 530 | value: |
emaclee | 844cab3 | 2021-12-01 09:42:37 +0000 | [diff] [blame] | 531 | resourceIdentifier: parent=shops,child=bookstore |
tragait | abdff1b | 2021-10-06 11:04:18 +0100 | [diff] [blame] | 532 | optionsParamInQuery: |
| 533 | name: options |
tragait | c328551 | 2021-08-16 15:12:36 +0100 | [diff] [blame] | 534 | in: query |
emaclee | 844cab3 | 2021-12-01 09:42:37 +0000 | [diff] [blame] | 535 | 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. |
tragait | c328551 | 2021-08-16 15:12:36 +0100 | [diff] [blame] | 536 | required: false |
| 537 | schema: |
| 538 | type: string |
tragait | abdff1b | 2021-10-06 11:04:18 +0100 | [diff] [blame] | 539 | allowReserved: true |
| 540 | examples: |
emaclee | 844cab3 | 2021-12-01 09:42:37 +0000 | [diff] [blame] | 541 | sample 1: |
tragait | abdff1b | 2021-10-06 11:04:18 +0100 | [diff] [blame] | 542 | value: |
emaclee | 844cab3 | 2021-12-01 09:42:37 +0000 | [diff] [blame] | 543 | options: (depth=3) |
| 544 | sample 2: |
tragait | abdff1b | 2021-10-06 11:04:18 +0100 | [diff] [blame] | 545 | value: |
emaclee | 844cab3 | 2021-12-01 09:42:37 +0000 | [diff] [blame] | 546 | options: (fields=book) |
| 547 | sample 3: |
tragait | abdff1b | 2021-10-06 11:04:18 +0100 | [diff] [blame] | 548 | value: |
emaclee | 844cab3 | 2021-12-01 09:42:37 +0000 | [diff] [blame] | 549 | options: (depth=2,fields=book/authors) |
sourabh_sourabh | 1f2e66e | 2022-02-16 21:53:41 +0530 | [diff] [blame] | 550 | topicParamInQuery: |
| 551 | name: topic |
| 552 | in: query |
| 553 | description: topic parameter in query. |
| 554 | required: false |
| 555 | schema: |
| 556 | type: string |
| 557 | allowReserved: true |
| 558 | examples: |
| 559 | sample 1: |
| 560 | value: |
| 561 | topic: my-topic-name |
sourabh_sourabh | 4031d43 | 2023-03-27 14:36:20 +0100 | [diff] [blame] | 562 | requiredTopicParamInQuery: |
| 563 | name: topic |
| 564 | in: query |
| 565 | description: mandatory topic parameter in query. |
| 566 | required: true |
| 567 | schema: |
| 568 | type: string |
| 569 | allowReserved: true |
| 570 | examples: |
| 571 | sample 1: |
| 572 | value: |
| 573 | topic: my-topic-name |
tragait | c584bf2 | 2021-08-20 15:45:58 +0100 | [diff] [blame] | 574 | contentParamInHeader: |
| 575 | name: Content-Type |
| 576 | in: header |
| 577 | required: false |
| 578 | description: Content parameter for request, if content parameter is null, default value is application/json. |
| 579 | schema: |
| 580 | type: string |
| 581 | default: application/json |
emaclee | 844cab3 | 2021-12-01 09:42:37 +0000 | [diff] [blame] | 582 | example: application/yang-data+json |
bmiklos | bbaf501 | 2022-08-25 18:28:16 +0200 | [diff] [blame] | 583 | datastoreName: |
lukegleeson | 20e7a73 | 2022-10-20 10:14:00 +0100 | [diff] [blame] | 584 | name: datastore-name |
bmiklos | bbaf501 | 2022-08-25 18:28:16 +0200 | [diff] [blame] | 585 | in: path |
| 586 | description: The type of the requested data |
| 587 | required: true |
| 588 | schema: |
| 589 | type: string |
seanbeirne | afc6055 | 2023-01-30 16:53:37 +0000 | [diff] [blame] | 590 | example: ncmp-datastore:running |
Ruslan Kashapov | 9f52f60 | 2021-01-22 12:53:01 +0200 | [diff] [blame] | 591 | |
| 592 | responses: |
| 593 | NotFound: |
| 594 | description: The specified resource was not found |
| 595 | content: |
| 596 | application/json: |
| 597 | schema: |
| 598 | $ref: '#/components/schemas/ErrorMessage' |
emaclee | 844cab3 | 2021-12-01 09:42:37 +0000 | [diff] [blame] | 599 | example: |
| 600 | status: 400 |
| 601 | message: Not found error message |
| 602 | details: Not found error details |
Ruslan Kashapov | 9f52f60 | 2021-01-22 12:53:01 +0200 | [diff] [blame] | 603 | Unauthorized: |
| 604 | description: Unauthorized |
| 605 | content: |
| 606 | application/json: |
| 607 | schema: |
| 608 | $ref: '#/components/schemas/ErrorMessage' |
emaclee | 844cab3 | 2021-12-01 09:42:37 +0000 | [diff] [blame] | 609 | example: |
| 610 | status: 401 |
| 611 | message: Unauthorized error message |
| 612 | details: Unauthorized error details |
Ruslan Kashapov | 9f52f60 | 2021-01-22 12:53:01 +0200 | [diff] [blame] | 613 | Forbidden: |
| 614 | description: Forbidden |
| 615 | content: |
| 616 | application/json: |
| 617 | schema: |
| 618 | $ref: '#/components/schemas/ErrorMessage' |
emaclee | 844cab3 | 2021-12-01 09:42:37 +0000 | [diff] [blame] | 619 | example: |
bmiklos | bbaf501 | 2022-08-25 18:28:16 +0200 | [diff] [blame] | 620 | status: 403 |
| 621 | message: Forbidden error message |
| 622 | details: Forbidden error details |
Ruslan Kashapov | 9f52f60 | 2021-01-22 12:53:01 +0200 | [diff] [blame] | 623 | BadRequest: |
| 624 | description: Bad Request |
| 625 | content: |
| 626 | application/json: |
| 627 | schema: |
| 628 | $ref: '#/components/schemas/ErrorMessage' |
emaclee | 844cab3 | 2021-12-01 09:42:37 +0000 | [diff] [blame] | 629 | example: |
bmiklos | bbaf501 | 2022-08-25 18:28:16 +0200 | [diff] [blame] | 630 | status: 400 BAD_REQUEST |
| 631 | message: Bad request error message |
| 632 | details: Bad request error details |
Ruslan Kashapov | 9f52f60 | 2021-01-22 12:53:01 +0200 | [diff] [blame] | 633 | Conflict: |
| 634 | description: Conflict |
| 635 | content: |
| 636 | application/json: |
| 637 | schema: |
| 638 | $ref: '#/components/schemas/ErrorMessage' |
emaclee | 844cab3 | 2021-12-01 09:42:37 +0000 | [diff] [blame] | 639 | example: |
bmiklos | bbaf501 | 2022-08-25 18:28:16 +0200 | [diff] [blame] | 640 | status: 409 CONFLICT |
| 641 | message: Conflict error message |
| 642 | details: Conflict error details |
Hanif Kukkalli | 83e318f | 2021-02-23 12:26:39 +0100 | [diff] [blame] | 643 | NotImplemented: |
| 644 | description: The given path has not been implemented |
| 645 | content: |
| 646 | application/json: |
| 647 | schema: |
| 648 | $ref: '#/components/schemas/ErrorMessage' |
emaclee | 844cab3 | 2021-12-01 09:42:37 +0000 | [diff] [blame] | 649 | example: |
bmiklos | bbaf501 | 2022-08-25 18:28:16 +0200 | [diff] [blame] | 650 | status: 501 |
| 651 | message: Not implemented error message |
| 652 | details: Not implemented error details |
Ruslan Kashapov | 9f52f60 | 2021-01-22 12:53:01 +0200 | [diff] [blame] | 653 | Ok: |
| 654 | description: OK |
| 655 | content: |
| 656 | application/json: |
| 657 | schema: |
| 658 | type: object |
| 659 | Created: |
| 660 | description: Created |
bmiklos | bbaf501 | 2022-08-25 18:28:16 +0200 | [diff] [blame] | 661 | content: { } |
Ruslan Kashapov | 9f52f60 | 2021-01-22 12:53:01 +0200 | [diff] [blame] | 662 | NoContent: |
| 663 | description: No Content |
bmiklos | bbaf501 | 2022-08-25 18:28:16 +0200 | [diff] [blame] | 664 | content: { } |
JosephKeenan | e0873dd | 2022-01-28 11:22:22 +0000 | [diff] [blame] | 665 | InternalServerError: |
| 666 | description: Internal Server Error |
| 667 | content: |
| 668 | application/json: |
| 669 | schema: |
| 670 | $ref: "#/components/schemas/ErrorMessage" |
| 671 | example: |
| 672 | status: 500 |
| 673 | message: Internal Server Error |
| 674 | details: Internal Server Error occurred |
mpriyank | 93afc1e | 2022-03-28 15:47:47 +0530 | [diff] [blame] | 675 | BadGateway: |
| 676 | description: Bad Gateway |
| 677 | content: |
| 678 | application/json: |
| 679 | schema: |
| 680 | $ref: "#/components/schemas/DmiErrorMessage" |
| 681 | example: |
| 682 | message: "Bad Gateway Error Message NCMP" |
| 683 | dmi-response: |
| 684 | http-code: 400 |
| 685 | body: "Bad Request" |