blob: f394270dd596c976d188e776284421b1b46764ce [file] [log] [blame]
shivasubedi8df61a92021-06-16 14:43:18 +01001# ============LICENSE_START=======================================================
2# Copyright (c) 2021 Bell Canada.
JosephKeenan909a8502022-01-28 10:02:24 +00003# Modifications Copyright (C) 2021-2022 Nordix Foundation
rajesh.kumarcec0cb72022-09-06 11:47:18 +00004# Modifications Copyright (C) 2022 TechMahindra Ltd.
shivasubedi8df61a92021-06-16 14:43:18 +01005# ================================================================================
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
9#
10# http://www.apache.org/licenses/LICENSE-2.0
11#
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.
Renu Kumari4d520012021-08-30 11:50:43 -040017#
18# SPDX-License-Identifier: Apache-2.0
shivasubedi8df61a92021-06-16 14:43:18 +010019# ============LICENSE_END=========================================================
20
Rishi.Chaildacc6632021-01-27 04:27:34 +000021dataspaces:
niamhcore09c6b6e2021-11-22 11:44:38 +000022 delete:
23 description: Delete a dataspace
24 tags:
25 - cps-admin
26 summary: Delete a dataspace
27 operationId: deleteDataspace
28 parameters:
rajesh.kumar897686f2022-12-14 08:13:29 +000029 - $ref: 'components.yml#/components/parameters/apiVersionInPath'
niamhcore09c6b6e2021-11-22 11:44:38 +000030 - $ref: 'components.yml#/components/parameters/dataspaceNameInQuery'
31 responses:
32 '204':
33 $ref: 'components.yml#/components/responses/NoContent'
34 '400':
35 $ref: 'components.yml#/components/responses/BadRequest'
niamhcore09c6b6e2021-11-22 11:44:38 +000036 '403':
37 $ref: 'components.yml#/components/responses/Forbidden'
38 '409':
39 $ref: 'components.yml#/components/responses/Conflict'
JosephKeenan909a8502022-01-28 10:02:24 +000040 '500':
41 $ref: 'components.yml#/components/responses/InternalServerError'
niamhcore09c6b6e2021-11-22 11:44:38 +000042
puthuparambil.aditya001e7732021-01-13 12:06:20 +000043schemaSet:
rajesh.kumar71e4f832022-09-14 05:11:32 +000044 get:
45 description: Read all schema sets, given a dataspace
46 tags:
47 - cps-admin
48 summary: Get schema sets
49 operationId: getSchemaSets
50 parameters:
rajesh.kumar897686f2022-12-14 08:13:29 +000051 - $ref: 'components.yml#/components/parameters/apiVersionInPath'
rajesh.kumar71e4f832022-09-14 05:11:32 +000052 - $ref: 'components.yml#/components/parameters/dataspaceNameInPath'
53 responses:
54 '200':
55 description: OK
56 content:
57 application/json:
58 schema:
59 type: array
60 items:
61 $ref: 'components.yml#/components/schemas/SchemaSetDetails'
62 '400':
63 $ref: 'components.yml#/components/responses/BadRequest'
rajesh.kumar71e4f832022-09-14 05:11:32 +000064 '403':
65 $ref: 'components.yml#/components/responses/Forbidden'
66 '500':
67 $ref: 'components.yml#/components/responses/InternalServerError'
puthuparambil.aditya001e7732021-01-13 12:06:20 +000068
69schemaSetBySchemaSetName:
70 get:
Rishi.Chail6d13f162021-01-26 05:58:39 +000071 description: Read a schema set given a schema set name and a dataspace
puthuparambil.aditya001e7732021-01-13 12:06:20 +000072 tags:
73 - cps-admin
Rishi.Chail6d13f162021-01-26 05:58:39 +000074 summary: Get a schema set
puthuparambil.aditya001e7732021-01-13 12:06:20 +000075 operationId: getSchemaSet
76 parameters:
rajesh.kumar897686f2022-12-14 08:13:29 +000077 - $ref: 'components.yml#/components/parameters/apiVersionInPath'
Rishi.Chail6d13f162021-01-26 05:58:39 +000078 - $ref: 'components.yml#/components/parameters/dataspaceNameInPath'
79 - $ref: 'components.yml#/components/parameters/schemaSetNameInPath'
puthuparambil.aditya001e7732021-01-13 12:06:20 +000080 responses:
Rishi.Chail6d13f162021-01-26 05:58:39 +000081 '200':
JosephKeenanc6865f32021-06-08 13:16:37 +010082 description: OK
83 content:
84 application/json:
85 schema:
86 $ref: 'components.yml#/components/schemas/SchemaSetDetails'
Rishi.Chail6d13f162021-01-26 05:58:39 +000087 '400':
88 $ref: 'components.yml#/components/responses/BadRequest'
Rishi.Chail6d13f162021-01-26 05:58:39 +000089 '403':
90 $ref: 'components.yml#/components/responses/Forbidden'
JosephKeenan909a8502022-01-28 10:02:24 +000091 '500':
92 $ref: 'components.yml#/components/responses/InternalServerError'
Ruslan Kashapovdce4e312021-01-11 15:34:10 +020093 delete:
Rishi.Chail6d13f162021-01-26 05:58:39 +000094 description: Delete a schema set given a schema set name and a dataspace
Ruslan Kashapovdce4e312021-01-11 15:34:10 +020095 tags:
96 - cps-admin
Rishi.Chail6d13f162021-01-26 05:58:39 +000097 summary: Delete a schema set
Ruslan Kashapovdce4e312021-01-11 15:34:10 +020098 operationId: deleteSchemaSet
99 parameters:
rajesh.kumar897686f2022-12-14 08:13:29 +0000100 - $ref: 'components.yml#/components/parameters/apiVersionInPath'
Rishi.Chail6d13f162021-01-26 05:58:39 +0000101 - $ref: 'components.yml#/components/parameters/dataspaceNameInPath'
102 - $ref: 'components.yml#/components/parameters/schemaSetNameInPath'
Ruslan Kashapovdce4e312021-01-11 15:34:10 +0200103 responses:
Rishi.Chail6d13f162021-01-26 05:58:39 +0000104 '204':
105 $ref: 'components.yml#/components/responses/NoContent'
106 '400':
107 $ref: 'components.yml#/components/responses/BadRequest'
Rishi.Chail6d13f162021-01-26 05:58:39 +0000108 '403':
109 $ref: 'components.yml#/components/responses/Forbidden'
110 '409':
111 $ref: 'components.yml#/components/responses/Conflict'
JosephKeenan909a8502022-01-28 10:02:24 +0000112 '500':
113 $ref: 'components.yml#/components/responses/InternalServerError'
puthuparambil.aditya001e7732021-01-13 12:06:20 +0000114
115anchorsByDataspace:
116 get:
Rishi.Chail6d13f162021-01-26 05:58:39 +0000117 description: Read all anchors, given a dataspace
puthuparambil.aditya001e7732021-01-13 12:06:20 +0000118 tags:
119 - cps-admin
Rishi.Chail6d13f162021-01-26 05:58:39 +0000120 summary: Get anchors
puthuparambil.aditya001e7732021-01-13 12:06:20 +0000121 operationId: getAnchors
122 parameters:
rajesh.kumar897686f2022-12-14 08:13:29 +0000123 - $ref: 'components.yml#/components/parameters/apiVersionInPath'
Rishi.Chail6d13f162021-01-26 05:58:39 +0000124 - $ref: 'components.yml#/components/parameters/dataspaceNameInPath'
puthuparambil.aditya001e7732021-01-13 12:06:20 +0000125 responses:
Rishi.Chail6d13f162021-01-26 05:58:39 +0000126 '200':
JosephKeenanc6865f32021-06-08 13:16:37 +0100127 description: OK
128 content:
129 application/json:
130 schema:
131 type: array
132 items:
133 $ref: 'components.yml#/components/schemas/AnchorDetails'
Rishi.Chail6d13f162021-01-26 05:58:39 +0000134 '400':
135 $ref: 'components.yml#/components/responses/BadRequest'
Rishi.Chail6d13f162021-01-26 05:58:39 +0000136 '403':
137 $ref: 'components.yml#/components/responses/Forbidden'
JosephKeenan909a8502022-01-28 10:02:24 +0000138 '500':
139 $ref: 'components.yml#/components/responses/InternalServerError'
puthuparambil.aditya001e7732021-01-13 12:06:20 +0000140
141anchorByDataspaceAndAnchorName:
142 get:
Rishi.Chail6d13f162021-01-26 05:58:39 +0000143 description: Read an anchor given an anchor name and a dataspace
puthuparambil.aditya001e7732021-01-13 12:06:20 +0000144 tags:
145 - cps-admin
Rishi.Chail6d13f162021-01-26 05:58:39 +0000146 summary: Get an anchor
puthuparambil.aditya001e7732021-01-13 12:06:20 +0000147 operationId: getAnchor
148 parameters:
rajesh.kumar897686f2022-12-14 08:13:29 +0000149 - $ref: 'components.yml#/components/parameters/apiVersionInPath'
Rishi.Chail6d13f162021-01-26 05:58:39 +0000150 - $ref: 'components.yml#/components/parameters/dataspaceNameInPath'
151 - $ref: 'components.yml#/components/parameters/anchorNameInPath'
puthuparambil.aditya001e7732021-01-13 12:06:20 +0000152 responses:
Rishi.Chail6d13f162021-01-26 05:58:39 +0000153 '200':
JosephKeenanc6865f32021-06-08 13:16:37 +0100154 description: OK
155 content:
156 application/json:
157 schema:
158 $ref: 'components.yml#/components/schemas/AnchorDetails'
Rishi.Chail6d13f162021-01-26 05:58:39 +0000159 '400':
160 $ref: 'components.yml#/components/responses/BadRequest'
Rishi.Chail6d13f162021-01-26 05:58:39 +0000161 '403':
162 $ref: 'components.yml#/components/responses/Forbidden'
JosephKeenan909a8502022-01-28 10:02:24 +0000163 '500':
164 $ref: 'components.yml#/components/responses/InternalServerError'
puthuparambil.aditya001e7732021-01-13 12:06:20 +0000165 delete:
Ruslan Kashapovb20858b2021-04-05 14:46:03 +0300166 description: Delete an anchor given an anchor name and a dataspace
puthuparambil.aditya001e7732021-01-13 12:06:20 +0000167 tags:
168 - cps-admin
Rishi.Chail6d13f162021-01-26 05:58:39 +0000169 summary: Delete an anchor
puthuparambil.aditya001e7732021-01-13 12:06:20 +0000170 operationId: deleteAnchor
171 parameters:
rajesh.kumar897686f2022-12-14 08:13:29 +0000172 - $ref: 'components.yml#/components/parameters/apiVersionInPath'
Rishi.Chail6d13f162021-01-26 05:58:39 +0000173 - $ref: 'components.yml#/components/parameters/dataspaceNameInPath'
174 - $ref: 'components.yml#/components/parameters/anchorNameInPath'
puthuparambil.aditya001e7732021-01-13 12:06:20 +0000175 responses:
Rishi.Chail6d13f162021-01-26 05:58:39 +0000176 '204':
177 $ref: 'components.yml#/components/responses/NoContent'
178 '400':
179 $ref: 'components.yml#/components/responses/BadRequest'
Rishi.Chail6d13f162021-01-26 05:58:39 +0000180 '403':
JosephKeenan909a8502022-01-28 10:02:24 +0000181 $ref: 'components.yml#/components/responses/Forbidden'
182 '500':
rajesh.kumarcec0cb72022-09-06 11:47:18 +0000183 $ref: 'components.yml#/components/responses/InternalServerError'
184
185adminDataspaces:
186 get:
187 description: Read all dataspaces
188 tags:
189 - cps-admin
190 summary: Get all dataspaces
191 operationId: getAllDataspaces
rajesh.kumar897686f2022-12-14 08:13:29 +0000192 parameters:
193 - $ref: 'components.yml#/components/parameters/apiVersionInPath'
rajesh.kumarcec0cb72022-09-06 11:47:18 +0000194 responses:
195 '200':
196 description: OK
197 content:
198 application/json:
199 schema:
200 type: array
201 items:
202 $ref: 'components.yml#/components/schemas/DataspaceDetails'
203 '400':
204 $ref: 'components.yml#/components/responses/BadRequest'
rajesh.kumarcec0cb72022-09-06 11:47:18 +0000205 '403':
206 $ref: 'components.yml#/components/responses/Forbidden'
207 '500':
208 $ref: 'components.yml#/components/responses/InternalServerError'
209
210adminDataspace:
211 get:
212 description: Read a dataspace given a dataspace name
213 tags:
214 - cps-admin
215 summary: Get a dataspace
216 operationId: getDataspace
217 parameters:
rajesh.kumar897686f2022-12-14 08:13:29 +0000218 - $ref: 'components.yml#/components/parameters/apiVersionInPath'
rajesh.kumarcec0cb72022-09-06 11:47:18 +0000219 - $ref: 'components.yml#/components/parameters/dataspaceNameInPath'
220 responses:
221 '200':
222 description: OK
223 content:
224 application/json:
225 schema:
226 $ref: 'components.yml#/components/schemas/DataspaceDetails'
227 '400':
228 $ref: 'components.yml#/components/responses/BadRequest'
rajesh.kumarcec0cb72022-09-06 11:47:18 +0000229 '403':
230 $ref: 'components.yml#/components/responses/Forbidden'
231 '500':
232 $ref: 'components.yml#/components/responses/InternalServerError'