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