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