shivasubedi | 8df61a9 | 2021-06-16 14:43:18 +0100 | [diff] [blame] | 1 | # ============LICENSE_START======================================================= |
puthuparambil.aditya | cc17ae5 | 2022-02-25 13:24:03 +0000 | [diff] [blame] | 2 | # Copyright (c) 2021-2022 Bell Canada. |
egernug | fb09b7c | 2023-10-12 13:33:08 +0100 | [diff] [blame^] | 3 | # Modifications Copyright (C) 2021-2023 Nordix Foundation |
rajesh.kumar | cc21a02 | 2022-12-06 11:47:24 +0000 | [diff] [blame] | 4 | # Modifications Copyright (C) 2022-2023 TechMahindra Ltd. |
Michal Jagiello | 6ce84d9 | 2022-12-13 07:40:19 +0000 | [diff] [blame] | 5 | # Modifications Copyright (C) 2022 Deutsche Telekom AG |
shivasubedi | 8df61a9 | 2021-06-16 14:43:18 +0100 | [diff] [blame] | 6 | # ================================================================================ |
| 7 | # Licensed under the Apache License, Version 2.0 (the "License"); |
| 8 | # you may not use this file except in compliance with the License. |
| 9 | # You may obtain a copy of the License at |
| 10 | # |
| 11 | # http://www.apache.org/licenses/LICENSE-2.0 |
| 12 | # |
| 13 | # Unless required by applicable law or agreed to in writing, software |
| 14 | # distributed under the License is distributed on an "AS IS" BASIS, |
| 15 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 16 | # See the License for the specific language governing permissions and |
| 17 | # limitations under the License. |
Renu Kumari | 4d52001 | 2021-08-30 11:50:43 -0400 | [diff] [blame] | 18 | # |
| 19 | # SPDX-License-Identifier: Apache-2.0 |
shivasubedi | 8df61a9 | 2021-06-16 14:43:18 +0100 | [diff] [blame] | 20 | # ============LICENSE_END========================================================= |
| 21 | |
puthuparambil.aditya | 001e773 | 2021-01-13 12:06:20 +0000 | [diff] [blame] | 22 | components: |
| 23 | schemas: |
JosephKeenan | c6865f3 | 2021-06-08 13:16:37 +0100 | [diff] [blame] | 24 | |
| 25 | AnchorDetails: |
| 26 | type: object |
| 27 | title: Anchor details by anchor Name |
| 28 | properties: |
| 29 | name: |
| 30 | type: string |
puthuparambil.aditya | 5d8b241 | 2021-11-24 13:35:10 +0000 | [diff] [blame] | 31 | example: my-anchor |
JosephKeenan | c6865f3 | 2021-06-08 13:16:37 +0100 | [diff] [blame] | 32 | dataspaceName: |
| 33 | type: string |
puthuparambil.aditya | 5d8b241 | 2021-11-24 13:35:10 +0000 | [diff] [blame] | 34 | example: my-dataspace |
JosephKeenan | c6865f3 | 2021-06-08 13:16:37 +0100 | [diff] [blame] | 35 | schemaSetName: |
| 36 | type: string |
puthuparambil.aditya | 5d8b241 | 2021-11-24 13:35:10 +0000 | [diff] [blame] | 37 | example: my-schema-set |
JosephKeenan | c6865f3 | 2021-06-08 13:16:37 +0100 | [diff] [blame] | 38 | |
rajesh.kumar | cec0cb7 | 2022-09-06 11:47:18 +0000 | [diff] [blame] | 39 | DataspaceDetails: |
| 40 | type: object |
| 41 | title: Dataspace details by dataspace Name |
| 42 | properties: |
| 43 | name: |
| 44 | type: string |
| 45 | example: my-dataspace |
| 46 | |
puthuparambil.aditya | 001e773 | 2021-01-13 12:06:20 +0000 | [diff] [blame] | 47 | ErrorMessage: |
| 48 | type: object |
| 49 | title: Error |
| 50 | properties: |
| 51 | status: |
| 52 | type: string |
| 53 | message: |
| 54 | type: string |
| 55 | details: |
| 56 | type: string |
Rishi.Chail | 6d13f16 | 2021-01-26 05:58:39 +0000 | [diff] [blame] | 57 | |
puthuparambil.aditya | 001e773 | 2021-01-13 12:06:20 +0000 | [diff] [blame] | 58 | MultipartFile: |
Renu Kumari | 4d52001 | 2021-08-30 11:50:43 -0400 | [diff] [blame] | 59 | type: object |
puthuparambil.aditya | 001e773 | 2021-01-13 12:06:20 +0000 | [diff] [blame] | 60 | required: |
| 61 | - file |
| 62 | properties: |
Renu Kumari | 4d52001 | 2021-08-30 11:50:43 -0400 | [diff] [blame] | 63 | file: |
puthuparambil.aditya | 001e773 | 2021-01-13 12:06:20 +0000 | [diff] [blame] | 64 | type: string |
| 65 | description: multipartFile |
| 66 | format: binary |
| 67 | |
JosephKeenan | c6865f3 | 2021-06-08 13:16:37 +0100 | [diff] [blame] | 68 | ModuleReferences: |
| 69 | type: object |
| 70 | title: Module reference object |
| 71 | properties: |
| 72 | name: |
| 73 | type: string |
puthuparambil.aditya | 5d8b241 | 2021-11-24 13:35:10 +0000 | [diff] [blame] | 74 | example: my-module-reference-name |
JosephKeenan | c6865f3 | 2021-06-08 13:16:37 +0100 | [diff] [blame] | 75 | namespace: |
| 76 | type: string |
puthuparambil.aditya | 5d8b241 | 2021-11-24 13:35:10 +0000 | [diff] [blame] | 77 | example: my-module-reference-namespace |
JosephKeenan | c6865f3 | 2021-06-08 13:16:37 +0100 | [diff] [blame] | 78 | revision: |
| 79 | type: string |
puthuparambil.aditya | 5d8b241 | 2021-11-24 13:35:10 +0000 | [diff] [blame] | 80 | example: my-module-reference-revision |
JosephKeenan | c6865f3 | 2021-06-08 13:16:37 +0100 | [diff] [blame] | 81 | |
| 82 | SchemaSetDetails: |
| 83 | type: object |
| 84 | title: Schema set details by dataspace and schemasetName |
lukegleeson | d5bda88 | 2022-03-02 14:32:47 +0000 | [diff] [blame] | 85 | required: |
| 86 | - "moduleReferences" |
JosephKeenan | c6865f3 | 2021-06-08 13:16:37 +0100 | [diff] [blame] | 87 | properties: |
| 88 | dataspaceName: |
| 89 | type: string |
puthuparambil.aditya | 5d8b241 | 2021-11-24 13:35:10 +0000 | [diff] [blame] | 90 | example: my-dataspace |
JosephKeenan | c6865f3 | 2021-06-08 13:16:37 +0100 | [diff] [blame] | 91 | moduleReferences: |
| 92 | type: array |
| 93 | items: |
| 94 | $ref: '#/components/schemas/ModuleReferences' |
| 95 | name: |
| 96 | type: string |
puthuparambil.aditya | 5d8b241 | 2021-11-24 13:35:10 +0000 | [diff] [blame] | 97 | example: my-schema-set |
| 98 | |
| 99 | examples: |
puthuparambil.aditya | cc17ae5 | 2022-02-25 13:24:03 +0000 | [diff] [blame] | 100 | dataSample: |
puthuparambil.aditya | 5d8b241 | 2021-11-24 13:35:10 +0000 | [diff] [blame] | 101 | value: |
| 102 | test:bookstore: |
| 103 | bookstore-name: Chapters |
| 104 | categories: |
| 105 | - code: 01 |
| 106 | name: SciFi |
| 107 | - code: 02 |
| 108 | name: kids |
Michal Jagiello | 6ce84d9 | 2022-12-13 07:40:19 +0000 | [diff] [blame] | 109 | dataSampleXml: |
| 110 | value: |
| 111 | <stores xmlns="urn:ietf:params:xml:ns:netconf:base:1.0"> |
| 112 | <bookstore xmlns="org:onap:ccsdk:sample"> |
| 113 | <bookstore-name>Chapters</bookstore-name> |
| 114 | <categories> |
| 115 | <code>1</code> |
| 116 | <name>SciFi</name> |
| 117 | </categories> |
| 118 | </bookstore> |
| 119 | </stores> |
rajesh.kumar | a317890 | 2022-12-14 14:27:29 +0000 | [diff] [blame] | 120 | dataSampleAcrossAnchors: |
| 121 | value: |
| 122 | - anchorName: bookstore1 |
| 123 | dataNode: |
| 124 | test:bookstore: |
| 125 | bookstore-name: Chapters |
| 126 | categories: |
| 127 | - code: 01 |
| 128 | name: SciFi |
| 129 | - code: 02 |
| 130 | name: kids |
| 131 | - anchorName: bookstore2 |
| 132 | dataNode: |
| 133 | test:bookstore: |
| 134 | bookstore-name: Chapters |
| 135 | categories: |
| 136 | - code: 01 |
| 137 | name: SciFi |
| 138 | - code: 02 |
| 139 | name: kids |
puthuparambil.aditya | 5d8b241 | 2021-11-24 13:35:10 +0000 | [diff] [blame] | 140 | |
puthuparambil.aditya | 001e773 | 2021-01-13 12:06:20 +0000 | [diff] [blame] | 141 | parameters: |
| 142 | dataspaceNameInQuery: |
| 143 | name: dataspace-name |
| 144 | in: query |
| 145 | description: dataspace-name |
| 146 | required: true |
| 147 | schema: |
| 148 | type: string |
puthuparambil.aditya | 5d8b241 | 2021-11-24 13:35:10 +0000 | [diff] [blame] | 149 | example: my-dataspace |
puthuparambil.aditya | 001e773 | 2021-01-13 12:06:20 +0000 | [diff] [blame] | 150 | dataspaceNameInPath: |
| 151 | name: dataspace-name |
| 152 | in: path |
| 153 | description: dataspace-name |
| 154 | required: true |
| 155 | schema: |
| 156 | type: string |
puthuparambil.aditya | 5d8b241 | 2021-11-24 13:35:10 +0000 | [diff] [blame] | 157 | example: my-dataspace |
puthuparambil.aditya | 001e773 | 2021-01-13 12:06:20 +0000 | [diff] [blame] | 158 | anchorNameInPath: |
| 159 | name: anchor-name |
| 160 | in: path |
| 161 | description: anchor-name |
| 162 | required: true |
| 163 | schema: |
| 164 | type: string |
puthuparambil.aditya | 5d8b241 | 2021-11-24 13:35:10 +0000 | [diff] [blame] | 165 | example: my-anchor |
puthuparambil.aditya | 001e773 | 2021-01-13 12:06:20 +0000 | [diff] [blame] | 166 | schemaSetNameInQuery: |
| 167 | name: schema-set-name |
| 168 | in: query |
| 169 | description: schema-set-name |
| 170 | required: true |
| 171 | schema: |
| 172 | type: string |
puthuparambil.aditya | 5d8b241 | 2021-11-24 13:35:10 +0000 | [diff] [blame] | 173 | example: my-schema-set |
puthuparambil.aditya | 001e773 | 2021-01-13 12:06:20 +0000 | [diff] [blame] | 174 | schemaSetNameInPath: |
| 175 | name: schema-set-name |
| 176 | in: path |
| 177 | description: schema-set-name |
| 178 | required: true |
| 179 | schema: |
| 180 | type: string |
puthuparambil.aditya | 5d8b241 | 2021-11-24 13:35:10 +0000 | [diff] [blame] | 181 | example: my-schema-set |
puthuparambil.aditya | 001e773 | 2021-01-13 12:06:20 +0000 | [diff] [blame] | 182 | anchorNameInQuery: |
| 183 | name: anchor-name |
| 184 | in: query |
| 185 | description: anchor-name |
| 186 | required: true |
| 187 | schema: |
| 188 | type: string |
puthuparambil.aditya | 5d8b241 | 2021-11-24 13:35:10 +0000 | [diff] [blame] | 189 | example: my-anchor |
Ruslan Kashapov | 2098392 | 2021-02-01 10:47:25 +0200 | [diff] [blame] | 190 | xpathInQuery: |
Ruslan Kashapov | 24c72db | 2021-02-09 17:25:18 +0200 | [diff] [blame] | 191 | name: xpath |
Ruslan Kashapov | 2098392 | 2021-02-01 10:47:25 +0200 | [diff] [blame] | 192 | in: query |
emaclee | 50e000f | 2023-04-18 14:49:24 +0100 | [diff] [blame] | 193 | description: For more details on xpath, please refer https://docs.onap.org/projects/onap-cps/en/latest/xpath.html |
Ruslan Kashapov | 2098392 | 2021-02-01 10:47:25 +0200 | [diff] [blame] | 194 | required: false |
| 195 | schema: |
| 196 | type: string |
| 197 | default: / |
puthuparambil.aditya | 5d8b241 | 2021-11-24 13:35:10 +0000 | [diff] [blame] | 198 | examples: |
| 199 | container xpath: |
| 200 | value: /shops/bookstore |
| 201 | list attributes xpath: |
| 202 | value: /shops/bookstore/categories[@code=1] |
Ruslan Kashapov | 0905ac1 | 2021-05-05 13:11:50 +0300 | [diff] [blame] | 203 | requiredXpathInQuery: |
| 204 | name: xpath |
| 205 | in: query |
emaclee | 50e000f | 2023-04-18 14:49:24 +0100 | [diff] [blame] | 206 | description: For more details on xpath, please refer https://docs.onap.org/projects/onap-cps/en/latest/xpath.html |
Ruslan Kashapov | 0905ac1 | 2021-05-05 13:11:50 +0300 | [diff] [blame] | 207 | required: true |
| 208 | schema: |
| 209 | type: string |
puthuparambil.aditya | 5d8b241 | 2021-11-24 13:35:10 +0000 | [diff] [blame] | 210 | examples: |
| 211 | container xpath: |
| 212 | value: /shops/bookstore |
| 213 | list attributes xpath: |
| 214 | value: /shops/bookstore/categories[@code=1] |
niamhcore | 53f07ac | 2021-02-19 13:14:40 +0000 | [diff] [blame] | 215 | cpsPathInQuery: |
| 216 | name: cps-path |
| 217 | in: query |
puthuparambil.aditya | 5d8b241 | 2021-11-24 13:35:10 +0000 | [diff] [blame] | 218 | description: For more details on cps path, please refer https://docs.onap.org/projects/onap-cps/en/latest/cps-path.html |
niamhcore | 53f07ac | 2021-02-19 13:14:40 +0000 | [diff] [blame] | 219 | required: false |
| 220 | schema: |
| 221 | type: string |
| 222 | default: / |
puthuparambil.aditya | 5d8b241 | 2021-11-24 13:35:10 +0000 | [diff] [blame] | 223 | examples: |
| 224 | container cps path: |
| 225 | value: //bookstore |
| 226 | list attributes cps path: |
| 227 | value: //categories[@code=1] |
Ruslan Kashapov | 2098392 | 2021-02-01 10:47:25 +0200 | [diff] [blame] | 228 | includeDescendantsOptionInQuery: |
| 229 | name: include-descendants |
| 230 | in: query |
| 231 | description: include-descendants |
| 232 | required: false |
| 233 | schema: |
| 234 | type: boolean |
| 235 | default: false |
puthuparambil.aditya | 5d8b241 | 2021-11-24 13:35:10 +0000 | [diff] [blame] | 236 | example: false |
aditya puthuparambil | 673c6d9 | 2021-08-24 17:44:34 +0100 | [diff] [blame] | 237 | observedTimestampInQuery: |
| 238 | name: observed-timestamp |
| 239 | in: query |
| 240 | description: observed-timestamp |
| 241 | required: false |
| 242 | schema: |
| 243 | type: string |
| 244 | example: '2021-03-21T00:10:34.030-0100' |
rajesh.kumar | 897686f | 2022-12-14 08:13:29 +0000 | [diff] [blame] | 245 | apiVersionInPath: |
| 246 | name: apiVersion |
| 247 | in: path |
| 248 | description: apiVersion |
| 249 | required: true |
| 250 | schema: |
| 251 | type: string |
| 252 | enum: [v1, v2] |
| 253 | default: v2 |
Michal Jagiello | 6ce84d9 | 2022-12-13 07:40:19 +0000 | [diff] [blame] | 254 | contentTypeHeader: |
| 255 | name: Content-Type |
| 256 | in: header |
| 257 | description: Content type header |
| 258 | schema: |
| 259 | type: string |
| 260 | example: 'application/json' |
| 261 | required: true |
rajesh.kumar | cc21a02 | 2022-12-06 11:47:24 +0000 | [diff] [blame] | 262 | descendantsInQuery: |
| 263 | name: descendants |
| 264 | in: query |
Rudrangi Anupriya | 8126f03 | 2023-07-28 14:28:54 +0530 | [diff] [blame] | 265 | description: Number of descendants to query. Allowed values are 'none', 'all', 'direct', 1 (for direct), -1 (for all), 0 (for none) and any positive number. |
rajesh.kumar | cc21a02 | 2022-12-06 11:47:24 +0000 | [diff] [blame] | 266 | required: false |
| 267 | schema: |
| 268 | type: string |
| 269 | default: none |
| 270 | example: 3 |
rajesh.kumar | f248b5d | 2023-04-25 11:58:35 +0530 | [diff] [blame] | 271 | pageIndexInQuery: |
| 272 | name: pageIndex |
| 273 | in: query |
| 274 | description: page index for pagination over anchors. It must be greater then zero if provided. |
| 275 | required: false |
| 276 | schema: |
| 277 | type: integer |
| 278 | example: 1 |
| 279 | pageSizeInQuery: |
| 280 | name: pageSize |
| 281 | in: query |
| 282 | description: number of records (anchors) per page. It must be greater then zero if provided. |
| 283 | required: false |
| 284 | schema: |
| 285 | type: integer |
| 286 | example: 10 |
puthuparambil.aditya | 001e773 | 2021-01-13 12:06:20 +0000 | [diff] [blame] | 287 | |
| 288 | responses: |
| 289 | NotFound: |
| 290 | description: The specified resource was not found |
| 291 | content: |
| 292 | application/json: |
| 293 | schema: |
| 294 | $ref: '#/components/schemas/ErrorMessage' |
puthuparambil.aditya | 5d8b241 | 2021-11-24 13:35:10 +0000 | [diff] [blame] | 295 | example: |
| 296 | status: 404 |
| 297 | message: Resource Not Found |
| 298 | details: The requested resource is not found |
puthuparambil.aditya | 001e773 | 2021-01-13 12:06:20 +0000 | [diff] [blame] | 299 | Unauthorized: |
| 300 | description: Unauthorized |
| 301 | content: |
| 302 | application/json: |
| 303 | schema: |
| 304 | $ref: '#/components/schemas/ErrorMessage' |
puthuparambil.aditya | 5d8b241 | 2021-11-24 13:35:10 +0000 | [diff] [blame] | 305 | example: |
| 306 | status: 401 |
| 307 | message: Unauthorized request |
| 308 | details: This request is unauthorized |
puthuparambil.aditya | 001e773 | 2021-01-13 12:06:20 +0000 | [diff] [blame] | 309 | Forbidden: |
| 310 | description: Forbidden |
| 311 | content: |
| 312 | application/json: |
| 313 | schema: |
| 314 | $ref: '#/components/schemas/ErrorMessage' |
puthuparambil.aditya | 5d8b241 | 2021-11-24 13:35:10 +0000 | [diff] [blame] | 315 | example: |
| 316 | status: 403 |
| 317 | message: Request Forbidden |
| 318 | details: This request is forbidden |
puthuparambil.aditya | 001e773 | 2021-01-13 12:06:20 +0000 | [diff] [blame] | 319 | BadRequest: |
| 320 | description: Bad Request |
| 321 | content: |
| 322 | application/json: |
| 323 | schema: |
| 324 | $ref: '#/components/schemas/ErrorMessage' |
puthuparambil.aditya | 5d8b241 | 2021-11-24 13:35:10 +0000 | [diff] [blame] | 325 | example: |
| 326 | status: 400 |
| 327 | message: Bad Request |
| 328 | details: The provided request is not valid |
Ruslan Kashapov | dce4e31 | 2021-01-11 15:34:10 +0200 | [diff] [blame] | 329 | Conflict: |
| 330 | description: Conflict |
| 331 | content: |
| 332 | application/json: |
| 333 | schema: |
| 334 | $ref: '#/components/schemas/ErrorMessage' |
puthuparambil.aditya | 5d8b241 | 2021-11-24 13:35:10 +0000 | [diff] [blame] | 335 | example: |
| 336 | status: 409 |
| 337 | message: Conflicting request |
| 338 | details: The request cannot be processed as the resource is in use. |
puthuparambil.aditya | 001e773 | 2021-01-13 12:06:20 +0000 | [diff] [blame] | 339 | Ok: |
| 340 | description: OK |
| 341 | content: |
| 342 | application/json: |
| 343 | schema: |
| 344 | type: object |
puthuparambil.aditya | 5d8b241 | 2021-11-24 13:35:10 +0000 | [diff] [blame] | 345 | examples: |
puthuparambil.aditya | cc17ae5 | 2022-02-25 13:24:03 +0000 | [diff] [blame] | 346 | dataSample: |
puthuparambil.aditya | 5d8b241 | 2021-11-24 13:35:10 +0000 | [diff] [blame] | 347 | value: "" |
puthuparambil.aditya | 001e773 | 2021-01-13 12:06:20 +0000 | [diff] [blame] | 348 | Created: |
| 349 | description: Created |
| 350 | content: |
| 351 | text/plain: |
| 352 | schema: |
| 353 | type: string |
puthuparambil.aditya | 5d8b241 | 2021-11-24 13:35:10 +0000 | [diff] [blame] | 354 | example: my-resource |
rajesh.kumar | 897686f | 2022-12-14 08:13:29 +0000 | [diff] [blame] | 355 | CreatedV2: |
| 356 | description: Created without response body |
JosephKeenan | 909a850 | 2022-01-28 10:02:24 +0000 | [diff] [blame] | 357 | InternalServerError: |
| 358 | description: Internal Server Error |
| 359 | content: |
| 360 | application/json: |
| 361 | schema: |
| 362 | $ref: "#/components/schemas/ErrorMessage" |
| 363 | example: |
| 364 | status: 500 |
| 365 | message: Internal Server Error |
| 366 | details: Internal Server Error occurred |
puthuparambil.aditya | 001e773 | 2021-01-13 12:06:20 +0000 | [diff] [blame] | 367 | NoContent: |
| 368 | description: No Content |
| 369 | content: {} |