1 # ============LICENSE_START=======================================================
2 # Copyright (C) 2022 TechMahindra Ltd.
3 # ================================================================================
4 # Licensed under the Apache License, Version 2.0 (the "License");
5 # you may not use this file except in compliance with the License.
6 # You may obtain a copy of the License at
8 # http://www.apache.org/licenses/LICENSE-2.0
10 # Unless required by applicable law or agreed to in writing, software
11 # distributed under the License is distributed on an "AS IS" BASIS,
12 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 # See the License for the specific language governing permissions and
14 # limitations under the License.
16 # SPDX-License-Identifier: Apache-2.0
17 # ============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'
46 description: Create a new anchor in the given dataspace
49 summary: Create an anchor
50 operationId: createAnchor
52 - $ref: 'components.yml#/components/parameters/dataspaceNameInPath'
53 - $ref: 'components.yml#/components/parameters/schemaSetNameInQuery'
54 - $ref: 'components.yml#/components/parameters/anchorNameInQuery'
57 $ref: 'components.yml#/components/responses/Created'
59 $ref: 'components.yml#/components/responses/BadRequest'
61 $ref: 'components.yml#/components/responses/Unauthorized'
63 $ref: 'components.yml#/components/responses/Forbidden'
65 $ref: 'components.yml#/components/responses/Conflict'
67 $ref: 'components.yml#/components/responses/InternalServerError'
72 description: Create a new schema set in the given dataspace
75 summary: Create a schema set
76 operationId: createSchemaSet
78 - $ref: 'components.yml#/components/parameters/dataspaceNameInPath'
79 - $ref: 'components.yml#/components/parameters/schemaSetNameInQuery'
85 $ref: 'components.yml#/components/schemas/MultipartFile'
88 $ref: 'components.yml#/components/responses/Created'
90 $ref: 'components.yml#/components/responses/BadRequest'
92 $ref: 'components.yml#/components/responses/Unauthorized'
94 $ref: 'components.yml#/components/responses/Forbidden'
96 $ref: 'components.yml#/components/responses/Conflict'
98 $ref: 'components.yml#/components/responses/InternalServerError'