1 # ============LICENSE_START=======================================================
2 # Copyright (c) 2021 Bell Canada.
3 # Modifications Copyright (C) 2021-2022 Nordix Foundation
4 # ================================================================================
5 # Licensed under the Apache License, Version 2.0 (the "License");
6 # you may not use this file except in compliance with the License.
7 # You may obtain a copy of the License at
9 # http://www.apache.org/licenses/LICENSE-2.0
11 # Unless required by applicable law or agreed to in writing, software
12 # distributed under the License is distributed on an "AS IS" BASIS,
13 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 # See the License for the specific language governing permissions and
15 # limitations under the License.
17 # SPDX-License-Identifier: Apache-2.0
18 # ============LICENSE_END=========================================================
22 description: Create a new dataspace
25 summary: Create a dataspace
26 operationId: createDataspace
28 - $ref: 'components.yml#/components/parameters/dataspaceNameInQuery'
31 $ref: 'components.yml#/components/responses/Created'
33 $ref: 'components.yml#/components/responses/BadRequest'
35 $ref: 'components.yml#/components/responses/Unauthorized'
37 $ref: 'components.yml#/components/responses/Forbidden'
39 $ref: 'components.yml#/components/responses/Conflict'
41 $ref: 'components.yml#/components/responses/InternalServerError'
43 description: Delete a dataspace
46 summary: Delete a dataspace
47 operationId: deleteDataspace
49 - $ref: 'components.yml#/components/parameters/dataspaceNameInQuery'
52 $ref: 'components.yml#/components/responses/NoContent'
54 $ref: 'components.yml#/components/responses/BadRequest'
56 $ref: 'components.yml#/components/responses/Unauthorized'
58 $ref: 'components.yml#/components/responses/Forbidden'
60 $ref: 'components.yml#/components/responses/Conflict'
62 $ref: 'components.yml#/components/responses/InternalServerError'
66 description: Create a new schema set in the given dataspace
69 summary: Create a schema set
70 operationId: createSchemaSet
72 - $ref: 'components.yml#/components/parameters/dataspaceNameInPath'
73 - $ref: 'components.yml#/components/parameters/schemaSetNameInQuery'
79 $ref: 'components.yml#/components/schemas/MultipartFile'
82 $ref: 'components.yml#/components/responses/Created'
84 $ref: 'components.yml#/components/responses/BadRequest'
86 $ref: 'components.yml#/components/responses/Unauthorized'
88 $ref: 'components.yml#/components/responses/Forbidden'
90 $ref: 'components.yml#/components/responses/Conflict'
92 $ref: 'components.yml#/components/responses/InternalServerError'
94 schemaSetBySchemaSetName:
96 description: Read a schema set given a schema set name and a dataspace
99 summary: Get a schema set
100 operationId: getSchemaSet
102 - $ref: 'components.yml#/components/parameters/dataspaceNameInPath'
103 - $ref: 'components.yml#/components/parameters/schemaSetNameInPath'
110 $ref: 'components.yml#/components/schemas/SchemaSetDetails'
112 $ref: 'components.yml#/components/responses/BadRequest'
114 $ref: 'components.yml#/components/responses/Unauthorized'
116 $ref: 'components.yml#/components/responses/Forbidden'
118 $ref: 'components.yml#/components/responses/InternalServerError'
120 description: Delete a schema set given a schema set name and a dataspace
123 summary: Delete a schema set
124 operationId: deleteSchemaSet
126 - $ref: 'components.yml#/components/parameters/dataspaceNameInPath'
127 - $ref: 'components.yml#/components/parameters/schemaSetNameInPath'
130 $ref: 'components.yml#/components/responses/NoContent'
132 $ref: 'components.yml#/components/responses/BadRequest'
134 $ref: 'components.yml#/components/responses/Unauthorized'
136 $ref: 'components.yml#/components/responses/Forbidden'
138 $ref: 'components.yml#/components/responses/Conflict'
140 $ref: 'components.yml#/components/responses/InternalServerError'
144 description: Read all anchors, given a dataspace
148 operationId: getAnchors
150 - $ref: 'components.yml#/components/parameters/dataspaceNameInPath'
159 $ref: 'components.yml#/components/schemas/AnchorDetails'
161 $ref: 'components.yml#/components/responses/BadRequest'
163 $ref: 'components.yml#/components/responses/Unauthorized'
165 $ref: 'components.yml#/components/responses/Forbidden'
167 $ref: 'components.yml#/components/responses/InternalServerError'
169 description: Create a new anchor in the given dataspace
172 summary: Create an anchor
173 operationId: createAnchor
175 - $ref: 'components.yml#/components/parameters/dataspaceNameInPath'
176 - $ref: 'components.yml#/components/parameters/schemaSetNameInQuery'
177 - $ref: 'components.yml#/components/parameters/anchorNameInQuery'
180 $ref: 'components.yml#/components/responses/Created'
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/Conflict'
190 $ref: 'components.yml#/components/responses/InternalServerError'
192 anchorByDataspaceAndAnchorName:
194 description: Read an anchor given an anchor name and a dataspace
197 summary: Get an anchor
198 operationId: getAnchor
200 - $ref: 'components.yml#/components/parameters/dataspaceNameInPath'
201 - $ref: 'components.yml#/components/parameters/anchorNameInPath'
208 $ref: 'components.yml#/components/schemas/AnchorDetails'
210 $ref: 'components.yml#/components/responses/BadRequest'
212 $ref: 'components.yml#/components/responses/Unauthorized'
214 $ref: 'components.yml#/components/responses/Forbidden'
216 $ref: 'components.yml#/components/responses/InternalServerError'
218 description: Delete an anchor given an anchor name and a dataspace
221 summary: Delete an anchor
222 operationId: deleteAnchor
224 - $ref: 'components.yml#/components/parameters/dataspaceNameInPath'
225 - $ref: 'components.yml#/components/parameters/anchorNameInPath'
228 $ref: 'components.yml#/components/responses/NoContent'
230 $ref: 'components.yml#/components/responses/BadRequest'
232 $ref: 'components.yml#/components/responses/Unauthorized'
234 $ref: 'components.yml#/components/responses/Forbidden'
236 $ref: 'components.yml#/components/responses/InternalServerError'