tragait | 34a94b9 | 2021-03-30 12:02:27 +0100 | [diff] [blame] | 1 | # ============LICENSE_START======================================================= |
halil.cakal | 04280e2 | 2024-01-23 10:05:36 +0000 | [diff] [blame] | 2 | # Copyright (C) 2021-2024 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 |
egernug | 9426ae8 | 2023-06-21 11:16:02 +0100 | [diff] [blame] | 41 | example: 'Bad Gateway Error Message NCMP' |
mpriyank | 93afc1e | 2022-03-28 15:47:47 +0530 | [diff] [blame] | 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 ] |
sourabh_sourabh | 55164b2 | 2023-09-26 12:11:42 +0100 | [diff] [blame] | 90 | upgradedCmHandles: |
| 91 | $ref: '#/components/schemas/UpgradedCmHandles' |
Renu Kumari | b14f04b | 2022-03-28 10:22:41 -0400 | [diff] [blame] | 92 | DmiPluginRegistrationErrorResponse: |
| 93 | type: object |
| 94 | properties: |
| 95 | failedCreatedCmHandles: |
| 96 | type: array |
| 97 | items: |
| 98 | $ref: '#/components/schemas/CmHandlerRegistrationErrorResponse' |
Renu Kumari | b14f04b | 2022-03-28 10:22:41 -0400 | [diff] [blame] | 99 | failedUpdatedCmHandles: |
| 100 | type: array |
| 101 | items: |
| 102 | $ref: '#/components/schemas/CmHandlerRegistrationErrorResponse' |
Renu Kumari | b14f04b | 2022-03-28 10:22:41 -0400 | [diff] [blame] | 103 | failedRemovedCmHandles: |
| 104 | type: array |
| 105 | items: |
| 106 | $ref: '#/components/schemas/CmHandlerRegistrationErrorResponse' |
sourabh_sourabh | 55164b2 | 2023-09-26 12:11:42 +0100 | [diff] [blame] | 107 | failedUpgradeCmHandles: |
| 108 | type: array |
| 109 | items: |
| 110 | $ref: '#/components/schemas/CmHandlerRegistrationErrorResponse' |
Renu Kumari | b14f04b | 2022-03-28 10:22:41 -0400 | [diff] [blame] | 111 | CmHandlerRegistrationErrorResponse: |
| 112 | type: object |
| 113 | properties: |
| 114 | cmHandle: |
| 115 | type: string |
| 116 | example: my-cm-handle |
| 117 | errorCode: |
| 118 | type: string |
Renu Kumari | 952603c | 2022-04-18 12:39:33 -0400 | [diff] [blame] | 119 | example: '00' |
Renu Kumari | b14f04b | 2022-03-28 10:22:41 -0400 | [diff] [blame] | 120 | errorText: |
| 121 | type: string |
Renu Kumari | 952603c | 2022-04-18 12:39:33 -0400 | [diff] [blame] | 122 | example: 'Unknown error. <error-details>' |
DylanB95EST | 4f4178c | 2021-07-02 13:30:42 +0100 | [diff] [blame] | 123 | |
DylanB95EST | e557338 | 2022-01-27 17:12:52 +0000 | [diff] [blame] | 124 | RestInputCmHandle: |
DylanB95EST | 4f4178c | 2021-07-02 13:30:42 +0100 | [diff] [blame] | 125 | required: |
| 126 | - cmHandle |
| 127 | type: object |
| 128 | properties: |
| 129 | cmHandle: |
| 130 | type: string |
emaclee | 844cab3 | 2021-12-01 09:42:37 +0000 | [diff] [blame] | 131 | example: my-cm-handle |
DylanB95EST | 4f4178c | 2021-07-02 13:30:42 +0100 | [diff] [blame] | 132 | cmHandleProperties: |
bmiklos | bbaf501 | 2022-08-25 18:28:16 +0200 | [diff] [blame] | 133 | $ref: '#/components/schemas/RestCmHandleProperties' |
DylanB95EST | 63132ce | 2021-12-14 16:34:38 +0000 | [diff] [blame] | 134 | publicCmHandleProperties: |
bmiklos | bbaf501 | 2022-08-25 18:28:16 +0200 | [diff] [blame] | 135 | $ref: '#/components/schemas/RestCmHandleProperties' |
leventecsanyi | 46782b7 | 2023-09-04 10:59:23 +0200 | [diff] [blame] | 136 | moduleSetTag: |
| 137 | type: string |
| 138 | example: "my-module-set-tag" |
seanbeirne | f41dd3b | 2023-10-17 11:03:16 +0100 | [diff] [blame] | 139 | trustLevel: |
| 140 | type: string |
| 141 | enum: [COMPLETE, NONE] |
| 142 | example: "COMPLETE" |
leventecsanyi | d8be9ef | 2023-12-07 16:17:12 +0100 | [diff] [blame] | 143 | alternateId: |
| 144 | type: string |
| 145 | example: "my-alternate-id" |
JvD_Ericsson | a927b20 | 2024-02-16 09:30:45 +0000 | [diff] [blame] | 146 | dataProducerIdentifier: |
| 147 | type: string |
| 148 | example: "my-data-producer-identifier" |
DylanB95EST | 63132ce | 2021-12-14 16:34:38 +0000 | [diff] [blame] | 149 | RestCmHandleProperties: |
bmiklos | bbaf501 | 2022-08-25 18:28:16 +0200 | [diff] [blame] | 150 | type: object |
| 151 | additionalProperties: |
| 152 | type: string |
| 153 | example: my-property |
sourabh_sourabh | 55164b2 | 2023-09-26 12:11:42 +0100 | [diff] [blame] | 154 | #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_sourabh | 541ed45 | 2023-12-05 11:02:17 +0000 | [diff] [blame] | 167 | default: "" |
sourabh_sourabh | 55164b2 | 2023-09-26 12:11:42 +0100 | [diff] [blame] | 168 | example: 'my-module-set-tag' |
Ruslan Kashapov | 9f52f60 | 2021-01-22 12:53:01 +0200 | [diff] [blame] | 169 | |
niamhcore | 66017b4 | 2021-10-19 11:07:02 +0100 | [diff] [blame] | 170 | #Response Schemas |
lukegleeson | d5bda88 | 2022-03-02 14:32:47 +0000 | [diff] [blame] | 171 | RestModuleReference: |
puthuparambil.aditya | d000733 | 2021-12-08 18:53:39 +0000 | [diff] [blame] | 172 | 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 | |
emaclee | e1f73e2 | 2022-06-17 17:42:56 +0100 | [diff] [blame] | 182 | 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; |
egernug | 9426ae8 | 2023-06-21 11:16:02 +0100 | [diff] [blame] | 197 | namespace 'org:onap:ccsdk:sample'; |
emaclee | e1f73e2 | 2022-06-17 17:42:56 +0100 | [diff] [blame] | 198 | prefix book-store; |
egernug | 9426ae8 | 2023-06-21 11:16:02 +0100 | [diff] [blame] | 199 | revision '2020-09-15' { |
emaclee | e1f73e2 | 2022-06-17 17:42:56 +0100 | [diff] [blame] | 200 | description |
egernug | 9426ae8 | 2023-06-21 11:16:02 +0100 | [diff] [blame] | 201 | 'Sample Model'; |
emaclee | e1f73e2 | 2022-06-17 17:42:56 +0100 | [diff] [blame] | 202 | } |
| 203 | } |
| 204 | |
kissand | e9ed581 | 2022-05-12 15:59:18 +0200 | [diff] [blame] | 205 | CmHandleQueryParameters: |
JosephKeenan | deac477 | 2022-03-28 12:26:07 +0100 | [diff] [blame] | 206 | type: object |
| 207 | title: Cm Handle query parameters for executing cm handle search |
| 208 | properties: |
kissand | e9ed581 | 2022-05-12 15:59:18 +0200 | [diff] [blame] | 209 | cmHandleQueryParameters: |
| 210 | type: array |
| 211 | items: |
kissand | e9ed581 | 2022-05-12 15:59:18 +0200 | [diff] [blame] | 212 | $ref: '#/components/schemas/ConditionProperties' |
| 213 | conditions: |
| 214 | deprecated: true |
| 215 | type: array |
| 216 | items: |
kissand | e9ed581 | 2022-05-12 15:59:18 +0200 | [diff] [blame] | 217 | $ref: '#/components/schemas/OldConditionProperties' |
| 218 | description: not necessary, it is just for backward compatibility |
lukegleeson | 82a550f | 2022-07-11 10:55:53 +0100 | [diff] [blame] | 219 | |
kissand | e9ed581 | 2022-05-12 15:59:18 +0200 | [diff] [blame] | 220 | 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: |
kissand | e9ed581 | 2022-05-12 15:59:18 +0200 | [diff] [blame] | 238 | $ref: '#/components/schemas/ModuleNameAsJsonObject' |
| 239 | ModuleNameAsJsonObject: |
| 240 | properties: |
| 241 | moduleName: |
| 242 | type: string |
| 243 | example: my-module |
JosephKeenan | deac477 | 2022-03-28 12:26:07 +0100 | [diff] [blame] | 244 | |
DylanB95EST | e557338 | 2022-01-27 17:12:52 +0000 | [diff] [blame] | 245 | 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' |
mpriyank | 4cf4962 | 2022-05-20 15:25:15 +0100 | [diff] [blame] | 254 | state: |
lukegleeson | 78062a1 | 2022-06-02 10:56:43 +0100 | [diff] [blame] | 255 | $ref: '#/components/schemas/CmHandleCompositeState' |
emaclee | e24f5e8 | 2023-09-23 13:46:15 +0100 | [diff] [blame] | 256 | trustLevel: |
| 257 | $ref: '#/components/schemas/CmHandleTrustLevel' |
JvD_Ericsson | e14fe9a | 2024-02-26 13:45:47 +0000 | [diff] [blame] | 258 | 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 |
DylanB95EST | e557338 | 2022-01-27 17:12:52 +0000 | [diff] [blame] | 267 | CmHandlePublicProperties: |
egernug | 477bd46 | 2023-09-21 17:51:21 +0100 | [diff] [blame] | 268 | type: object |
DylanB95EST | e557338 | 2022-01-27 17:12:52 +0000 | [diff] [blame] | 269 | items: |
Toine Siebelink | ad9b701 | 2023-09-20 09:35:10 +0000 | [diff] [blame] | 270 | type: object |
| 271 | additionalProperties: |
| 272 | type: string |
egernug | 477bd46 | 2023-09-21 17:51:21 +0100 | [diff] [blame] | 273 | example: 'Book Type' |
lukegleeson | 78062a1 | 2022-06-02 10:56:43 +0100 | [diff] [blame] | 274 | CmHandleCompositeState: |
mpriyank | 4cf4962 | 2022-05-20 15:25:15 +0100 | [diff] [blame] | 275 | 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' |
emaclee | e24f5e8 | 2023-09-23 13:46:15 +0100 | [diff] [blame] | 290 | CmHandleTrustLevel: |
| 291 | type: string |
| 292 | description: Current trust level of the relevant CM handle ID. |
| 293 | example: COMPLETE |
mpriyank | 4cf4962 | 2022-05-20 15:25:15 +0100 | [diff] [blame] | 294 | |
| 295 | lock-reason: |
| 296 | type: object |
| 297 | properties: |
| 298 | reason: |
| 299 | type: string |
lukegleeson | 4e59684 | 2022-06-28 12:15:33 +0100 | [diff] [blame] | 300 | example: LOCKED_MISBEHAVING |
mpriyank | 4cf4962 | 2022-05-20 15:25:15 +0100 | [diff] [blame] | 301 | details: |
| 302 | type: string |
lukegleeson | 4e59684 | 2022-06-28 12:15:33 +0100 | [diff] [blame] | 303 | example: locked due to failure in module sync |
mpriyank | 4cf4962 | 2022-05-20 15:25:15 +0100 | [diff] [blame] | 304 | |
| 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: |
lukegleeson | 82a550f | 2022-07-11 10:55:53 +0100 | [diff] [blame] | 316 | syncState: |
mpriyank | 4cf4962 | 2022-05-20 15:25:15 +0100 | [diff] [blame] | 317 | type: string |
| 318 | example: NONE_REQUESTED |
| 319 | lastSyncTime: |
| 320 | type: string |
| 321 | example: 2022-12-31T20:30:40.000+0000 |
DylanB95EST | e557338 | 2022-01-27 17:12:52 +0000 | [diff] [blame] | 322 | |
lukegleeson | bed18fd | 2022-05-06 12:02:42 +0100 | [diff] [blame] | 323 | RestOutputCmHandlePublicProperties: |
| 324 | type: object |
| 325 | properties: |
| 326 | publicCmHandleProperties: |
| 327 | $ref: '#/components/schemas/CmHandlePublicProperties' |
| 328 | |
lukegleeson | 78062a1 | 2022-06-02 10:56:43 +0100 | [diff] [blame] | 329 | RestOutputCmHandleCompositeState: |
| 330 | type: object |
| 331 | properties: |
| 332 | state: |
| 333 | $ref: '#/components/schemas/CmHandleCompositeState' |
raviteja.karumuri | 977f7c3 | 2023-06-20 19:10:21 +0100 | [diff] [blame] | 334 | # Data Operation Request Schemas |
| 335 | DataOperationRequest: |
sourabh_sourabh | f232f30 | 2023-05-09 14:34:59 +0100 | [diff] [blame] | 336 | type: object |
raviteja.karumuri | 977f7c3 | 2023-06-20 19:10:21 +0100 | [diff] [blame] | 337 | title: execute data operation for given array of operations |
sourabh_sourabh | f232f30 | 2023-05-09 14:34:59 +0100 | [diff] [blame] | 338 | properties: |
| 339 | operations: |
| 340 | type: array |
| 341 | items: |
raviteja.karumuri | 977f7c3 | 2023-06-20 19:10:21 +0100 | [diff] [blame] | 342 | $ref: '#/components/schemas/DataOperationDefinition' |
| 343 | description: contains group of data operation requests |
| 344 | DataOperationDefinition: |
sourabh_sourabh | f232f30 | 2023-05-09 14:34:59 +0100 | [diff] [blame] | 345 | 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 |
ToineSiebelink | 693cfdd | 2024-04-09 18:39:51 +0100 | [diff] [blame] | 369 | description: targeted cm handles, maximum of 50 supported. If this limit is exceeded the request wil be refused. |
egernug | 9426ae8 | 2023-06-21 11:16:02 +0100 | [diff] [blame] | 370 | example: [ "da310eecdb8d44c2acc0ddaae01174b1","c748c58f8e0b438f9fd1f28370b17d47" ] |
lukegleeson | 78062a1 | 2022-06-02 10:56:43 +0100 | [diff] [blame] | 371 | |
emaclee | 844cab3 | 2021-12-01 09:42:37 +0000 | [diff] [blame] | 372 | examples: |
| 373 | dataSampleRequest: |
bmiklos | bbaf501 | 2022-08-25 18:28:16 +0200 | [diff] [blame] | 374 | 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: |
emaclee | 844cab3 | 2021-12-01 09:42:37 +0000 | [diff] [blame] | 383 | - authors: |
| 384 | - Iain M. Banks |
emaclee | 844cab3 | 2021-12-01 09:42:37 +0000 | [diff] [blame] | 385 | - Ursula K. Le Guin |
bmiklos | bbaf501 | 2022-08-25 18:28:16 +0200 | [diff] [blame] | 386 | - code: '02' |
| 387 | name: kids |
| 388 | books: |
emaclee | 844cab3 | 2021-12-01 09:42:37 +0000 | [diff] [blame] | 389 | - authors: |
| 390 | - Philip Pullman |
| 391 | |
tragait | ecd7f5e | 2022-01-13 13:15:14 +0000 | [diff] [blame] | 392 | 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 | |
emaclee | 844cab3 | 2021-12-01 09:42:37 +0000 | [diff] [blame] | 436 | dataSampleResponse: |
bmiklos | bbaf501 | 2022-08-25 18:28:16 +0200 | [diff] [blame] | 437 | 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 |
niamhcore | 66017b4 | 2021-10-19 11:07:02 +0100 | [diff] [blame] | 453 | |
lukegleeson | 82a550f | 2022-07-11 10:55:53 +0100 | [diff] [blame] | 454 | 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 Kashapov | 9f52f60 | 2021-01-22 12:53:01 +0200 | [diff] [blame] | 499 | parameters: |
Hanif Kukkalli | 83e318f | 2021-02-23 12:26:39 +0100 | [diff] [blame] | 500 | cmHandleInPath: |
| 501 | name: cm-handle |
| 502 | in: path |
tragait | 34a94b9 | 2021-03-30 12:02:27 +0100 | [diff] [blame] | 503 | 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] | 504 | required: true |
| 505 | schema: |
| 506 | type: string |
emaclee | 844cab3 | 2021-12-01 09:42:37 +0000 | [diff] [blame] | 507 | example: my-cm-handle |
mpriyank | 45308e0 | 2024-08-27 16:08:31 +0100 | [diff] [blame] | 508 | 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 |
halil.cakal | 04280e2 | 2024-01-23 10:05:36 +0000 | [diff] [blame] | 516 | moduleNameInQuery: |
| 517 | name: module-name |
| 518 | in: query |
| 519 | description: Filter for a module name.This is an optional parameter |
| 520 | required: false |
| 521 | schema: |
| 522 | type: string |
| 523 | example: my-module |
| 524 | revisionInQuery: |
| 525 | name: revision |
| 526 | in: query |
| 527 | description: Filter for a module revision.This is an optional parameter and ignored when no module name is supplied |
| 528 | required: false |
| 529 | schema: |
| 530 | type: string |
| 531 | example: 2024-01-22 |
DylanB95EST | 6ddbe4a | 2022-07-19 11:36:10 +0100 | [diff] [blame] | 532 | dataSyncEnabled: |
| 533 | name: dataSyncEnabled |
| 534 | in: query |
| 535 | description: Is used to enable or disable the data synchronization flag |
| 536 | required: true |
| 537 | schema: |
| 538 | type: boolean |
| 539 | example: true |
Hanif Kukkalli | 83e318f | 2021-02-23 12:26:39 +0100 | [diff] [blame] | 540 | xpathInQuery: |
| 541 | name: xpath |
| 542 | in: query |
| 543 | description: xpath |
| 544 | required: false |
| 545 | schema: |
| 546 | type: string |
| 547 | default: / |
Ruslan Kashapov | 1baf48d | 2021-05-07 10:46:27 +0300 | [diff] [blame] | 548 | requiredXpathInQuery: |
| 549 | name: xpath |
| 550 | in: query |
| 551 | description: xpath |
| 552 | required: true |
| 553 | schema: |
| 554 | type: string |
Hanif Kukkalli | 83e318f | 2021-02-23 12:26:39 +0100 | [diff] [blame] | 555 | includeDescendantsOptionInQuery: |
| 556 | name: include-descendants |
| 557 | in: query |
bmiklos | bbaf501 | 2022-08-25 18:28:16 +0200 | [diff] [blame] | 558 | description: Determines if descendants are included in response |
Hanif Kukkalli | 83e318f | 2021-02-23 12:26:39 +0100 | [diff] [blame] | 559 | required: false |
| 560 | schema: |
| 561 | type: boolean |
| 562 | default: false |
niamhcore | b5d573b | 2021-02-26 10:13:48 +0000 | [diff] [blame] | 563 | cpsPathInQuery: |
| 564 | name: cps-path |
| 565 | in: query |
lukegleeson | 20e7a73 | 2022-10-20 10:14:00 +0100 | [diff] [blame] | 566 | 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] | 567 | required: false |
| 568 | schema: |
| 569 | type: string |
| 570 | default: / |
lukegleeson | 20e7a73 | 2022-10-20 10:14:00 +0100 | [diff] [blame] | 571 | examples: |
| 572 | container cps path: |
| 573 | value: //bookstore |
| 574 | list attributes cps path: |
| 575 | value: //categories[@code=1] |
emaclee | d340047 | 2022-08-19 09:26:39 +0100 | [diff] [blame] | 576 | dmiPluginIdentifierInQuery: |
| 577 | name: dmi-plugin-identifier |
| 578 | in: query |
| 579 | description: dmi-plugin-identifier |
| 580 | required: true |
| 581 | schema: |
| 582 | type: string |
| 583 | example: my-dmi-plugin |
niamhcore | fd2e6dd | 2021-09-29 16:43:35 +0100 | [diff] [blame] | 584 | resourceIdentifierInQuery: |
tragait | c328551 | 2021-08-16 15:12:36 +0100 | [diff] [blame] | 585 | name: resourceIdentifier |
niamhcore | fd2e6dd | 2021-09-29 16:43:35 +0100 | [diff] [blame] | 586 | in: query |
| 587 | 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] | 588 | required: true |
| 589 | schema: |
| 590 | type: string |
niamhcore | fd2e6dd | 2021-09-29 16:43:35 +0100 | [diff] [blame] | 591 | examples: |
emaclee | 844cab3 | 2021-12-01 09:42:37 +0000 | [diff] [blame] | 592 | sample 1: |
niamhcore | fd2e6dd | 2021-09-29 16:43:35 +0100 | [diff] [blame] | 593 | value: |
emaclee | 844cab3 | 2021-12-01 09:42:37 +0000 | [diff] [blame] | 594 | resourceIdentifier: \shops\bookstore |
| 595 | sample 2: |
niamhcore | fd2e6dd | 2021-09-29 16:43:35 +0100 | [diff] [blame] | 596 | value: |
emaclee | 844cab3 | 2021-12-01 09:42:37 +0000 | [diff] [blame] | 597 | resourceIdentifier: \shops\bookstore\categories[@code=1] |
| 598 | sample 3: |
niamhcore | fd2e6dd | 2021-09-29 16:43:35 +0100 | [diff] [blame] | 599 | value: |
emaclee | 844cab3 | 2021-12-01 09:42:37 +0000 | [diff] [blame] | 600 | resourceIdentifier: parent=shops,child=bookstore |
tragait | abdff1b | 2021-10-06 11:04:18 +0100 | [diff] [blame] | 601 | optionsParamInQuery: |
| 602 | name: options |
tragait | c328551 | 2021-08-16 15:12:36 +0100 | [diff] [blame] | 603 | in: query |
emaclee | 844cab3 | 2021-12-01 09:42:37 +0000 | [diff] [blame] | 604 | 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] | 605 | required: false |
| 606 | schema: |
| 607 | type: string |
tragait | abdff1b | 2021-10-06 11:04:18 +0100 | [diff] [blame] | 608 | examples: |
emaclee | 844cab3 | 2021-12-01 09:42:37 +0000 | [diff] [blame] | 609 | sample 1: |
tragait | abdff1b | 2021-10-06 11:04:18 +0100 | [diff] [blame] | 610 | value: |
emaclee | 844cab3 | 2021-12-01 09:42:37 +0000 | [diff] [blame] | 611 | options: (depth=3) |
| 612 | sample 2: |
tragait | abdff1b | 2021-10-06 11:04:18 +0100 | [diff] [blame] | 613 | value: |
emaclee | 844cab3 | 2021-12-01 09:42:37 +0000 | [diff] [blame] | 614 | options: (fields=book) |
| 615 | sample 3: |
tragait | abdff1b | 2021-10-06 11:04:18 +0100 | [diff] [blame] | 616 | value: |
emaclee | 844cab3 | 2021-12-01 09:42:37 +0000 | [diff] [blame] | 617 | options: (depth=2,fields=book/authors) |
sourabh_sourabh | 1f2e66e | 2022-02-16 21:53:41 +0530 | [diff] [blame] | 618 | topicParamInQuery: |
| 619 | name: topic |
| 620 | in: query |
| 621 | description: topic parameter in query. |
| 622 | required: false |
| 623 | schema: |
| 624 | type: string |
sourabh_sourabh | 1f2e66e | 2022-02-16 21:53:41 +0530 | [diff] [blame] | 625 | examples: |
| 626 | sample 1: |
| 627 | value: |
| 628 | topic: my-topic-name |
sourabh_sourabh | 4031d43 | 2023-03-27 14:36:20 +0100 | [diff] [blame] | 629 | requiredTopicParamInQuery: |
| 630 | name: topic |
| 631 | in: query |
| 632 | description: mandatory topic parameter in query. |
| 633 | required: true |
| 634 | schema: |
| 635 | type: string |
sourabh_sourabh | 4031d43 | 2023-03-27 14:36:20 +0100 | [diff] [blame] | 636 | examples: |
| 637 | sample 1: |
| 638 | value: |
| 639 | topic: my-topic-name |
tragait | c584bf2 | 2021-08-20 15:45:58 +0100 | [diff] [blame] | 640 | contentParamInHeader: |
| 641 | name: Content-Type |
| 642 | in: header |
| 643 | required: false |
| 644 | description: Content parameter for request, if content parameter is null, default value is application/json. |
| 645 | schema: |
| 646 | type: string |
| 647 | default: application/json |
emaclee | 844cab3 | 2021-12-01 09:42:37 +0000 | [diff] [blame] | 648 | example: application/yang-data+json |
danielhanrahan | c5222a7 | 2024-02-28 16:05:07 +0000 | [diff] [blame] | 649 | authorizationParamInHeader: |
| 650 | name: Authorization |
| 651 | in: header |
| 652 | required: false |
| 653 | description: Authorization parameter for request. |
| 654 | schema: |
| 655 | type: string |
bmiklos | bbaf501 | 2022-08-25 18:28:16 +0200 | [diff] [blame] | 656 | datastoreName: |
lukegleeson | 20e7a73 | 2022-10-20 10:14:00 +0100 | [diff] [blame] | 657 | name: datastore-name |
bmiklos | bbaf501 | 2022-08-25 18:28:16 +0200 | [diff] [blame] | 658 | in: path |
| 659 | description: The type of the requested data |
| 660 | required: true |
| 661 | schema: |
| 662 | type: string |
seanbeirne | afc6055 | 2023-01-30 16:53:37 +0000 | [diff] [blame] | 663 | example: ncmp-datastore:running |
Ruslan Kashapov | 9f52f60 | 2021-01-22 12:53:01 +0200 | [diff] [blame] | 664 | |
| 665 | responses: |
| 666 | NotFound: |
| 667 | description: The specified resource was not found |
| 668 | content: |
| 669 | application/json: |
| 670 | schema: |
| 671 | $ref: '#/components/schemas/ErrorMessage' |
emaclee | 844cab3 | 2021-12-01 09:42:37 +0000 | [diff] [blame] | 672 | example: |
| 673 | status: 400 |
| 674 | message: Not found error message |
| 675 | details: Not found error details |
Ruslan Kashapov | 9f52f60 | 2021-01-22 12:53:01 +0200 | [diff] [blame] | 676 | Unauthorized: |
| 677 | description: Unauthorized |
| 678 | content: |
| 679 | application/json: |
| 680 | schema: |
| 681 | $ref: '#/components/schemas/ErrorMessage' |
emaclee | 844cab3 | 2021-12-01 09:42:37 +0000 | [diff] [blame] | 682 | example: |
| 683 | status: 401 |
| 684 | message: Unauthorized error message |
| 685 | details: Unauthorized error details |
Ruslan Kashapov | 9f52f60 | 2021-01-22 12:53:01 +0200 | [diff] [blame] | 686 | Forbidden: |
| 687 | description: Forbidden |
| 688 | content: |
| 689 | application/json: |
| 690 | schema: |
| 691 | $ref: '#/components/schemas/ErrorMessage' |
emaclee | 844cab3 | 2021-12-01 09:42:37 +0000 | [diff] [blame] | 692 | example: |
bmiklos | bbaf501 | 2022-08-25 18:28:16 +0200 | [diff] [blame] | 693 | status: 403 |
| 694 | message: Forbidden error message |
| 695 | details: Forbidden error details |
Ruslan Kashapov | 9f52f60 | 2021-01-22 12:53:01 +0200 | [diff] [blame] | 696 | BadRequest: |
| 697 | description: Bad Request |
| 698 | content: |
| 699 | application/json: |
| 700 | schema: |
| 701 | $ref: '#/components/schemas/ErrorMessage' |
emaclee | 844cab3 | 2021-12-01 09:42:37 +0000 | [diff] [blame] | 702 | example: |
ToineSiebelink | 693cfdd | 2024-04-09 18:39:51 +0100 | [diff] [blame] | 703 | status: 400 |
bmiklos | bbaf501 | 2022-08-25 18:28:16 +0200 | [diff] [blame] | 704 | message: Bad request error message |
| 705 | details: Bad request error details |
Ruslan Kashapov | 9f52f60 | 2021-01-22 12:53:01 +0200 | [diff] [blame] | 706 | Conflict: |
| 707 | description: Conflict |
| 708 | content: |
| 709 | application/json: |
| 710 | schema: |
| 711 | $ref: '#/components/schemas/ErrorMessage' |
emaclee | 844cab3 | 2021-12-01 09:42:37 +0000 | [diff] [blame] | 712 | example: |
ToineSiebelink | 693cfdd | 2024-04-09 18:39:51 +0100 | [diff] [blame] | 713 | status: 409 |
bmiklos | bbaf501 | 2022-08-25 18:28:16 +0200 | [diff] [blame] | 714 | message: Conflict error message |
| 715 | details: Conflict error details |
ToineSiebelink | 693cfdd | 2024-04-09 18:39:51 +0100 | [diff] [blame] | 716 | PayloadTooLarge: |
| 717 | description: The request is larger than the server is willing or able to process |
| 718 | content: |
| 719 | application/json: |
| 720 | schema: |
| 721 | $ref: '#/components/schemas/ErrorMessage' |
| 722 | example: |
| 723 | status: 413 |
| 724 | message: Payload Too Large error message |
| 725 | details: Payload Too Large error details |
Hanif Kukkalli | 83e318f | 2021-02-23 12:26:39 +0100 | [diff] [blame] | 726 | NotImplemented: |
| 727 | description: The given path has not been implemented |
| 728 | content: |
| 729 | application/json: |
| 730 | schema: |
| 731 | $ref: '#/components/schemas/ErrorMessage' |
emaclee | 844cab3 | 2021-12-01 09:42:37 +0000 | [diff] [blame] | 732 | example: |
bmiklos | bbaf501 | 2022-08-25 18:28:16 +0200 | [diff] [blame] | 733 | status: 501 |
| 734 | message: Not implemented error message |
| 735 | details: Not implemented error details |
Ruslan Kashapov | 9f52f60 | 2021-01-22 12:53:01 +0200 | [diff] [blame] | 736 | Ok: |
| 737 | description: OK |
| 738 | content: |
| 739 | application/json: |
| 740 | schema: |
| 741 | type: object |
| 742 | Created: |
| 743 | description: Created |
bmiklos | bbaf501 | 2022-08-25 18:28:16 +0200 | [diff] [blame] | 744 | content: { } |
Ruslan Kashapov | 9f52f60 | 2021-01-22 12:53:01 +0200 | [diff] [blame] | 745 | NoContent: |
| 746 | description: No Content |
bmiklos | bbaf501 | 2022-08-25 18:28:16 +0200 | [diff] [blame] | 747 | content: { } |
JosephKeenan | e0873dd | 2022-01-28 11:22:22 +0000 | [diff] [blame] | 748 | InternalServerError: |
| 749 | description: Internal Server Error |
| 750 | content: |
| 751 | application/json: |
| 752 | schema: |
| 753 | $ref: "#/components/schemas/ErrorMessage" |
| 754 | example: |
| 755 | status: 500 |
| 756 | message: Internal Server Error |
| 757 | details: Internal Server Error occurred |
mpriyank | 93afc1e | 2022-03-28 15:47:47 +0530 | [diff] [blame] | 758 | BadGateway: |
| 759 | description: Bad Gateway |
| 760 | content: |
| 761 | application/json: |
| 762 | schema: |
| 763 | $ref: "#/components/schemas/DmiErrorMessage" |
| 764 | example: |
| 765 | message: "Bad Gateway Error Message NCMP" |
| 766 | dmi-response: |
| 767 | http-code: 400 |
| 768 | body: "Bad Request" |