1 # ============LICENSE_START=======================================================
2 # Copyright (c) 2021-2022 Bell Canada.
3 # Modifications Copyright (C) 2021-2022 Nordix Foundation
4 # Modifications Copyright (C) 2022-2023 TechMahindra Ltd.
5 # Modifications Copyright (C) 2022 Deutsche Telekom AG
6 # ================================================================================
7 # Licensed under the Apache License, Version 2.0 (the "License");
8 # you may not use this file except in compliance with the License.
9 # You may obtain a copy of the License at
11 # http://www.apache.org/licenses/LICENSE-2.0
13 # Unless required by applicable law or agreed to in writing, software
14 # distributed under the License is distributed on an "AS IS" BASIS,
15 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 # See the License for the specific language governing permissions and
17 # limitations under the License.
19 # SPDX-License-Identifier: Apache-2.0
20 # ============LICENSE_END=========================================================
22 listElementByDataspaceAndAnchor:
24 description: Add list element(s) to a list for a given anchor and dataspace
27 summary: Add list element(s)
28 operationId: addListElements
30 - $ref: 'components.yml#/components/parameters/apiVersionInPath'
31 - $ref: 'components.yml#/components/parameters/dataspaceNameInPath'
32 - $ref: 'components.yml#/components/parameters/anchorNameInPath'
33 - $ref: 'components.yml#/components/parameters/requiredXpathInQuery'
34 - $ref: 'components.yml#/components/parameters/observedTimestampInQuery'
43 $ref: 'components.yml#/components/examples/dataSample'
46 $ref: 'components.yml#/components/responses/Created'
48 $ref: 'components.yml#/components/responses/BadRequest'
50 $ref: 'components.yml#/components/responses/Unauthorized'
52 $ref: 'components.yml#/components/responses/Forbidden'
54 $ref: 'components.yml#/components/responses/InternalServerError'
56 description: Replace list content under a given parent, anchor and dataspace
59 summary: Replace list content
60 operationId: replaceListContent
62 - $ref: 'components.yml#/components/parameters/apiVersionInPath'
63 - $ref: 'components.yml#/components/parameters/dataspaceNameInPath'
64 - $ref: 'components.yml#/components/parameters/anchorNameInPath'
65 - $ref: 'components.yml#/components/parameters/requiredXpathInQuery'
66 - $ref: 'components.yml#/components/parameters/observedTimestampInQuery'
75 $ref: 'components.yml#/components/examples/dataSample'
78 $ref: 'components.yml#/components/responses/Ok'
80 $ref: 'components.yml#/components/responses/BadRequest'
82 $ref: 'components.yml#/components/responses/Unauthorized'
84 $ref: 'components.yml#/components/responses/Forbidden'
86 $ref: 'components.yml#/components/responses/InternalServerError'
88 nodesByDataspaceAndAnchor:
90 description: Create a node for a given anchor and dataspace
93 summary: Create a node
94 operationId: createNode
96 - $ref: 'components.yml#/components/parameters/apiVersionInPath'
97 - $ref: 'components.yml#/components/parameters/dataspaceNameInPath'
98 - $ref: 'components.yml#/components/parameters/anchorNameInPath'
99 - $ref: 'components.yml#/components/parameters/xpathInQuery'
100 - $ref: 'components.yml#/components/parameters/observedTimestampInQuery'
101 - $ref: 'components.yml#/components/parameters/contentTypeHeader'
110 $ref: 'components.yml#/components/examples/dataSample'
113 type: object # Workaround to show example
118 $ref: 'components.yml#/components/examples/dataSampleXml'
122 $ref: 'components.yml#/components/responses/Created'
124 $ref: 'components.yml#/components/responses/BadRequest'
126 $ref: 'components.yml#/components/responses/Unauthorized'
128 $ref: 'components.yml#/components/responses/Forbidden'
130 $ref: 'components.yml#/components/responses/Conflict'
132 $ref: 'components.yml#/components/responses/InternalServerError'
134 description: Update a data node leaves for a given dataspace and anchor and a parent node xpath. This operation
135 is currently supported for one top level data node only.
138 summary: Update node leaves
139 operationId: updateNodeLeaves
141 - $ref: 'components.yml#/components/parameters/apiVersionInPath'
142 - $ref: 'components.yml#/components/parameters/dataspaceNameInPath'
143 - $ref: 'components.yml#/components/parameters/anchorNameInPath'
144 - $ref: 'components.yml#/components/parameters/xpathInQuery'
145 - $ref: 'components.yml#/components/parameters/observedTimestampInQuery'
154 $ref: 'components.yml#/components/examples/dataSample'
157 $ref: 'components.yml#/components/responses/Ok'
159 $ref: 'components.yml#/components/responses/BadRequest'
161 $ref: 'components.yml#/components/responses/Unauthorized'
163 $ref: 'components.yml#/components/responses/Forbidden'
165 $ref: 'components.yml#/components/responses/InternalServerError'
167 description: Delete a datanode for a given dataspace and anchor given a node xpath.
170 summary: Delete a data node
171 operationId: deleteDataNode
173 - $ref: 'components.yml#/components/parameters/apiVersionInPath'
174 - $ref: 'components.yml#/components/parameters/dataspaceNameInPath'
175 - $ref: 'components.yml#/components/parameters/anchorNameInPath'
176 - $ref: 'components.yml#/components/parameters/xpathInQuery'
177 - $ref: 'components.yml#/components/parameters/observedTimestampInQuery'
180 $ref: 'components.yml#/components/responses/NoContent'
182 $ref: 'components.yml#/components/responses/BadRequest'
184 $ref: 'components.yml#/components/responses/Unauthorized'
186 $ref: 'components.yml#/components/responses/Forbidden'
188 $ref: 'components.yml#/components/responses/InternalServerError'
190 description: Replace a node with descendants for a given dataspace, anchor and a parent node xpath
193 summary: Replace a node with descendants
194 operationId: replaceNode
196 - $ref: 'components.yml#/components/parameters/apiVersionInPath'
197 - $ref: 'components.yml#/components/parameters/dataspaceNameInPath'
198 - $ref: 'components.yml#/components/parameters/anchorNameInPath'
199 - $ref: 'components.yml#/components/parameters/xpathInQuery'
200 - $ref: 'components.yml#/components/parameters/observedTimestampInQuery'
209 $ref: 'components.yml#/components/examples/dataSample'
212 $ref: 'components.yml#/components/responses/Ok'
214 $ref: 'components.yml#/components/responses/BadRequest'
216 $ref: 'components.yml#/components/responses/Unauthorized'
218 $ref: 'components.yml#/components/responses/Forbidden'
220 $ref: 'components.yml#/components/responses/InternalServerError'