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/Forbidden'
52 $ref: 'components.yml#/components/responses/InternalServerError'
54 description: Replace list content under a given parent, anchor and dataspace
57 summary: Replace list content
58 operationId: replaceListContent
60 - $ref: 'components.yml#/components/parameters/apiVersionInPath'
61 - $ref: 'components.yml#/components/parameters/dataspaceNameInPath'
62 - $ref: 'components.yml#/components/parameters/anchorNameInPath'
63 - $ref: 'components.yml#/components/parameters/requiredXpathInQuery'
64 - $ref: 'components.yml#/components/parameters/observedTimestampInQuery'
73 $ref: 'components.yml#/components/examples/dataSample'
76 $ref: 'components.yml#/components/responses/Ok'
78 $ref: 'components.yml#/components/responses/BadRequest'
80 $ref: 'components.yml#/components/responses/Forbidden'
82 $ref: 'components.yml#/components/responses/InternalServerError'
84 nodesByDataspaceAndAnchor:
86 description: Create a node for a given anchor and dataspace
89 summary: Create a node
90 operationId: createNode
92 - $ref: 'components.yml#/components/parameters/apiVersionInPath'
93 - $ref: 'components.yml#/components/parameters/dataspaceNameInPath'
94 - $ref: 'components.yml#/components/parameters/anchorNameInPath'
95 - $ref: 'components.yml#/components/parameters/xpathInQuery'
96 - $ref: 'components.yml#/components/parameters/observedTimestampInQuery'
97 - $ref: 'components.yml#/components/parameters/contentTypeHeader'
106 $ref: 'components.yml#/components/examples/dataSample'
109 type: object # Workaround to show example
114 $ref: 'components.yml#/components/examples/dataSampleXml'
118 $ref: 'components.yml#/components/responses/Created'
120 $ref: 'components.yml#/components/responses/BadRequest'
122 $ref: 'components.yml#/components/responses/Forbidden'
124 $ref: 'components.yml#/components/responses/Conflict'
126 $ref: 'components.yml#/components/responses/InternalServerError'
128 description: Update a data node leaves for a given dataspace and anchor and a parent node xpath. This operation
129 is currently supported for one top level data node only.
132 summary: Update node leaves
133 operationId: updateNodeLeaves
135 - $ref: 'components.yml#/components/parameters/apiVersionInPath'
136 - $ref: 'components.yml#/components/parameters/dataspaceNameInPath'
137 - $ref: 'components.yml#/components/parameters/anchorNameInPath'
138 - $ref: 'components.yml#/components/parameters/xpathInQuery'
139 - $ref: 'components.yml#/components/parameters/observedTimestampInQuery'
148 $ref: 'components.yml#/components/examples/dataSample'
151 $ref: 'components.yml#/components/responses/Ok'
153 $ref: 'components.yml#/components/responses/BadRequest'
155 $ref: 'components.yml#/components/responses/Forbidden'
157 $ref: 'components.yml#/components/responses/InternalServerError'
159 description: Delete a datanode for a given dataspace and anchor given a node xpath.
162 summary: Delete a data node
163 operationId: deleteDataNode
165 - $ref: 'components.yml#/components/parameters/apiVersionInPath'
166 - $ref: 'components.yml#/components/parameters/dataspaceNameInPath'
167 - $ref: 'components.yml#/components/parameters/anchorNameInPath'
168 - $ref: 'components.yml#/components/parameters/xpathInQuery'
169 - $ref: 'components.yml#/components/parameters/observedTimestampInQuery'
172 $ref: 'components.yml#/components/responses/NoContent'
174 $ref: 'components.yml#/components/responses/BadRequest'
176 $ref: 'components.yml#/components/responses/Forbidden'
178 $ref: 'components.yml#/components/responses/InternalServerError'
180 description: Replace a node with descendants for a given dataspace, anchor and a parent node xpath
183 summary: Replace a node with descendants
184 operationId: replaceNode
186 - $ref: 'components.yml#/components/parameters/apiVersionInPath'
187 - $ref: 'components.yml#/components/parameters/dataspaceNameInPath'
188 - $ref: 'components.yml#/components/parameters/anchorNameInPath'
189 - $ref: 'components.yml#/components/parameters/xpathInQuery'
190 - $ref: 'components.yml#/components/parameters/observedTimestampInQuery'
199 $ref: 'components.yml#/components/examples/dataSample'
202 $ref: 'components.yml#/components/responses/Ok'
204 $ref: 'components.yml#/components/responses/BadRequest'
206 $ref: 'components.yml#/components/responses/Forbidden'
208 $ref: 'components.yml#/components/responses/InternalServerError'