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: Delete a dataspace
26 summary: Delete a dataspace
27 operationId: deleteDataspace
29 - $ref: 'components.yml#/components/parameters/apiVersionInPath'
30 - $ref: 'components.yml#/components/parameters/dataspaceNameInQuery'
33 $ref: 'components.yml#/components/responses/NoContent'
35 $ref: 'components.yml#/components/responses/BadRequest'
37 $ref: 'components.yml#/components/responses/Forbidden'
39 $ref: 'components.yml#/components/responses/Conflict'
41 $ref: 'components.yml#/components/responses/InternalServerError'
45 description: Read all schema sets, given a dataspace
48 summary: Get schema sets
49 operationId: getSchemaSets
51 - $ref: 'components.yml#/components/parameters/apiVersionInPath'
52 - $ref: 'components.yml#/components/parameters/dataspaceNameInPath'
61 $ref: 'components.yml#/components/schemas/SchemaSetDetails'
63 $ref: 'components.yml#/components/responses/BadRequest'
65 $ref: 'components.yml#/components/responses/Forbidden'
67 $ref: 'components.yml#/components/responses/InternalServerError'
69 schemaSetBySchemaSetName:
71 description: Read a schema set given a schema set name and a dataspace
74 summary: Get a schema set
75 operationId: getSchemaSet
77 - $ref: 'components.yml#/components/parameters/apiVersionInPath'
78 - $ref: 'components.yml#/components/parameters/dataspaceNameInPath'
79 - $ref: 'components.yml#/components/parameters/schemaSetNameInPath'
86 $ref: 'components.yml#/components/schemas/SchemaSetDetails'
88 $ref: 'components.yml#/components/responses/BadRequest'
90 $ref: 'components.yml#/components/responses/Forbidden'
92 $ref: 'components.yml#/components/responses/InternalServerError'
94 description: Delete a schema set given a schema set name and a dataspace
97 summary: Delete a schema set
98 operationId: deleteSchemaSet
100 - $ref: 'components.yml#/components/parameters/apiVersionInPath'
101 - $ref: 'components.yml#/components/parameters/dataspaceNameInPath'
102 - $ref: 'components.yml#/components/parameters/schemaSetNameInPath'
105 $ref: 'components.yml#/components/responses/NoContent'
107 $ref: 'components.yml#/components/responses/BadRequest'
109 $ref: 'components.yml#/components/responses/Forbidden'
111 $ref: 'components.yml#/components/responses/Conflict'
113 $ref: 'components.yml#/components/responses/InternalServerError'
117 description: Read all anchors, given a dataspace
121 operationId: getAnchors
123 - $ref: 'components.yml#/components/parameters/apiVersionInPath'
124 - $ref: 'components.yml#/components/parameters/dataspaceNameInPath'
133 $ref: 'components.yml#/components/schemas/AnchorDetails'
135 $ref: 'components.yml#/components/responses/BadRequest'
137 $ref: 'components.yml#/components/responses/Forbidden'
139 $ref: 'components.yml#/components/responses/InternalServerError'
141 anchorByDataspaceAndAnchorName:
143 description: Read an anchor given an anchor name and a dataspace
146 summary: Get an anchor
147 operationId: getAnchor
149 - $ref: 'components.yml#/components/parameters/apiVersionInPath'
150 - $ref: 'components.yml#/components/parameters/dataspaceNameInPath'
151 - $ref: 'components.yml#/components/parameters/anchorNameInPath'
158 $ref: 'components.yml#/components/schemas/AnchorDetails'
160 $ref: 'components.yml#/components/responses/BadRequest'
162 $ref: 'components.yml#/components/responses/Forbidden'
164 $ref: 'components.yml#/components/responses/InternalServerError'
166 description: Delete an anchor given an anchor name and a dataspace
169 summary: Delete an anchor
170 operationId: deleteAnchor
172 - $ref: 'components.yml#/components/parameters/apiVersionInPath'
173 - $ref: 'components.yml#/components/parameters/dataspaceNameInPath'
174 - $ref: 'components.yml#/components/parameters/anchorNameInPath'
177 $ref: 'components.yml#/components/responses/NoContent'
179 $ref: 'components.yml#/components/responses/BadRequest'
181 $ref: 'components.yml#/components/responses/Forbidden'
183 $ref: 'components.yml#/components/responses/InternalServerError'
187 description: Read all dataspaces
190 summary: Get all dataspaces
191 operationId: getAllDataspaces
193 - $ref: 'components.yml#/components/parameters/apiVersionInPath'
202 $ref: 'components.yml#/components/schemas/DataspaceDetails'
204 $ref: 'components.yml#/components/responses/BadRequest'
206 $ref: 'components.yml#/components/responses/Forbidden'
208 $ref: 'components.yml#/components/responses/InternalServerError'
212 description: Read a dataspace given a dataspace name
215 summary: Get a dataspace
216 operationId: getDataspace
218 - $ref: 'components.yml#/components/parameters/apiVersionInPath'
219 - $ref: 'components.yml#/components/parameters/dataspaceNameInPath'
226 $ref: 'components.yml#/components/schemas/DataspaceDetails'
228 $ref: 'components.yml#/components/responses/BadRequest'
230 $ref: 'components.yml#/components/responses/Forbidden'
232 $ref: 'components.yml#/components/responses/InternalServerError'