blob: 1a2e65f7d4190dfcbb0ac07d33adffad5dea6920 [file] [log] [blame]
Rishi.Chaildacc6632021-01-27 04:27:34 +00001dataspaces:
puthuparambil.aditya001e7732021-01-13 12:06:20 +00002 post:
Rishi.Chail6d13f162021-01-26 05:58:39 +00003 description: Create a new dataspace
puthuparambil.aditya001e7732021-01-13 12:06:20 +00004 tags:
5 - cps-admin
Rishi.Chail6d13f162021-01-26 05:58:39 +00006 summary: Create a dataspace
puthuparambil.aditya001e7732021-01-13 12:06:20 +00007 operationId: createDataspace
8 parameters:
Rishi.Chail6d13f162021-01-26 05:58:39 +00009 - $ref: 'components.yml#/components/parameters/dataspaceNameInQuery'
puthuparambil.aditya001e7732021-01-13 12:06:20 +000010 responses:
Rishi.Chail6d13f162021-01-26 05:58:39 +000011 '201':
12 $ref: 'components.yml#/components/responses/Created'
13 '400':
14 $ref: 'components.yml#/components/responses/BadRequest'
15 '401':
16 $ref: 'components.yml#/components/responses/Unauthorized'
17 '403':
18 $ref: 'components.yml#/components/responses/Forbidden'
puthuparambil.aditya001e7732021-01-13 12:06:20 +000019
20dataspaceByDataspaceName:
21 delete:
Rishi.Chail6d13f162021-01-26 05:58:39 +000022 description: Delete the given dataspace - DRAFT
puthuparambil.aditya001e7732021-01-13 12:06:20 +000023 tags:
24 - cps-admin
Rishi.Chail6d13f162021-01-26 05:58:39 +000025 summary: Delete a dataspace
puthuparambil.aditya001e7732021-01-13 12:06:20 +000026 operationId: deleteDataspace
27 parameters:
Rishi.Chail6d13f162021-01-26 05:58:39 +000028 - $ref: 'components.yml#/components/parameters/dataspaceNameInPath'
puthuparambil.aditya001e7732021-01-13 12:06:20 +000029 responses:
Rishi.Chail6d13f162021-01-26 05:58:39 +000030 '200':
31 $ref: 'components.yml#/components/responses/Ok'
32 '204':
33 $ref: 'components.yml#/components/responses/NoContent'
34 '400':
35 $ref: 'components.yml#/components/responses/BadRequest'
36 '401':
37 $ref: 'components.yml#/components/responses/Unauthorized'
38 '403':
39 $ref: 'components.yml#/components/responses/Forbidden'
puthuparambil.aditya001e7732021-01-13 12:06:20 +000040
41
42schemaSet:
43 post:
Rishi.Chail6d13f162021-01-26 05:58:39 +000044 description: Create a new schema set in the given dataspace
puthuparambil.aditya001e7732021-01-13 12:06:20 +000045 tags:
46 - cps-admin
Rishi.Chail6d13f162021-01-26 05:58:39 +000047 summary: Create a schema set
puthuparambil.aditya001e7732021-01-13 12:06:20 +000048 operationId: createSchemaSet
49 parameters:
Rishi.Chail6d13f162021-01-26 05:58:39 +000050 - $ref: 'components.yml#/components/parameters/dataspaceNameInPath'
51 - $ref: 'components.yml#/components/parameters/schemaSetNameInQuery'
puthuparambil.aditya001e7732021-01-13 12:06:20 +000052 requestBody:
53 required: true
54 content:
55 multipart/form-data:
56 schema:
Rishi.Chail6d13f162021-01-26 05:58:39 +000057 $ref: 'components.yml#/components/schemas/MultipartFile'
puthuparambil.aditya001e7732021-01-13 12:06:20 +000058
59 responses:
Rishi.Chail6d13f162021-01-26 05:58:39 +000060 '201':
61 $ref: 'components.yml#/components/responses/Created'
62 '400':
63 $ref: 'components.yml#/components/responses/BadRequest'
64 '401':
65 $ref: 'components.yml#/components/responses/Unauthorized'
66 '403':
67 $ref: 'components.yml#/components/responses/Forbidden'
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:
Rishi.Chail6d13f162021-01-26 05:58:39 +000077 - $ref: 'components.yml#/components/parameters/dataspaceNameInPath'
78 - $ref: 'components.yml#/components/parameters/schemaSetNameInPath'
puthuparambil.aditya001e7732021-01-13 12:06:20 +000079 responses:
Rishi.Chail6d13f162021-01-26 05:58:39 +000080 '200':
JosephKeenanc6865f32021-06-08 13:16:37 +010081 description: OK
82 content:
83 application/json:
84 schema:
85 $ref: 'components.yml#/components/schemas/SchemaSetDetails'
Rishi.Chail6d13f162021-01-26 05:58:39 +000086 '400':
87 $ref: 'components.yml#/components/responses/BadRequest'
88 '401':
89 $ref: 'components.yml#/components/responses/Unauthorized'
90 '403':
91 $ref: 'components.yml#/components/responses/Forbidden'
92 '404':
93 $ref: 'components.yml#/components/responses/NotFound'
94
Ruslan Kashapovdce4e312021-01-11 15:34:10 +020095 delete:
Rishi.Chail6d13f162021-01-26 05:58:39 +000096 description: Delete a schema set given a schema set name and a dataspace
Ruslan Kashapovdce4e312021-01-11 15:34:10 +020097 tags:
98 - cps-admin
Rishi.Chail6d13f162021-01-26 05:58:39 +000099 summary: Delete a schema set
Ruslan Kashapovdce4e312021-01-11 15:34:10 +0200100 operationId: deleteSchemaSet
101 parameters:
Rishi.Chail6d13f162021-01-26 05:58:39 +0000102 - $ref: 'components.yml#/components/parameters/dataspaceNameInPath'
103 - $ref: 'components.yml#/components/parameters/schemaSetNameInPath'
Ruslan Kashapovdce4e312021-01-11 15:34:10 +0200104 responses:
Rishi.Chail6d13f162021-01-26 05:58:39 +0000105 '204':
106 $ref: 'components.yml#/components/responses/NoContent'
107 '400':
108 $ref: 'components.yml#/components/responses/BadRequest'
109 '401':
110 $ref: 'components.yml#/components/responses/Unauthorized'
111 '403':
112 $ref: 'components.yml#/components/responses/Forbidden'
113 '409':
114 $ref: 'components.yml#/components/responses/Conflict'
puthuparambil.aditya001e7732021-01-13 12:06:20 +0000115
116anchorsByDataspace:
117 get:
Rishi.Chail6d13f162021-01-26 05:58:39 +0000118 description: Read all anchors, given a dataspace
puthuparambil.aditya001e7732021-01-13 12:06:20 +0000119 tags:
120 - cps-admin
Rishi.Chail6d13f162021-01-26 05:58:39 +0000121 summary: Get anchors
puthuparambil.aditya001e7732021-01-13 12:06:20 +0000122 operationId: getAnchors
123 parameters:
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'
136 '401':
137 $ref: 'components.yml#/components/responses/Unauthorized'
138 '403':
139 $ref: 'components.yml#/components/responses/Forbidden'
140 '404':
141 $ref: 'components.yml#/components/responses/NotFound'
puthuparambil.aditya001e7732021-01-13 12:06:20 +0000142
143 post:
Rishi.Chail6d13f162021-01-26 05:58:39 +0000144 description: Create a new anchor in the given dataspace
puthuparambil.aditya001e7732021-01-13 12:06:20 +0000145 tags:
146 - cps-admin
Rishi.Chail6d13f162021-01-26 05:58:39 +0000147 summary: Create an anchor
puthuparambil.aditya001e7732021-01-13 12:06:20 +0000148 operationId: createAnchor
149 parameters:
Rishi.Chail6d13f162021-01-26 05:58:39 +0000150 - $ref: 'components.yml#/components/parameters/dataspaceNameInPath'
151 - $ref: 'components.yml#/components/parameters/schemaSetNameInQuery'
152 - $ref: 'components.yml#/components/parameters/anchorNameInQuery'
puthuparambil.aditya001e7732021-01-13 12:06:20 +0000153 responses:
Rishi.Chail6d13f162021-01-26 05:58:39 +0000154 '201':
155 $ref: 'components.yml#/components/responses/Created'
156 '400':
157 $ref: 'components.yml#/components/responses/BadRequest'
158 '401':
159 $ref: 'components.yml#/components/responses/Unauthorized'
160 '403':
161 $ref: 'components.yml#/components/responses/Forbidden'
puthuparambil.aditya001e7732021-01-13 12:06:20 +0000162
163anchorByDataspaceAndAnchorName:
164 get:
Rishi.Chail6d13f162021-01-26 05:58:39 +0000165 description: Read an anchor given an anchor name and a dataspace
puthuparambil.aditya001e7732021-01-13 12:06:20 +0000166 tags:
167 - cps-admin
Rishi.Chail6d13f162021-01-26 05:58:39 +0000168 summary: Get an anchor
puthuparambil.aditya001e7732021-01-13 12:06:20 +0000169 operationId: getAnchor
170 parameters:
Rishi.Chail6d13f162021-01-26 05:58:39 +0000171 - $ref: 'components.yml#/components/parameters/dataspaceNameInPath'
172 - $ref: 'components.yml#/components/parameters/anchorNameInPath'
puthuparambil.aditya001e7732021-01-13 12:06:20 +0000173 responses:
Rishi.Chail6d13f162021-01-26 05:58:39 +0000174 '200':
JosephKeenanc6865f32021-06-08 13:16:37 +0100175 description: OK
176 content:
177 application/json:
178 schema:
179 $ref: 'components.yml#/components/schemas/AnchorDetails'
Rishi.Chail6d13f162021-01-26 05:58:39 +0000180 '400':
181 $ref: 'components.yml#/components/responses/BadRequest'
182 '401':
183 $ref: 'components.yml#/components/responses/Unauthorized'
184 '403':
185 $ref: 'components.yml#/components/responses/Forbidden'
186 '404':
187 $ref: 'components.yml#/components/responses/NotFound'
puthuparambil.aditya001e7732021-01-13 12:06:20 +0000188
189 delete:
Ruslan Kashapovb20858b2021-04-05 14:46:03 +0300190 description: Delete an anchor given an anchor name and a dataspace
puthuparambil.aditya001e7732021-01-13 12:06:20 +0000191 tags:
192 - cps-admin
Rishi.Chail6d13f162021-01-26 05:58:39 +0000193 summary: Delete an anchor
puthuparambil.aditya001e7732021-01-13 12:06:20 +0000194 operationId: deleteAnchor
195 parameters:
Rishi.Chail6d13f162021-01-26 05:58:39 +0000196 - $ref: 'components.yml#/components/parameters/dataspaceNameInPath'
197 - $ref: 'components.yml#/components/parameters/anchorNameInPath'
puthuparambil.aditya001e7732021-01-13 12:06:20 +0000198 responses:
Rishi.Chail6d13f162021-01-26 05:58:39 +0000199 '204':
200 $ref: 'components.yml#/components/responses/NoContent'
201 '400':
202 $ref: 'components.yml#/components/responses/BadRequest'
203 '401':
204 $ref: 'components.yml#/components/responses/Unauthorized'
205 '403':
JosephKeenanc6865f32021-06-08 13:16:37 +0100206 $ref: 'components.yml#/components/responses/Forbidden'