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