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