1 # ============LICENSE_START=======================================================
2 # Copyright (c) 2021 Bell Canada.
3 # Modifications Copyright (C) 2021-2022 Nordix Foundation
4 # Modifications Copyright (C) 2022 TechMahindra Ltd.
5 # ================================================================================
6 # Licensed under the Apache License, Version 2.0 (the "License");
7 # you may not use this file except in compliance with the License.
8 # You may obtain a copy of the License at
10 # http://www.apache.org/licenses/LICENSE-2.0
12 # Unless required by applicable law or agreed to in writing, software
13 # distributed under the License is distributed on an "AS IS" BASIS,
14 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 # See the License for the specific language governing permissions and
16 # limitations under the License.
18 # SPDX-License-Identifier: Apache-2.0
19 # ============LICENSE_END=========================================================
23 description: Create a new dataspace
26 summary: Create a dataspace
27 operationId: createDataspace
29 - $ref: 'components.yml#/components/parameters/dataspaceNameInQuery'
32 $ref: 'components.yml#/components/responses/Created'
34 $ref: 'components.yml#/components/responses/BadRequest'
36 $ref: 'components.yml#/components/responses/Unauthorized'
38 $ref: 'components.yml#/components/responses/Forbidden'
40 $ref: 'components.yml#/components/responses/Conflict'
42 $ref: 'components.yml#/components/responses/InternalServerError'
44 description: Delete a dataspace
47 summary: Delete a dataspace
48 operationId: deleteDataspace
50 - $ref: 'components.yml#/components/parameters/dataspaceNameInQuery'
53 $ref: 'components.yml#/components/responses/NoContent'
55 $ref: 'components.yml#/components/responses/BadRequest'
57 $ref: 'components.yml#/components/responses/Unauthorized'
59 $ref: 'components.yml#/components/responses/Forbidden'
61 $ref: 'components.yml#/components/responses/Conflict'
63 $ref: 'components.yml#/components/responses/InternalServerError'
67 description: Create a new schema set in the given dataspace
70 summary: Create a schema set
71 operationId: createSchemaSet
73 - $ref: 'components.yml#/components/parameters/dataspaceNameInPath'
74 - $ref: 'components.yml#/components/parameters/schemaSetNameInQuery'
80 $ref: 'components.yml#/components/schemas/MultipartFile'
83 $ref: 'components.yml#/components/responses/Created'
85 $ref: 'components.yml#/components/responses/BadRequest'
87 $ref: 'components.yml#/components/responses/Unauthorized'
89 $ref: 'components.yml#/components/responses/Forbidden'
91 $ref: 'components.yml#/components/responses/Conflict'
93 $ref: 'components.yml#/components/responses/InternalServerError'
95 schemaSetBySchemaSetName:
97 description: Read a schema set given a schema set name and a dataspace
100 summary: Get a schema set
101 operationId: getSchemaSet
103 - $ref: 'components.yml#/components/parameters/dataspaceNameInPath'
104 - $ref: 'components.yml#/components/parameters/schemaSetNameInPath'
111 $ref: 'components.yml#/components/schemas/SchemaSetDetails'
113 $ref: 'components.yml#/components/responses/BadRequest'
115 $ref: 'components.yml#/components/responses/Unauthorized'
117 $ref: 'components.yml#/components/responses/Forbidden'
119 $ref: 'components.yml#/components/responses/InternalServerError'
121 description: Delete a schema set given a schema set name and a dataspace
124 summary: Delete a schema set
125 operationId: deleteSchemaSet
127 - $ref: 'components.yml#/components/parameters/dataspaceNameInPath'
128 - $ref: 'components.yml#/components/parameters/schemaSetNameInPath'
131 $ref: 'components.yml#/components/responses/NoContent'
133 $ref: 'components.yml#/components/responses/BadRequest'
135 $ref: 'components.yml#/components/responses/Unauthorized'
137 $ref: 'components.yml#/components/responses/Forbidden'
139 $ref: 'components.yml#/components/responses/Conflict'
141 $ref: 'components.yml#/components/responses/InternalServerError'
145 description: Read all anchors, given a dataspace
149 operationId: getAnchors
151 - $ref: 'components.yml#/components/parameters/dataspaceNameInPath'
160 $ref: 'components.yml#/components/schemas/AnchorDetails'
162 $ref: 'components.yml#/components/responses/BadRequest'
164 $ref: 'components.yml#/components/responses/Unauthorized'
166 $ref: 'components.yml#/components/responses/Forbidden'
168 $ref: 'components.yml#/components/responses/InternalServerError'
170 description: Create a new anchor in the given dataspace
173 summary: Create an anchor
174 operationId: createAnchor
176 - $ref: 'components.yml#/components/parameters/dataspaceNameInPath'
177 - $ref: 'components.yml#/components/parameters/schemaSetNameInQuery'
178 - $ref: 'components.yml#/components/parameters/anchorNameInQuery'
181 $ref: 'components.yml#/components/responses/Created'
183 $ref: 'components.yml#/components/responses/BadRequest'
185 $ref: 'components.yml#/components/responses/Unauthorized'
187 $ref: 'components.yml#/components/responses/Forbidden'
189 $ref: 'components.yml#/components/responses/Conflict'
191 $ref: 'components.yml#/components/responses/InternalServerError'
193 anchorByDataspaceAndAnchorName:
195 description: Read an anchor given an anchor name and a dataspace
198 summary: Get an anchor
199 operationId: getAnchor
201 - $ref: 'components.yml#/components/parameters/dataspaceNameInPath'
202 - $ref: 'components.yml#/components/parameters/anchorNameInPath'
209 $ref: 'components.yml#/components/schemas/AnchorDetails'
211 $ref: 'components.yml#/components/responses/BadRequest'
213 $ref: 'components.yml#/components/responses/Unauthorized'
215 $ref: 'components.yml#/components/responses/Forbidden'
217 $ref: 'components.yml#/components/responses/InternalServerError'
219 description: Delete an anchor given an anchor name and a dataspace
222 summary: Delete an anchor
223 operationId: deleteAnchor
225 - $ref: 'components.yml#/components/parameters/dataspaceNameInPath'
226 - $ref: 'components.yml#/components/parameters/anchorNameInPath'
229 $ref: 'components.yml#/components/responses/NoContent'
231 $ref: 'components.yml#/components/responses/BadRequest'
233 $ref: 'components.yml#/components/responses/Unauthorized'
235 $ref: 'components.yml#/components/responses/Forbidden'
237 $ref: 'components.yml#/components/responses/InternalServerError'
241 description: Read all dataspaces
244 summary: Get all dataspaces
245 operationId: getAllDataspaces
254 $ref: 'components.yml#/components/schemas/DataspaceDetails'
256 $ref: 'components.yml#/components/responses/BadRequest'
258 $ref: 'components.yml#/components/responses/Unauthorized'
260 $ref: 'components.yml#/components/responses/Forbidden'
262 $ref: 'components.yml#/components/responses/InternalServerError'
266 description: Read a dataspace given a dataspace name
269 summary: Get a dataspace
270 operationId: getDataspace
272 - $ref: 'components.yml#/components/parameters/dataspaceNameInPath'
279 $ref: 'components.yml#/components/schemas/DataspaceDetails'
281 $ref: 'components.yml#/components/responses/BadRequest'
283 $ref: 'components.yml#/components/responses/Unauthorized'
285 $ref: 'components.yml#/components/responses/Forbidden'
287 $ref: 'components.yml#/components/responses/InternalServerError'