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