puthuparambil.aditya | 39450c5 | 2022-03-29 11:22:31 +0100 | [diff] [blame] | 1 | # ============LICENSE_START======================================================= |
JosephKeenan | 2cd8b98 | 2022-05-23 15:43:05 +0100 | [diff] [blame] | 2 | # Copyright (C) 2021-2022 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 | |
| 52 | ModuleResourcesReadRequest: |
| 53 | type: object |
| 54 | properties: |
niamhcore | 3139ece | 2021-07-30 16:25:16 +0100 | [diff] [blame] | 55 | data: |
| 56 | type: object |
| 57 | properties: |
| 58 | modules: |
| 59 | type: array |
| 60 | items: |
| 61 | type: object |
| 62 | properties: |
| 63 | name: |
lukegleeson | 996152a | 2021-11-30 17:06:03 +0000 | [diff] [blame] | 64 | type: string |
| 65 | example: my-name |
niamhcore | 3139ece | 2021-07-30 16:25:16 +0100 | [diff] [blame] | 66 | revision: |
lukegleeson | 996152a | 2021-11-30 17:06:03 +0000 | [diff] [blame] | 67 | type: string |
| 68 | example: my-revision |
niamhcore | 3139ece | 2021-07-30 16:25:16 +0100 | [diff] [blame] | 69 | cmHandleProperties: |
tragait | 907e378 | 2021-10-04 16:02:57 +0100 | [diff] [blame] | 70 | $ref: '#/components/schemas/cmHandleProperties' |
niamhcore | 3139ece | 2021-07-30 16:25:16 +0100 | [diff] [blame] | 71 | |
niamhcore | 577efb0 | 2021-08-11 16:13:53 +0100 | [diff] [blame] | 72 | ModuleSet: |
| 73 | type: object |
| 74 | properties: |
| 75 | schemas: |
| 76 | type: array |
| 77 | items: |
| 78 | type: object |
| 79 | properties: |
| 80 | moduleName: |
| 81 | type: string |
lukegleeson | 996152a | 2021-11-30 17:06:03 +0000 | [diff] [blame] | 82 | example: my-module-name |
niamhcore | 577efb0 | 2021-08-11 16:13:53 +0100 | [diff] [blame] | 83 | revision: |
lukegleeson | 996152a | 2021-11-30 17:06:03 +0000 | [diff] [blame] | 84 | type: string |
| 85 | example: my-revision |
niamhcore | 577efb0 | 2021-08-11 16:13:53 +0100 | [diff] [blame] | 86 | namespace: |
| 87 | type: string |
lukegleeson | 996152a | 2021-11-30 17:06:03 +0000 | [diff] [blame] | 88 | example: my-namespace |
niamhcore | 577efb0 | 2021-08-11 16:13:53 +0100 | [diff] [blame] | 89 | |
niamhcore | 4f43188 | 2021-09-21 16:08:29 +0100 | [diff] [blame] | 90 | YangResources: |
| 91 | type: array |
| 92 | items: |
| 93 | type: object |
| 94 | $ref: '#/components/schemas/YangResource' |
| 95 | |
| 96 | YangResource: |
| 97 | properties: |
| 98 | yangSource: |
| 99 | type: string |
lukegleeson | 996152a | 2021-11-30 17:06:03 +0000 | [diff] [blame] | 100 | example: my-yang-source |
niamhcore | 4f43188 | 2021-09-21 16:08:29 +0100 | [diff] [blame] | 101 | moduleName: |
| 102 | type: string |
lukegleeson | 996152a | 2021-11-30 17:06:03 +0000 | [diff] [blame] | 103 | example: my-module-name |
niamhcore | 4f43188 | 2021-09-21 16:08:29 +0100 | [diff] [blame] | 104 | revision: |
lukegleeson | 996152a | 2021-11-30 17:06:03 +0000 | [diff] [blame] | 105 | type: string |
| 106 | example: my-revision |
niamhcore | 4f43188 | 2021-09-21 16:08:29 +0100 | [diff] [blame] | 107 | |
DylanB95EST | 5fe0dae | 2021-11-09 13:54:35 +0000 | [diff] [blame] | 108 | DataAccessRequest: |
tragait | e398be5 | 2021-08-06 17:01:31 +0100 | [diff] [blame] | 109 | type: object |
| 110 | properties: |
| 111 | operation: |
| 112 | type: string |
tragait | dffff5d | 2022-01-10 12:16:25 +0000 | [diff] [blame] | 113 | enum: [ read, create, update, patch, delete ] |
lukegleeson | 996152a | 2021-11-30 17:06:03 +0000 | [diff] [blame] | 114 | example: read |
niamhcore | 79e41e0 | 2021-08-20 11:24:06 +0100 | [diff] [blame] | 115 | dataType: |
| 116 | type: string |
lukegleeson | 996152a | 2021-11-30 17:06:03 +0000 | [diff] [blame] | 117 | example: my-data-type |
niamhcore | 79e41e0 | 2021-08-20 11:24:06 +0100 | [diff] [blame] | 118 | data: |
tragait | fa11e9c | 2021-09-14 13:47:52 +0100 | [diff] [blame] | 119 | type: string |
lukegleeson | 996152a | 2021-11-30 17:06:03 +0000 | [diff] [blame] | 120 | example: my-data |
niamhcore | 79e41e0 | 2021-08-20 11:24:06 +0100 | [diff] [blame] | 121 | cmHandleProperties: |
tragait | 907e378 | 2021-10-04 16:02:57 +0100 | [diff] [blame] | 122 | $ref: '#/components/schemas/cmHandleProperties' |
mpriyank | 78e1d06 | 2022-04-08 15:12:22 +0530 | [diff] [blame] | 123 | requestId: |
| 124 | type: string |
JosephKeenan | 2cd8b98 | 2022-05-23 15:43:05 +0100 | [diff] [blame] | 125 | example: 3a9ce55c-e365-4dc9-8da3-a06f07cbc6d7 |
tragait | 907e378 | 2021-10-04 16:02:57 +0100 | [diff] [blame] | 126 | |
| 127 | cmHandleProperties: |
| 128 | type: object |
| 129 | additionalProperties: |
| 130 | type: string |
| 131 | example: {"prop1":"value1","prop2":"value2"} |
niamhcore | 79e41e0 | 2021-08-20 11:24:06 +0100 | [diff] [blame] | 132 | |
DylanB95EST | b5a2383 | 2021-06-02 19:45:46 +0100 | [diff] [blame] | 133 | responses: |
lukegleeson | 996152a | 2021-11-30 17:06:03 +0000 | [diff] [blame] | 134 | NoContent: |
| 135 | description: No Content |
| 136 | content: {} |
DylanB95EST | b5a2383 | 2021-06-02 19:45:46 +0100 | [diff] [blame] | 137 | BadRequest: |
| 138 | description: Bad Request |
| 139 | content: |
| 140 | application/json: |
| 141 | schema: |
| 142 | $ref: '#/components/schemas/ErrorMessage' |
lukegleeson | 996152a | 2021-11-30 17:06:03 +0000 | [diff] [blame] | 143 | example: |
| 144 | status: 400 |
| 145 | message: Bad Request |
| 146 | details: The provided request is not valid |
lukegleeson | 996152a | 2021-11-30 17:06:03 +0000 | [diff] [blame] | 147 | NotFound: |
| 148 | description: The specified resource was not found |
| 149 | content: |
| 150 | application/json: |
| 151 | schema: |
| 152 | $ref: '#/components/schemas/ErrorMessage' |
| 153 | example: |
| 154 | status: 404 |
| 155 | message: Resource Not Found |
| 156 | details: The requested resource is not found |
puthuparambil.aditya | bdcccb5 | 2022-01-20 15:26:52 +0000 | [diff] [blame] | 157 | ServerError: |
| 158 | description: Internal Server Error |
DylanB95EST | b5a2383 | 2021-06-02 19:45:46 +0100 | [diff] [blame] | 159 | content: |
| 160 | application/json: |
| 161 | schema: |
| 162 | $ref: '#/components/schemas/ErrorMessage' |
lukegleeson | 996152a | 2021-11-30 17:06:03 +0000 | [diff] [blame] | 163 | example: |
puthuparambil.aditya | bdcccb5 | 2022-01-20 15:26:52 +0000 | [diff] [blame] | 164 | status: 500 |
| 165 | message: Internal Server Error |
| 166 | details: Internal Server Error occured |
niamhcore | 3139ece | 2021-07-30 16:25:16 +0100 | [diff] [blame] | 167 | parameters: |
| 168 | cmHandleInPath: |
| 169 | name: cmHandle |
| 170 | in: path |
| 171 | description: The identifier for a network function, network element, subnetwork, or any other cm object by managed Network CM Proxy |
| 172 | required: true |
| 173 | schema: |
tragait | f01d567 | 2021-08-19 11:19:54 +0100 | [diff] [blame] | 174 | type: string |
lukegleeson | 996152a | 2021-11-30 17:06:03 +0000 | [diff] [blame] | 175 | example: my-cm-handle |
tragait | f01d567 | 2021-08-19 11:19:54 +0100 | [diff] [blame] | 176 | |
niamhcore | 2fb3f66 | 2021-09-29 15:32:32 +0100 | [diff] [blame] | 177 | resourceIdentifierInQuery: |
tragait | f01d567 | 2021-08-19 11:19:54 +0100 | [diff] [blame] | 178 | name: resourceIdentifier |
niamhcore | 2fb3f66 | 2021-09-29 15:32:32 +0100 | [diff] [blame] | 179 | in: query |
tragait | f01d567 | 2021-08-19 11:19:54 +0100 | [diff] [blame] | 180 | description: Resource identifier to get/set the resource data |
| 181 | required: true |
niamhcore | 2fb3f66 | 2021-09-29 15:32:32 +0100 | [diff] [blame] | 182 | allowReserved: true |
tragait | f01d567 | 2021-08-19 11:19:54 +0100 | [diff] [blame] | 183 | schema: |
| 184 | type: string |
lukegleeson | 996152a | 2021-11-30 17:06:03 +0000 | [diff] [blame] | 185 | example: my-schema:my-node |
tragait | f01d567 | 2021-08-19 11:19:54 +0100 | [diff] [blame] | 186 | |
tragait | 907e378 | 2021-10-04 16:02:57 +0100 | [diff] [blame] | 187 | optionsParamInQuery: |
| 188 | name: options |
tragait | f01d567 | 2021-08-19 11:19:54 +0100 | [diff] [blame] | 189 | in: query |
tragait | 907e378 | 2021-10-04 16:02:57 +0100 | [diff] [blame] | 190 | 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] | 191 | required: false |
| 192 | schema: |
| 193 | type: string |
tragait | 907e378 | 2021-10-04 16:02:57 +0100 | [diff] [blame] | 194 | allowReserved: true |
| 195 | examples: |
| 196 | sample1: |
| 197 | value: |
| 198 | options: (key1=value1,key2=value2) |
| 199 | sample2: |
| 200 | value: |
| 201 | options: (key1=value1,key2=value1/value2) |
| 202 | sample3: |
| 203 | value: |
mpriyank | 78e1d06 | 2022-04-08 15:12:22 +0530 | [diff] [blame] | 204 | options: (key1=10,key2=value2,key3=val31,val32) |
| 205 | topicParamInQuery: |
JosephKeenan | 2cd8b98 | 2022-05-23 15:43:05 +0100 | [diff] [blame] | 206 | name: topic |
mpriyank | 78e1d06 | 2022-04-08 15:12:22 +0530 | [diff] [blame] | 207 | in: query |
mpriyank | 7b7297c | 2022-09-14 10:47:45 +0100 | [diff] [blame] | 208 | description: topic name passed from client(NCMP). |
mpriyank | 78e1d06 | 2022-04-08 15:12:22 +0530 | [diff] [blame] | 209 | required: false |
| 210 | schema: |
| 211 | type: string |
| 212 | allowReserved: true |
| 213 | examples: |
| 214 | sample1: |
JosephKeenan | 2cd8b98 | 2022-05-23 15:43:05 +0100 | [diff] [blame] | 215 | value: my-topic-name |
sourabh_sourabh | e648aba | 2023-03-13 15:49:35 +0000 | [diff] [blame] | 216 | datastoreName: |
| 217 | name: datastore-name |
| 218 | in: path |
| 219 | description: The type of the requested data |
| 220 | required: true |
| 221 | schema: |
| 222 | type: string |
| 223 | example: ncmp-datastore:passthrough-operational or ncmp-datastore:passthrough-running |
JosephKeenan | dfe45ff | 2022-10-26 15:17:59 +0100 | [diff] [blame] | 224 | |
| 225 | security: |
| 226 | - basicAuth: [] |