puthuparambil.aditya | 39450c5 | 2022-03-29 11:22:31 +0100 | [diff] [blame] | 1 | # ============LICENSE_START======================================================= |
leventecsanyi | fff80c0 | 2023-04-05 11:42:30 +0200 | [diff] [blame] | 2 | # Copyright (C) 2021-2023 Nordix Foundation |
puthuparambil.aditya | 39450c5 | 2022-03-29 11:22:31 +0100 | [diff] [blame] | 3 | # Modifications Copyright (C) 2022 Bell Canada |
| 4 | # ================================================================================ |
| 5 | # Licensed under the Apache License, Version 2.0 (the "License"); |
| 6 | # you may not use this file except in compliance with the License. |
| 7 | # You may obtain a copy of the License at |
| 8 | # |
| 9 | # http://www.apache.org/licenses/LICENSE-2.0 |
| 10 | # |
| 11 | # Unless required by applicable law or agreed to in writing, software |
| 12 | # distributed under the License is distributed on an "AS IS" BASIS, |
| 13 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 14 | # See the License for the specific language governing permissions and |
| 15 | # limitations under the License. |
| 16 | # |
| 17 | # SPDX-License-Identifier: Apache-2.0 |
| 18 | # ============LICENSE_END========================================================= |
| 19 | |
DylanB95EST | b5a2383 | 2021-06-02 19:45:46 +0100 | [diff] [blame] | 20 | components: |
JosephKeenan | dfe45ff | 2022-10-26 15:17:59 +0100 | [diff] [blame] | 21 | securitySchemes: |
| 22 | basicAuth: |
| 23 | type: http |
| 24 | scheme: basic |
DylanB95EST | b5a2383 | 2021-06-02 19:45:46 +0100 | [diff] [blame] | 25 | schemas: |
| 26 | ErrorMessage: |
| 27 | type: object |
| 28 | title: Error |
| 29 | properties: |
| 30 | status: |
| 31 | type: string |
| 32 | message: |
| 33 | type: string |
| 34 | details: |
| 35 | type: string |
| 36 | |
tragait | 2270d76 | 2021-07-08 15:42:19 +0100 | [diff] [blame] | 37 | CmHandles: |
| 38 | type: object |
| 39 | properties: |
| 40 | cmHandles: |
| 41 | type: array |
lukegleeson | 996152a | 2021-11-30 17:06:03 +0000 | [diff] [blame] | 42 | example: ["cmHandleId1","cmHandleId2","cmHandleId3"] |
tragait | 2270d76 | 2021-07-08 15:42:19 +0100 | [diff] [blame] | 43 | items: |
| 44 | type: string |
| 45 | |
niamhcore | acc0f8b | 2021-10-06 09:49:12 +0100 | [diff] [blame] | 46 | ModuleReferencesRequest: |
niamhcore | 3139ece | 2021-07-30 16:25:16 +0100 | [diff] [blame] | 47 | type: object |
| 48 | properties: |
leventecsanyi | 8db6a30 | 2024-04-02 14:37:57 +0200 | [diff] [blame] | 49 | moduleSetTag: |
| 50 | type: string |
niamhcore | acc0f8b | 2021-10-06 09:49:12 +0100 | [diff] [blame] | 51 | cmHandleProperties: |
| 52 | $ref: '#/components/schemas/cmHandleProperties' |
| 53 | |
raviteja.karumuri | 9784384 | 2023-06-19 16:43:32 +0100 | [diff] [blame] | 54 | ResourceDataOperationRequests: |
raviteja.karumuri | 7272f11 | 2023-05-24 18:23:38 +0100 | [diff] [blame] | 55 | type: array |
| 56 | items: |
| 57 | type: object |
raviteja.karumuri | 9784384 | 2023-06-19 16:43:32 +0100 | [diff] [blame] | 58 | title: 'DataOperationRequest' |
raviteja.karumuri | 7272f11 | 2023-05-24 18:23:38 +0100 | [diff] [blame] | 59 | properties: |
| 60 | operation: |
| 61 | type: string |
| 62 | example: 'read' |
| 63 | operationId: |
| 64 | description: 'it is recommended that the operationId is unique within the scope of the request' |
| 65 | type: string |
| 66 | example: '12' |
| 67 | datastore: |
| 68 | type: string |
| 69 | example: 'ncmp-datastore:passthrough-operational' |
| 70 | options: |
| 71 | type: string |
| 72 | example: 'some option' |
| 73 | resourceIdentifier: |
| 74 | type: string |
| 75 | example: 'some resource identifier' |
| 76 | cmHandles: |
| 77 | type: array |
| 78 | items: |
david.mcweeney | 3cadc19 | 2024-05-08 12:37:02 +0100 | [diff] [blame] | 79 | $ref: '#/components/schemas/dmiOperationCmHandle' |
raviteja.karumuri | 7272f11 | 2023-05-24 18:23:38 +0100 | [diff] [blame] | 80 | required: |
| 81 | - operation |
| 82 | - operationId |
| 83 | - datastore |
| 84 | - cmHandles |
| 85 | |
david.mcweeney | 3cadc19 | 2024-05-08 12:37:02 +0100 | [diff] [blame] | 86 | dmiOperationCmHandle: |
raviteja.karumuri | 7272f11 | 2023-05-24 18:23:38 +0100 | [diff] [blame] | 87 | type: object |
david.mcweeney | 3cadc19 | 2024-05-08 12:37:02 +0100 | [diff] [blame] | 88 | title: 'CmHandle with properties for DMI' |
raviteja.karumuri | 7272f11 | 2023-05-24 18:23:38 +0100 | [diff] [blame] | 89 | properties: |
| 90 | id: |
| 91 | type: string |
| 92 | cmHandleProperties: |
| 93 | additionalProperties: |
| 94 | type: string |
david.mcweeney | 3cadc19 | 2024-05-08 12:37:02 +0100 | [diff] [blame] | 95 | moduleSetTag: |
| 96 | type: string |
| 97 | example: module-set-tag1 |
raviteja.karumuri | 7272f11 | 2023-05-24 18:23:38 +0100 | [diff] [blame] | 98 | example: |
| 99 | id: cmHandle123 |
| 100 | cmHandleProperties: |
| 101 | myProp: some value |
| 102 | otherProp: other value |
david.mcweeney | 3cadc19 | 2024-05-08 12:37:02 +0100 | [diff] [blame] | 103 | moduleSetTag: module-set-tag1 |
raviteja.karumuri | 7272f11 | 2023-05-24 18:23:38 +0100 | [diff] [blame] | 104 | |
niamhcore | acc0f8b | 2021-10-06 09:49:12 +0100 | [diff] [blame] | 105 | ModuleResourcesReadRequest: |
| 106 | type: object |
| 107 | properties: |
david.mcweeney | ee0c3be | 2024-04-30 10:24:41 +0100 | [diff] [blame] | 108 | moduleSetTag: |
| 109 | type: string |
| 110 | description: Module set tag of the given cm handle |
| 111 | example: Module-set-tag-1 |
| 112 | required: false |
niamhcore | 3139ece | 2021-07-30 16:25:16 +0100 | [diff] [blame] | 113 | data: |
| 114 | type: object |
| 115 | properties: |
| 116 | modules: |
| 117 | type: array |
| 118 | items: |
| 119 | type: object |
| 120 | properties: |
| 121 | name: |
lukegleeson | 996152a | 2021-11-30 17:06:03 +0000 | [diff] [blame] | 122 | type: string |
| 123 | example: my-name |
niamhcore | 3139ece | 2021-07-30 16:25:16 +0100 | [diff] [blame] | 124 | revision: |
lukegleeson | 996152a | 2021-11-30 17:06:03 +0000 | [diff] [blame] | 125 | type: string |
| 126 | example: my-revision |
niamhcore | 3139ece | 2021-07-30 16:25:16 +0100 | [diff] [blame] | 127 | cmHandleProperties: |
tragait | 907e378 | 2021-10-04 16:02:57 +0100 | [diff] [blame] | 128 | $ref: '#/components/schemas/cmHandleProperties' |
niamhcore | 3139ece | 2021-07-30 16:25:16 +0100 | [diff] [blame] | 129 | |
niamhcore | 577efb0 | 2021-08-11 16:13:53 +0100 | [diff] [blame] | 130 | ModuleSet: |
| 131 | type: object |
| 132 | properties: |
| 133 | schemas: |
| 134 | type: array |
| 135 | items: |
| 136 | type: object |
| 137 | properties: |
| 138 | moduleName: |
| 139 | type: string |
lukegleeson | 996152a | 2021-11-30 17:06:03 +0000 | [diff] [blame] | 140 | example: my-module-name |
niamhcore | 577efb0 | 2021-08-11 16:13:53 +0100 | [diff] [blame] | 141 | revision: |
lukegleeson | 996152a | 2021-11-30 17:06:03 +0000 | [diff] [blame] | 142 | type: string |
| 143 | example: my-revision |
niamhcore | 577efb0 | 2021-08-11 16:13:53 +0100 | [diff] [blame] | 144 | namespace: |
| 145 | type: string |
lukegleeson | 996152a | 2021-11-30 17:06:03 +0000 | [diff] [blame] | 146 | example: my-namespace |
niamhcore | 577efb0 | 2021-08-11 16:13:53 +0100 | [diff] [blame] | 147 | |
niamhcore | 4f43188 | 2021-09-21 16:08:29 +0100 | [diff] [blame] | 148 | YangResources: |
| 149 | type: array |
| 150 | items: |
niamhcore | 4f43188 | 2021-09-21 16:08:29 +0100 | [diff] [blame] | 151 | $ref: '#/components/schemas/YangResource' |
| 152 | |
| 153 | YangResource: |
| 154 | properties: |
| 155 | yangSource: |
| 156 | type: string |
lukegleeson | 996152a | 2021-11-30 17:06:03 +0000 | [diff] [blame] | 157 | example: my-yang-source |
niamhcore | 4f43188 | 2021-09-21 16:08:29 +0100 | [diff] [blame] | 158 | moduleName: |
| 159 | type: string |
lukegleeson | 996152a | 2021-11-30 17:06:03 +0000 | [diff] [blame] | 160 | example: my-module-name |
niamhcore | 4f43188 | 2021-09-21 16:08:29 +0100 | [diff] [blame] | 161 | revision: |
lukegleeson | 996152a | 2021-11-30 17:06:03 +0000 | [diff] [blame] | 162 | type: string |
| 163 | example: my-revision |
niamhcore | 4f43188 | 2021-09-21 16:08:29 +0100 | [diff] [blame] | 164 | |
DylanB95EST | 5fe0dae | 2021-11-09 13:54:35 +0000 | [diff] [blame] | 165 | DataAccessRequest: |
tragait | e398be5 | 2021-08-06 17:01:31 +0100 | [diff] [blame] | 166 | type: object |
| 167 | properties: |
| 168 | operation: |
| 169 | type: string |
tragait | dffff5d | 2022-01-10 12:16:25 +0000 | [diff] [blame] | 170 | enum: [ read, create, update, patch, delete ] |
lukegleeson | 996152a | 2021-11-30 17:06:03 +0000 | [diff] [blame] | 171 | example: read |
niamhcore | 79e41e0 | 2021-08-20 11:24:06 +0100 | [diff] [blame] | 172 | dataType: |
| 173 | type: string |
lukegleeson | 996152a | 2021-11-30 17:06:03 +0000 | [diff] [blame] | 174 | example: my-data-type |
niamhcore | 79e41e0 | 2021-08-20 11:24:06 +0100 | [diff] [blame] | 175 | data: |
tragait | fa11e9c | 2021-09-14 13:47:52 +0100 | [diff] [blame] | 176 | type: string |
lukegleeson | 996152a | 2021-11-30 17:06:03 +0000 | [diff] [blame] | 177 | example: my-data |
niamhcore | 79e41e0 | 2021-08-20 11:24:06 +0100 | [diff] [blame] | 178 | cmHandleProperties: |
tragait | 907e378 | 2021-10-04 16:02:57 +0100 | [diff] [blame] | 179 | $ref: '#/components/schemas/cmHandleProperties' |
mpriyank | 78e1d06 | 2022-04-08 15:12:22 +0530 | [diff] [blame] | 180 | requestId: |
| 181 | type: string |
JosephKeenan | 2cd8b98 | 2022-05-23 15:43:05 +0100 | [diff] [blame] | 182 | example: 3a9ce55c-e365-4dc9-8da3-a06f07cbc6d7 |
david.mcweeney | efe96fa | 2024-05-28 10:45:02 +0100 | [diff] [blame] | 183 | moduleSetTag: |
| 184 | type: string |
| 185 | example: module-set-tag1 |
tragait | 907e378 | 2021-10-04 16:02:57 +0100 | [diff] [blame] | 186 | |
| 187 | cmHandleProperties: |
| 188 | type: object |
egernug | 1118bed | 2023-06-28 10:57:53 +0100 | [diff] [blame] | 189 | nullable: true |
tragait | 907e378 | 2021-10-04 16:02:57 +0100 | [diff] [blame] | 190 | additionalProperties: |
| 191 | type: string |
| 192 | example: {"prop1":"value1","prop2":"value2"} |
niamhcore | 79e41e0 | 2021-08-20 11:24:06 +0100 | [diff] [blame] | 193 | |
DylanB95EST | b5a2383 | 2021-06-02 19:45:46 +0100 | [diff] [blame] | 194 | responses: |
lukegleeson | 996152a | 2021-11-30 17:06:03 +0000 | [diff] [blame] | 195 | NoContent: |
| 196 | description: No Content |
| 197 | content: {} |
raviteja.karumuri | 7272f11 | 2023-05-24 18:23:38 +0100 | [diff] [blame] | 198 | |
DylanB95EST | b5a2383 | 2021-06-02 19:45:46 +0100 | [diff] [blame] | 199 | BadRequest: |
| 200 | description: Bad Request |
| 201 | content: |
| 202 | application/json: |
| 203 | schema: |
| 204 | $ref: '#/components/schemas/ErrorMessage' |
lukegleeson | 996152a | 2021-11-30 17:06:03 +0000 | [diff] [blame] | 205 | example: |
| 206 | status: 400 |
| 207 | message: Bad Request |
| 208 | details: The provided request is not valid |
raviteja.karumuri | 7272f11 | 2023-05-24 18:23:38 +0100 | [diff] [blame] | 209 | |
lukegleeson | 996152a | 2021-11-30 17:06:03 +0000 | [diff] [blame] | 210 | NotFound: |
| 211 | description: The specified resource was not found |
| 212 | content: |
| 213 | application/json: |
| 214 | schema: |
| 215 | $ref: '#/components/schemas/ErrorMessage' |
| 216 | example: |
| 217 | status: 404 |
| 218 | message: Resource Not Found |
| 219 | details: The requested resource is not found |
raviteja.karumuri | 7272f11 | 2023-05-24 18:23:38 +0100 | [diff] [blame] | 220 | |
puthuparambil.aditya | bdcccb5 | 2022-01-20 15:26:52 +0000 | [diff] [blame] | 221 | ServerError: |
| 222 | description: Internal Server Error |
DylanB95EST | b5a2383 | 2021-06-02 19:45:46 +0100 | [diff] [blame] | 223 | content: |
| 224 | application/json: |
| 225 | schema: |
| 226 | $ref: '#/components/schemas/ErrorMessage' |
lukegleeson | 996152a | 2021-11-30 17:06:03 +0000 | [diff] [blame] | 227 | example: |
puthuparambil.aditya | bdcccb5 | 2022-01-20 15:26:52 +0000 | [diff] [blame] | 228 | status: 500 |
| 229 | message: Internal Server Error |
| 230 | details: Internal Server Error occured |
raviteja.karumuri | 7272f11 | 2023-05-24 18:23:38 +0100 | [diff] [blame] | 231 | |
leventecsanyi | fff80c0 | 2023-04-05 11:42:30 +0200 | [diff] [blame] | 232 | NotImplemented: |
| 233 | description: Not Implemented |
| 234 | content: |
| 235 | application/json: |
| 236 | schema: |
| 237 | $ref: '#/components/schemas/ErrorMessage' |
| 238 | example: |
| 239 | status: 501 |
| 240 | message: Not Implemented |
| 241 | details: Method Not Implemented |
raviteja.karumuri | 7272f11 | 2023-05-24 18:23:38 +0100 | [diff] [blame] | 242 | |
niamhcore | 3139ece | 2021-07-30 16:25:16 +0100 | [diff] [blame] | 243 | parameters: |
| 244 | cmHandleInPath: |
| 245 | name: cmHandle |
| 246 | in: path |
| 247 | description: The identifier for a network function, network element, subnetwork, or any other cm object by managed Network CM Proxy |
| 248 | required: true |
| 249 | schema: |
tragait | f01d567 | 2021-08-19 11:19:54 +0100 | [diff] [blame] | 250 | type: string |
lukegleeson | 996152a | 2021-11-30 17:06:03 +0000 | [diff] [blame] | 251 | example: my-cm-handle |
tragait | f01d567 | 2021-08-19 11:19:54 +0100 | [diff] [blame] | 252 | |
niamhcore | 2fb3f66 | 2021-09-29 15:32:32 +0100 | [diff] [blame] | 253 | resourceIdentifierInQuery: |
tragait | f01d567 | 2021-08-19 11:19:54 +0100 | [diff] [blame] | 254 | name: resourceIdentifier |
niamhcore | 2fb3f66 | 2021-09-29 15:32:32 +0100 | [diff] [blame] | 255 | in: query |
tragait | f01d567 | 2021-08-19 11:19:54 +0100 | [diff] [blame] | 256 | description: Resource identifier to get/set the resource data |
| 257 | required: true |
| 258 | schema: |
| 259 | type: string |
lukegleeson | 996152a | 2021-11-30 17:06:03 +0000 | [diff] [blame] | 260 | example: my-schema:my-node |
tragait | f01d567 | 2021-08-19 11:19:54 +0100 | [diff] [blame] | 261 | |
tragait | 907e378 | 2021-10-04 16:02:57 +0100 | [diff] [blame] | 262 | optionsParamInQuery: |
| 263 | name: options |
tragait | f01d567 | 2021-08-19 11:19:54 +0100 | [diff] [blame] | 264 | in: query |
tragait | 907e378 | 2021-10-04 16:02:57 +0100 | [diff] [blame] | 265 | description: options parameter in query, it is mandatory to wrap key(s)=value(s) in parenthesis'()'. |
tragait | f01d567 | 2021-08-19 11:19:54 +0100 | [diff] [blame] | 266 | required: false |
| 267 | schema: |
| 268 | type: string |
tragait | 907e378 | 2021-10-04 16:02:57 +0100 | [diff] [blame] | 269 | examples: |
| 270 | sample1: |
| 271 | value: |
| 272 | options: (key1=value1,key2=value2) |
| 273 | sample2: |
| 274 | value: |
| 275 | options: (key1=value1,key2=value1/value2) |
| 276 | sample3: |
| 277 | value: |
mpriyank | 78e1d06 | 2022-04-08 15:12:22 +0530 | [diff] [blame] | 278 | options: (key1=10,key2=value2,key3=val31,val32) |
raviteja.karumuri | 7272f11 | 2023-05-24 18:23:38 +0100 | [diff] [blame] | 279 | |
mpriyank | 78e1d06 | 2022-04-08 15:12:22 +0530 | [diff] [blame] | 280 | topicParamInQuery: |
JosephKeenan | 2cd8b98 | 2022-05-23 15:43:05 +0100 | [diff] [blame] | 281 | name: topic |
mpriyank | 78e1d06 | 2022-04-08 15:12:22 +0530 | [diff] [blame] | 282 | in: query |
mpriyank | 7b7297c | 2022-09-14 10:47:45 +0100 | [diff] [blame] | 283 | description: topic name passed from client(NCMP). |
mpriyank | 78e1d06 | 2022-04-08 15:12:22 +0530 | [diff] [blame] | 284 | required: false |
| 285 | schema: |
| 286 | type: string |
mpriyank | 78e1d06 | 2022-04-08 15:12:22 +0530 | [diff] [blame] | 287 | examples: |
| 288 | sample1: |
JosephKeenan | 2cd8b98 | 2022-05-23 15:43:05 +0100 | [diff] [blame] | 289 | value: my-topic-name |
raviteja.karumuri | 7272f11 | 2023-05-24 18:23:38 +0100 | [diff] [blame] | 290 | |
| 291 | requiredTopicParamInQuery: |
| 292 | name: topic |
| 293 | in: query |
| 294 | description: mandatory topic name passed from client(NCMP). |
| 295 | required: true |
| 296 | schema: |
| 297 | type: string |
raviteja.karumuri | 7272f11 | 2023-05-24 18:23:38 +0100 | [diff] [blame] | 298 | examples: |
| 299 | sample1: |
| 300 | value: |
| 301 | topic: my-topic-name |
| 302 | |
| 303 | requiredRequestIdParamInQuery: |
| 304 | name: requestId |
| 305 | in: query |
| 306 | description: request Id generated by NCMP and sent as an acknowledgement for the client request the same including here. |
| 307 | required: true |
| 308 | schema: |
| 309 | type: string |
raviteja.karumuri | 7272f11 | 2023-05-24 18:23:38 +0100 | [diff] [blame] | 310 | examples: |
| 311 | sample1: |
| 312 | value: 4753fc1f-7de2-449a-b306-a6204b5370b3 |
| 313 | |
sourabh_sourabh | e648aba | 2023-03-13 15:49:35 +0000 | [diff] [blame] | 314 | datastoreName: |
| 315 | name: datastore-name |
| 316 | in: path |
| 317 | description: The type of the requested data |
| 318 | required: true |
| 319 | schema: |
| 320 | type: string |
| 321 | example: ncmp-datastore:passthrough-operational or ncmp-datastore:passthrough-running |
JosephKeenan | dfe45ff | 2022-10-26 15:17:59 +0100 | [diff] [blame] | 322 | |
| 323 | security: |
ToineSiebelink | 190c30c | 2024-05-22 11:54:23 +0100 | [diff] [blame] | 324 | - basicAuth: [] |