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. |
JosephKeenan | 909a850 | 2022-01-28 10:02:24 +0000 | [diff] [blame] | 3 | # Modifications Copyright (C) 2021-2022 Nordix Foundation |
rajesh.kumar | 897686f | 2022-12-14 08:13:29 +0000 | [diff] [blame] | 4 | # Modifications Copyright (C) 2022 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 | |
Rishi.Chail | dacc663 | 2021-01-27 04:27:34 +0000 | [diff] [blame] | 22 | nodeByDataspaceAndAnchor: |
puthuparambil.aditya | 001e773 | 2021-01-13 12:06:20 +0000 | [diff] [blame] | 23 | get: |
Rishi.Chail | 6d13f16 | 2021-01-26 05:58:39 +0000 | [diff] [blame] | 24 | description: Get a node with an option to retrieve all the children for a given anchor and dataspace |
puthuparambil.aditya | 001e773 | 2021-01-13 12:06:20 +0000 | [diff] [blame] | 25 | tags: |
| 26 | - cps-data |
Rishi.Chail | 6d13f16 | 2021-01-26 05:58:39 +0000 | [diff] [blame] | 27 | summary: Get a node |
puthuparambil.aditya | 001e773 | 2021-01-13 12:06:20 +0000 | [diff] [blame] | 28 | operationId: getNodeByDataspaceAndAnchor |
| 29 | parameters: |
rajesh.kumar | 897686f | 2022-12-14 08:13:29 +0000 | [diff] [blame] | 30 | - $ref: 'components.yml#/components/parameters/apiVersionInPath' |
Rishi.Chail | 6d13f16 | 2021-01-26 05:58:39 +0000 | [diff] [blame] | 31 | - $ref: 'components.yml#/components/parameters/dataspaceNameInPath' |
| 32 | - $ref: 'components.yml#/components/parameters/anchorNameInPath' |
| 33 | - $ref: 'components.yml#/components/parameters/xpathInQuery' |
| 34 | - $ref: 'components.yml#/components/parameters/includeDescendantsOptionInQuery' |
puthuparambil.aditya | 001e773 | 2021-01-13 12:06:20 +0000 | [diff] [blame] | 35 | responses: |
Rishi.Chail | 6d13f16 | 2021-01-26 05:58:39 +0000 | [diff] [blame] | 36 | '200': |
JosephKeenan | 2472e61 | 2021-06-23 14:15:52 +0100 | [diff] [blame] | 37 | description: OK |
| 38 | content: |
| 39 | application/json: |
| 40 | schema: |
| 41 | type: object |
puthuparambil.aditya | 5d8b241 | 2021-11-24 13:35:10 +0000 | [diff] [blame] | 42 | examples: |
puthuparambil.aditya | cc17ae5 | 2022-02-25 13:24:03 +0000 | [diff] [blame] | 43 | dataSample: |
| 44 | $ref: 'components.yml#/components/examples/dataSample' |
Rishi.Chail | 6d13f16 | 2021-01-26 05:58:39 +0000 | [diff] [blame] | 45 | '400': |
| 46 | $ref: 'components.yml#/components/responses/BadRequest' |
| 47 | '401': |
| 48 | $ref: 'components.yml#/components/responses/Unauthorized' |
| 49 | '403': |
| 50 | $ref: 'components.yml#/components/responses/Forbidden' |
JosephKeenan | 909a850 | 2022-01-28 10:02:24 +0000 | [diff] [blame] | 51 | '500': |
| 52 | $ref: 'components.yml#/components/responses/InternalServerError' |
puthuparambil.aditya | 001e773 | 2021-01-13 12:06:20 +0000 | [diff] [blame] | 53 | x-codegen-request-body-name: xpath |
| 54 | |
DylanB95EST | a79c9f1 | 2021-10-29 17:33:06 +0100 | [diff] [blame] | 55 | listElementByDataspaceAndAnchor: |
Ruslan Kashapov | 0905ac1 | 2021-05-05 13:11:50 +0300 | [diff] [blame] | 56 | post: |
DylanB95EST | a79c9f1 | 2021-10-29 17:33:06 +0100 | [diff] [blame] | 57 | description: Add list element(s) to a list for a given anchor and dataspace |
Ruslan Kashapov | 0905ac1 | 2021-05-05 13:11:50 +0300 | [diff] [blame] | 58 | tags: |
| 59 | - cps-data |
DylanB95EST | a79c9f1 | 2021-10-29 17:33:06 +0100 | [diff] [blame] | 60 | summary: Add list element(s) |
| 61 | operationId: addListElements |
Ruslan Kashapov | 0905ac1 | 2021-05-05 13:11:50 +0300 | [diff] [blame] | 62 | parameters: |
rajesh.kumar | 897686f | 2022-12-14 08:13:29 +0000 | [diff] [blame] | 63 | - $ref: 'components.yml#/components/parameters/apiVersionInPath' |
Ruslan Kashapov | 0905ac1 | 2021-05-05 13:11:50 +0300 | [diff] [blame] | 64 | - $ref: 'components.yml#/components/parameters/dataspaceNameInPath' |
| 65 | - $ref: 'components.yml#/components/parameters/anchorNameInPath' |
| 66 | - $ref: 'components.yml#/components/parameters/requiredXpathInQuery' |
aditya puthuparambil | 673c6d9 | 2021-08-24 17:44:34 +0100 | [diff] [blame] | 67 | - $ref: 'components.yml#/components/parameters/observedTimestampInQuery' |
Ruslan Kashapov | 0905ac1 | 2021-05-05 13:11:50 +0300 | [diff] [blame] | 68 | requestBody: |
| 69 | required: true |
| 70 | content: |
| 71 | application/json: |
| 72 | schema: |
puthuparambil.aditya | 5d8b241 | 2021-11-24 13:35:10 +0000 | [diff] [blame] | 73 | type: object |
| 74 | examples: |
puthuparambil.aditya | cc17ae5 | 2022-02-25 13:24:03 +0000 | [diff] [blame] | 75 | dataSample: |
| 76 | $ref: 'components.yml#/components/examples/dataSample' |
Ruslan Kashapov | 0905ac1 | 2021-05-05 13:11:50 +0300 | [diff] [blame] | 77 | responses: |
| 78 | '201': |
| 79 | $ref: 'components.yml#/components/responses/Created' |
| 80 | '400': |
| 81 | $ref: 'components.yml#/components/responses/BadRequest' |
| 82 | '401': |
| 83 | $ref: 'components.yml#/components/responses/Unauthorized' |
| 84 | '403': |
| 85 | $ref: 'components.yml#/components/responses/Forbidden' |
JosephKeenan | 909a850 | 2022-01-28 10:02:24 +0000 | [diff] [blame] | 86 | '500': |
| 87 | $ref: 'components.yml#/components/responses/InternalServerError' |
Renu Kumari | 7edbeb6 | 2021-08-30 07:45:52 -0400 | [diff] [blame] | 88 | put: |
DylanB95EST | a79c9f1 | 2021-10-29 17:33:06 +0100 | [diff] [blame] | 89 | description: Replace list content under a given parent, anchor and dataspace |
Ruslan Kashapov | 576f48e | 2021-05-14 14:41:05 +0300 | [diff] [blame] | 90 | tags: |
| 91 | - cps-data |
DylanB95EST | a79c9f1 | 2021-10-29 17:33:06 +0100 | [diff] [blame] | 92 | summary: Replace list content |
| 93 | operationId: replaceListContent |
Ruslan Kashapov | 576f48e | 2021-05-14 14:41:05 +0300 | [diff] [blame] | 94 | parameters: |
rajesh.kumar | 897686f | 2022-12-14 08:13:29 +0000 | [diff] [blame] | 95 | - $ref: 'components.yml#/components/parameters/apiVersionInPath' |
Ruslan Kashapov | 576f48e | 2021-05-14 14:41:05 +0300 | [diff] [blame] | 96 | - $ref: 'components.yml#/components/parameters/dataspaceNameInPath' |
| 97 | - $ref: 'components.yml#/components/parameters/anchorNameInPath' |
| 98 | - $ref: 'components.yml#/components/parameters/requiredXpathInQuery' |
aditya puthuparambil | 673c6d9 | 2021-08-24 17:44:34 +0100 | [diff] [blame] | 99 | - $ref: 'components.yml#/components/parameters/observedTimestampInQuery' |
Ruslan Kashapov | 576f48e | 2021-05-14 14:41:05 +0300 | [diff] [blame] | 100 | requestBody: |
| 101 | required: true |
| 102 | content: |
| 103 | application/json: |
| 104 | schema: |
puthuparambil.aditya | 5d8b241 | 2021-11-24 13:35:10 +0000 | [diff] [blame] | 105 | type: object |
| 106 | examples: |
puthuparambil.aditya | cc17ae5 | 2022-02-25 13:24:03 +0000 | [diff] [blame] | 107 | dataSample: |
| 108 | $ref: 'components.yml#/components/examples/dataSample' |
Ruslan Kashapov | 576f48e | 2021-05-14 14:41:05 +0300 | [diff] [blame] | 109 | responses: |
| 110 | '200': |
puthuparambil.aditya | 5d8b241 | 2021-11-24 13:35:10 +0000 | [diff] [blame] | 111 | $ref: 'components.yml#/components/responses/Ok' |
Ruslan Kashapov | 576f48e | 2021-05-14 14:41:05 +0300 | [diff] [blame] | 112 | '400': |
| 113 | $ref: 'components.yml#/components/responses/BadRequest' |
| 114 | '401': |
| 115 | $ref: 'components.yml#/components/responses/Unauthorized' |
| 116 | '403': |
| 117 | $ref: 'components.yml#/components/responses/Forbidden' |
JosephKeenan | 909a850 | 2022-01-28 10:02:24 +0000 | [diff] [blame] | 118 | '500': |
| 119 | $ref: 'components.yml#/components/responses/InternalServerError' |
lukegleeson | 05701dd | 2021-08-18 09:49:32 +0100 | [diff] [blame] | 120 | |
Rishi.Chail | dacc663 | 2021-01-27 04:27:34 +0000 | [diff] [blame] | 121 | nodesByDataspaceAndAnchor: |
niamhcore | 74753d9 | 2021-01-28 16:11:52 +0000 | [diff] [blame] | 122 | post: |
Rishi.Chail | 6d13f16 | 2021-01-26 05:58:39 +0000 | [diff] [blame] | 123 | description: Create a node for a given anchor and dataspace |
niamhcore | 74753d9 | 2021-01-28 16:11:52 +0000 | [diff] [blame] | 124 | tags: |
| 125 | - cps-data |
Rishi.Chail | 6d13f16 | 2021-01-26 05:58:39 +0000 | [diff] [blame] | 126 | summary: Create a node |
niamhcore | 74753d9 | 2021-01-28 16:11:52 +0000 | [diff] [blame] | 127 | operationId: createNode |
| 128 | parameters: |
rajesh.kumar | 897686f | 2022-12-14 08:13:29 +0000 | [diff] [blame] | 129 | - $ref: 'components.yml#/components/parameters/apiVersionInPath' |
Rishi.Chail | 6d13f16 | 2021-01-26 05:58:39 +0000 | [diff] [blame] | 130 | - $ref: 'components.yml#/components/parameters/dataspaceNameInPath' |
| 131 | - $ref: 'components.yml#/components/parameters/anchorNameInPath' |
Ruslan Kashapov | 24bf350 | 2021-04-19 12:40:01 +0300 | [diff] [blame] | 132 | - $ref: 'components.yml#/components/parameters/xpathInQuery' |
aditya puthuparambil | 673c6d9 | 2021-08-24 17:44:34 +0100 | [diff] [blame] | 133 | - $ref: 'components.yml#/components/parameters/observedTimestampInQuery' |
Michal Jagiello | 6ce84d9 | 2022-12-13 07:40:19 +0000 | [diff] [blame] | 134 | - $ref: 'components.yml#/components/parameters/contentTypeHeader' |
niamhcore | 74753d9 | 2021-01-28 16:11:52 +0000 | [diff] [blame] | 135 | requestBody: |
| 136 | required: true |
| 137 | content: |
| 138 | application/json: |
| 139 | schema: |
Michal Jagiello | 6ce84d9 | 2022-12-13 07:40:19 +0000 | [diff] [blame] | 140 | type: string |
puthuparambil.aditya | 5d8b241 | 2021-11-24 13:35:10 +0000 | [diff] [blame] | 141 | examples: |
puthuparambil.aditya | cc17ae5 | 2022-02-25 13:24:03 +0000 | [diff] [blame] | 142 | dataSample: |
| 143 | $ref: 'components.yml#/components/examples/dataSample' |
Michal Jagiello | 6ce84d9 | 2022-12-13 07:40:19 +0000 | [diff] [blame] | 144 | application/xml: |
| 145 | schema: |
| 146 | type: object # Workaround to show example |
| 147 | xml: |
| 148 | name: stores |
| 149 | examples: |
| 150 | dataSample: |
| 151 | $ref: 'components.yml#/components/examples/dataSampleXml' |
| 152 | |
niamhcore | 74753d9 | 2021-01-28 16:11:52 +0000 | [diff] [blame] | 153 | responses: |
Rishi.Chail | 6d13f16 | 2021-01-26 05:58:39 +0000 | [diff] [blame] | 154 | '201': |
| 155 | $ref: 'components.yml#/components/responses/Created' |
| 156 | '400': |
| 157 | $ref: 'components.yml#/components/responses/BadRequest' |
| 158 | '401': |
| 159 | $ref: 'components.yml#/components/responses/Unauthorized' |
| 160 | '403': |
| 161 | $ref: 'components.yml#/components/responses/Forbidden' |
JosephKeenan | 909a850 | 2022-01-28 10:02:24 +0000 | [diff] [blame] | 162 | '409': |
| 163 | $ref: 'components.yml#/components/responses/Conflict' |
| 164 | '500': |
| 165 | $ref: 'components.yml#/components/responses/InternalServerError' |
Ruslan Kashapov | 24c72db | 2021-02-09 17:25:18 +0200 | [diff] [blame] | 166 | patch: |
| 167 | description: Update a data node leaves for a given dataspace and anchor and a parent node xpath |
| 168 | tags: |
| 169 | - cps-data |
| 170 | summary: Update node leaves |
| 171 | operationId: updateNodeLeaves |
| 172 | parameters: |
rajesh.kumar | 897686f | 2022-12-14 08:13:29 +0000 | [diff] [blame] | 173 | - $ref: 'components.yml#/components/parameters/apiVersionInPath' |
Ruslan Kashapov | 24c72db | 2021-02-09 17:25:18 +0200 | [diff] [blame] | 174 | - $ref: 'components.yml#/components/parameters/dataspaceNameInPath' |
| 175 | - $ref: 'components.yml#/components/parameters/anchorNameInPath' |
| 176 | - $ref: 'components.yml#/components/parameters/xpathInQuery' |
aditya puthuparambil | 673c6d9 | 2021-08-24 17:44:34 +0100 | [diff] [blame] | 177 | - $ref: 'components.yml#/components/parameters/observedTimestampInQuery' |
Ruslan Kashapov | 24c72db | 2021-02-09 17:25:18 +0200 | [diff] [blame] | 178 | requestBody: |
| 179 | required: true |
| 180 | content: |
| 181 | application/json: |
| 182 | schema: |
puthuparambil.aditya | 5d8b241 | 2021-11-24 13:35:10 +0000 | [diff] [blame] | 183 | type: object |
| 184 | examples: |
puthuparambil.aditya | cc17ae5 | 2022-02-25 13:24:03 +0000 | [diff] [blame] | 185 | dataSample: |
| 186 | $ref: 'components.yml#/components/examples/dataSample' |
Ruslan Kashapov | 24c72db | 2021-02-09 17:25:18 +0200 | [diff] [blame] | 187 | responses: |
| 188 | '200': |
| 189 | $ref: 'components.yml#/components/responses/Ok' |
| 190 | '400': |
| 191 | $ref: 'components.yml#/components/responses/BadRequest' |
| 192 | '401': |
| 193 | $ref: 'components.yml#/components/responses/Unauthorized' |
| 194 | '403': |
| 195 | $ref: 'components.yml#/components/responses/Forbidden' |
JosephKeenan | 909a850 | 2022-01-28 10:02:24 +0000 | [diff] [blame] | 196 | '500': |
| 197 | $ref: 'components.yml#/components/responses/InternalServerError' |
DylanB95EST | 30a59dd | 2021-11-02 17:25:18 +0000 | [diff] [blame] | 198 | delete: |
| 199 | description: Delete a datanode for a given dataspace and anchor given a node xpath. |
| 200 | tags: |
| 201 | - cps-data |
| 202 | summary: Delete a data node |
| 203 | operationId: deleteDataNode |
| 204 | parameters: |
rajesh.kumar | 897686f | 2022-12-14 08:13:29 +0000 | [diff] [blame] | 205 | - $ref: 'components.yml#/components/parameters/apiVersionInPath' |
DylanB95EST | 30a59dd | 2021-11-02 17:25:18 +0000 | [diff] [blame] | 206 | - $ref: 'components.yml#/components/parameters/dataspaceNameInPath' |
| 207 | - $ref: 'components.yml#/components/parameters/anchorNameInPath' |
| 208 | - $ref: 'components.yml#/components/parameters/xpathInQuery' |
| 209 | - $ref: 'components.yml#/components/parameters/observedTimestampInQuery' |
| 210 | responses: |
| 211 | '204': |
| 212 | $ref: 'components.yml#/components/responses/NoContent' |
| 213 | '400': |
| 214 | $ref: 'components.yml#/components/responses/BadRequest' |
| 215 | '401': |
| 216 | $ref: 'components.yml#/components/responses/Unauthorized' |
| 217 | '403': |
| 218 | $ref: 'components.yml#/components/responses/Forbidden' |
JosephKeenan | 909a850 | 2022-01-28 10:02:24 +0000 | [diff] [blame] | 219 | '500': |
| 220 | $ref: 'components.yml#/components/responses/InternalServerError' |
Ruslan Kashapov | 24c72db | 2021-02-09 17:25:18 +0200 | [diff] [blame] | 221 | put: |
| 222 | description: Replace a node with descendants for a given dataspace, anchor and a parent node xpath |
| 223 | tags: |
| 224 | - cps-data |
| 225 | summary: Replace a node with descendants |
| 226 | operationId: replaceNode |
| 227 | parameters: |
rajesh.kumar | 897686f | 2022-12-14 08:13:29 +0000 | [diff] [blame] | 228 | - $ref: 'components.yml#/components/parameters/apiVersionInPath' |
Ruslan Kashapov | 24c72db | 2021-02-09 17:25:18 +0200 | [diff] [blame] | 229 | - $ref: 'components.yml#/components/parameters/dataspaceNameInPath' |
| 230 | - $ref: 'components.yml#/components/parameters/anchorNameInPath' |
| 231 | - $ref: 'components.yml#/components/parameters/xpathInQuery' |
aditya puthuparambil | 673c6d9 | 2021-08-24 17:44:34 +0100 | [diff] [blame] | 232 | - $ref: 'components.yml#/components/parameters/observedTimestampInQuery' |
Ruslan Kashapov | 24c72db | 2021-02-09 17:25:18 +0200 | [diff] [blame] | 233 | requestBody: |
| 234 | required: true |
| 235 | content: |
| 236 | application/json: |
| 237 | schema: |
puthuparambil.aditya | 5d8b241 | 2021-11-24 13:35:10 +0000 | [diff] [blame] | 238 | type: object |
| 239 | examples: |
puthuparambil.aditya | cc17ae5 | 2022-02-25 13:24:03 +0000 | [diff] [blame] | 240 | dataSample: |
| 241 | $ref: 'components.yml#/components/examples/dataSample' |
Ruslan Kashapov | 24c72db | 2021-02-09 17:25:18 +0200 | [diff] [blame] | 242 | responses: |
| 243 | '200': |
| 244 | $ref: 'components.yml#/components/responses/Ok' |
| 245 | '400': |
| 246 | $ref: 'components.yml#/components/responses/BadRequest' |
| 247 | '401': |
| 248 | $ref: 'components.yml#/components/responses/Unauthorized' |
| 249 | '403': |
DylanB95EST | a79c9f1 | 2021-10-29 17:33:06 +0100 | [diff] [blame] | 250 | $ref: 'components.yml#/components/responses/Forbidden' |
JosephKeenan | 909a850 | 2022-01-28 10:02:24 +0000 | [diff] [blame] | 251 | '500': |
| 252 | $ref: 'components.yml#/components/responses/InternalServerError' |