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.
15 # ============LICENSE_END=========================================================
17 nodeByDataspaceAndAnchor:
19 description: Get a node with an option to retrieve all the children for a given anchor and dataspace
23 operationId: getNodeByDataspaceAndAnchor
25 - $ref: 'components.yml#/components/parameters/dataspaceNameInPath'
26 - $ref: 'components.yml#/components/parameters/anchorNameInPath'
27 - $ref: 'components.yml#/components/parameters/xpathInQuery'
28 - $ref: 'components.yml#/components/parameters/includeDescendantsOptionInQuery'
36 example: { "child": my_child,"leafList": "leafListElement1, leafListElement2", "leaf": my_leaf }
38 $ref: 'components.yml#/components/responses/BadRequest'
40 $ref: 'components.yml#/components/responses/Unauthorized'
42 $ref: 'components.yml#/components/responses/Forbidden'
44 $ref: 'components.yml#/components/responses/NotFound'
45 x-codegen-request-body-name: xpath
47 listNodeByDataspaceAndAnchor:
49 description: Add list-node child elements to existing node for a given anchor and dataspace
52 summary: Add list-node child element(s) under existing parent node
53 operationId: addListNodeElements
55 - $ref: 'components.yml#/components/parameters/dataspaceNameInPath'
56 - $ref: 'components.yml#/components/parameters/anchorNameInPath'
57 - $ref: 'components.yml#/components/parameters/requiredXpathInQuery'
66 $ref: 'components.yml#/components/responses/Created'
68 $ref: 'components.yml#/components/responses/BadRequest'
70 $ref: 'components.yml#/components/responses/Unauthorized'
72 $ref: 'components.yml#/components/responses/Forbidden'
75 description: Replace list-node child elements under existing node for a given anchor and dataspace
78 summary: Replace list-node child element(s) under existing parent node
79 operationId: replaceListNodeElements
81 - $ref: 'components.yml#/components/parameters/dataspaceNameInPath'
82 - $ref: 'components.yml#/components/parameters/anchorNameInPath'
83 - $ref: 'components.yml#/components/parameters/requiredXpathInQuery'
92 $ref: 'components.yml#/components/responses/Created'
94 $ref: 'components.yml#/components/responses/BadRequest'
96 $ref: 'components.yml#/components/responses/Unauthorized'
98 $ref: 'components.yml#/components/responses/Forbidden'
101 description: Delete list-node child elements under existing node for a given anchor and dataspace
104 summary: Delete list-node child element(s) under existing parent node
105 operationId: deleteListNodeElements
107 - $ref: 'components.yml#/components/parameters/dataspaceNameInPath'
108 - $ref: 'components.yml#/components/parameters/anchorNameInPath'
109 - $ref: 'components.yml#/components/parameters/requiredXpathInQuery'
112 $ref: 'components.yml#/components/responses/NoContent'
114 $ref: 'components.yml#/components/responses/BadRequest'
116 $ref: 'components.yml#/components/responses/Unauthorized'
118 $ref: 'components.yml#/components/responses/Forbidden'
120 nodesByDataspaceAndAnchor:
122 description: Create a node for a given anchor and dataspace
125 summary: Create a node
126 operationId: createNode
128 - $ref: 'components.yml#/components/parameters/dataspaceNameInPath'
129 - $ref: 'components.yml#/components/parameters/anchorNameInPath'
130 - $ref: 'components.yml#/components/parameters/xpathInQuery'
139 $ref: 'components.yml#/components/responses/Created'
141 $ref: 'components.yml#/components/responses/BadRequest'
143 $ref: 'components.yml#/components/responses/Unauthorized'
145 $ref: 'components.yml#/components/responses/Forbidden'
148 description: Update a data node leaves for a given dataspace and anchor and a parent node xpath
151 summary: Update node leaves
152 operationId: updateNodeLeaves
154 - $ref: 'components.yml#/components/parameters/dataspaceNameInPath'
155 - $ref: 'components.yml#/components/parameters/anchorNameInPath'
156 - $ref: 'components.yml#/components/parameters/xpathInQuery'
165 $ref: 'components.yml#/components/responses/Ok'
167 $ref: 'components.yml#/components/responses/BadRequest'
169 $ref: 'components.yml#/components/responses/Unauthorized'
171 $ref: 'components.yml#/components/responses/Forbidden'
174 description: Replace a node with descendants for a given dataspace, anchor and a parent node xpath
177 summary: Replace a node with descendants
178 operationId: replaceNode
180 - $ref: 'components.yml#/components/parameters/dataspaceNameInPath'
181 - $ref: 'components.yml#/components/parameters/anchorNameInPath'
182 - $ref: 'components.yml#/components/parameters/xpathInQuery'
191 $ref: 'components.yml#/components/responses/Ok'
193 $ref: 'components.yml#/components/responses/BadRequest'
195 $ref: 'components.yml#/components/responses/Unauthorized'
197 $ref: 'components.yml#/components/responses/Forbidden'
202 description: Get all nodes for a given dataspace using an xpath or schema node identifier - DRAFT
206 operationId: getNodesByDataspace
208 - $ref: 'components.yml#/components/parameters/dataspaceNameInPath'
211 $ref: 'components.yml#/components/responses/Ok'
213 $ref: 'components.yml#/components/responses/BadRequest'
215 $ref: 'components.yml#/components/responses/Unauthorized'
217 $ref: 'components.yml#/components/responses/Forbidden'
219 $ref: 'components.yml#/components/responses/NotFound'
220 x-codegen-request-body-name: requestBody