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
8 # http://www.apache.org/licenses/LICENSE-2.0
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.
16 # SPDX-License-Identifier: Apache-2.0
17 # ============LICENSE_END=========================================================
19 nodeByDataspaceAndAnchor:
21 description: Get a node with an option to retrieve all the children for a given anchor and dataspace
25 operationId: getNodeByDataspaceAndAnchor
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'
38 example: { "child": my_child,"leafList": "leafListElement1, leafListElement2", "leaf": my_leaf }
40 $ref: 'components.yml#/components/responses/BadRequest'
42 $ref: 'components.yml#/components/responses/Unauthorized'
44 $ref: 'components.yml#/components/responses/Forbidden'
46 $ref: 'components.yml#/components/responses/NotFound'
47 x-codegen-request-body-name: xpath
49 listElementByDataspaceAndAnchor:
51 description: Add list element(s) to a list for a given anchor and dataspace
54 summary: Add list element(s)
55 operationId: addListElements
57 - $ref: 'components.yml#/components/parameters/dataspaceNameInPath'
58 - $ref: 'components.yml#/components/parameters/anchorNameInPath'
59 - $ref: 'components.yml#/components/parameters/requiredXpathInQuery'
60 - $ref: 'components.yml#/components/parameters/observedTimestampInQuery'
69 $ref: 'components.yml#/components/responses/Created'
71 $ref: 'components.yml#/components/responses/BadRequest'
73 $ref: 'components.yml#/components/responses/Unauthorized'
75 $ref: 'components.yml#/components/responses/Forbidden'
78 description: Replace list content under a given parent, anchor and dataspace
81 summary: Replace list content
82 operationId: replaceListContent
84 - $ref: 'components.yml#/components/parameters/dataspaceNameInPath'
85 - $ref: 'components.yml#/components/parameters/anchorNameInPath'
86 - $ref: 'components.yml#/components/parameters/requiredXpathInQuery'
87 - $ref: 'components.yml#/components/parameters/observedTimestampInQuery'
96 $ref: 'components.yml#/components/responses/Created'
98 $ref: 'components.yml#/components/responses/BadRequest'
100 $ref: 'components.yml#/components/responses/Unauthorized'
102 $ref: 'components.yml#/components/responses/Forbidden'
105 description: Delete one or all list element(s) for a given anchor and dataspace
109 summary: Delete one or all list element(s)
110 operationId: deleteListOrListElement
112 - $ref: 'components.yml#/components/parameters/dataspaceNameInPath'
113 - $ref: 'components.yml#/components/parameters/anchorNameInPath'
114 - $ref: 'components.yml#/components/parameters/requiredXpathInQuery'
115 - $ref: 'components.yml#/components/parameters/observedTimestampInQuery'
118 $ref: 'components.yml#/components/responses/NoContent'
120 $ref: 'components.yml#/components/responses/BadRequest'
122 $ref: 'components.yml#/components/responses/Unauthorized'
124 $ref: 'components.yml#/components/responses/Forbidden'
126 nodesByDataspaceAndAnchor:
128 description: Create a node for a given anchor and dataspace
131 summary: Create a node
132 operationId: createNode
134 - $ref: 'components.yml#/components/parameters/dataspaceNameInPath'
135 - $ref: 'components.yml#/components/parameters/anchorNameInPath'
136 - $ref: 'components.yml#/components/parameters/xpathInQuery'
137 - $ref: 'components.yml#/components/parameters/observedTimestampInQuery'
146 $ref: 'components.yml#/components/responses/Created'
148 $ref: 'components.yml#/components/responses/BadRequest'
150 $ref: 'components.yml#/components/responses/Unauthorized'
152 $ref: 'components.yml#/components/responses/Forbidden'
155 description: Update a data node leaves for a given dataspace and anchor and a parent node xpath
158 summary: Update node leaves
159 operationId: updateNodeLeaves
161 - $ref: 'components.yml#/components/parameters/dataspaceNameInPath'
162 - $ref: 'components.yml#/components/parameters/anchorNameInPath'
163 - $ref: 'components.yml#/components/parameters/xpathInQuery'
164 - $ref: 'components.yml#/components/parameters/observedTimestampInQuery'
173 $ref: 'components.yml#/components/responses/Ok'
175 $ref: 'components.yml#/components/responses/BadRequest'
177 $ref: 'components.yml#/components/responses/Unauthorized'
179 $ref: 'components.yml#/components/responses/Forbidden'
182 description: Delete a datanode for a given dataspace and anchor given a node xpath.
185 summary: Delete a data node
186 operationId: deleteDataNode
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'
194 $ref: 'components.yml#/components/responses/NoContent'
196 $ref: 'components.yml#/components/responses/BadRequest'
198 $ref: 'components.yml#/components/responses/Unauthorized'
200 $ref: 'components.yml#/components/responses/Forbidden'
204 description: Replace a node with descendants for a given dataspace, anchor and a parent node xpath
207 summary: Replace a node with descendants
208 operationId: replaceNode
210 - $ref: 'components.yml#/components/parameters/dataspaceNameInPath'
211 - $ref: 'components.yml#/components/parameters/anchorNameInPath'
212 - $ref: 'components.yml#/components/parameters/xpathInQuery'
213 - $ref: 'components.yml#/components/parameters/observedTimestampInQuery'
222 $ref: 'components.yml#/components/responses/Ok'
224 $ref: 'components.yml#/components/responses/BadRequest'
226 $ref: 'components.yml#/components/responses/Unauthorized'
228 $ref: 'components.yml#/components/responses/Forbidden'