blob: f1bac8dda55423c59571b7d8ffc6c99bcde9152c [file] [log] [blame]
puthuparambil.aditya001e7732021-01-13 12:06:20 +00001dataspace:
2 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':
81 $ref: 'components.yml#/components/responses/Ok'
82 '400':
83 $ref: 'components.yml#/components/responses/BadRequest'
84 '401':
85 $ref: 'components.yml#/components/responses/Unauthorized'
86 '403':
87 $ref: 'components.yml#/components/responses/Forbidden'
88 '404':
89 $ref: 'components.yml#/components/responses/NotFound'
90
Ruslan Kashapovdce4e312021-01-11 15:34:10 +020091 delete:
Rishi.Chail6d13f162021-01-26 05:58:39 +000092 description: Delete a schema set given a schema set name and a dataspace
Ruslan Kashapovdce4e312021-01-11 15:34:10 +020093 tags:
94 - cps-admin
Rishi.Chail6d13f162021-01-26 05:58:39 +000095 summary: Delete a schema set
Ruslan Kashapovdce4e312021-01-11 15:34:10 +020096 operationId: deleteSchemaSet
97 parameters:
Rishi.Chail6d13f162021-01-26 05:58:39 +000098 - $ref: 'components.yml#/components/parameters/dataspaceNameInPath'
99 - $ref: 'components.yml#/components/parameters/schemaSetNameInPath'
Ruslan Kashapovdce4e312021-01-11 15:34:10 +0200100 responses:
Rishi.Chail6d13f162021-01-26 05:58:39 +0000101 '204':
102 $ref: 'components.yml#/components/responses/NoContent'
103 '400':
104 $ref: 'components.yml#/components/responses/BadRequest'
105 '401':
106 $ref: 'components.yml#/components/responses/Unauthorized'
107 '403':
108 $ref: 'components.yml#/components/responses/Forbidden'
109 '409':
110 $ref: 'components.yml#/components/responses/Conflict'
puthuparambil.aditya001e7732021-01-13 12:06:20 +0000111
112anchorsByDataspace:
113 get:
Rishi.Chail6d13f162021-01-26 05:58:39 +0000114 description: Read all anchors, given a dataspace
puthuparambil.aditya001e7732021-01-13 12:06:20 +0000115 tags:
116 - cps-admin
Rishi.Chail6d13f162021-01-26 05:58:39 +0000117 summary: Get anchors
puthuparambil.aditya001e7732021-01-13 12:06:20 +0000118 operationId: getAnchors
119 parameters:
Rishi.Chail6d13f162021-01-26 05:58:39 +0000120 - $ref: 'components.yml#/components/parameters/dataspaceNameInPath'
puthuparambil.aditya001e7732021-01-13 12:06:20 +0000121 responses:
Rishi.Chail6d13f162021-01-26 05:58:39 +0000122 '200':
123 $ref: 'components.yml#/components/responses/Ok'
124 '400':
125 $ref: 'components.yml#/components/responses/BadRequest'
126 '401':
127 $ref: 'components.yml#/components/responses/Unauthorized'
128 '403':
129 $ref: 'components.yml#/components/responses/Forbidden'
130 '404':
131 $ref: 'components.yml#/components/responses/NotFound'
puthuparambil.aditya001e7732021-01-13 12:06:20 +0000132
133 post:
Rishi.Chail6d13f162021-01-26 05:58:39 +0000134 description: Create a new anchor in the given dataspace
puthuparambil.aditya001e7732021-01-13 12:06:20 +0000135 tags:
136 - cps-admin
Rishi.Chail6d13f162021-01-26 05:58:39 +0000137 summary: Create an anchor
puthuparambil.aditya001e7732021-01-13 12:06:20 +0000138 operationId: createAnchor
139 parameters:
Rishi.Chail6d13f162021-01-26 05:58:39 +0000140 - $ref: 'components.yml#/components/parameters/dataspaceNameInPath'
141 - $ref: 'components.yml#/components/parameters/schemaSetNameInQuery'
142 - $ref: 'components.yml#/components/parameters/anchorNameInQuery'
puthuparambil.aditya001e7732021-01-13 12:06:20 +0000143 responses:
Rishi.Chail6d13f162021-01-26 05:58:39 +0000144 '201':
145 $ref: 'components.yml#/components/responses/Created'
146 '400':
147 $ref: 'components.yml#/components/responses/BadRequest'
148 '401':
149 $ref: 'components.yml#/components/responses/Unauthorized'
150 '403':
151 $ref: 'components.yml#/components/responses/Forbidden'
puthuparambil.aditya001e7732021-01-13 12:06:20 +0000152
153anchorByDataspaceAndAnchorName:
154 get:
Rishi.Chail6d13f162021-01-26 05:58:39 +0000155 description: Read an anchor given an anchor name and a dataspace
puthuparambil.aditya001e7732021-01-13 12:06:20 +0000156 tags:
157 - cps-admin
Rishi.Chail6d13f162021-01-26 05:58:39 +0000158 summary: Get an anchor
puthuparambil.aditya001e7732021-01-13 12:06:20 +0000159 operationId: getAnchor
160 parameters:
Rishi.Chail6d13f162021-01-26 05:58:39 +0000161 - $ref: 'components.yml#/components/parameters/dataspaceNameInPath'
162 - $ref: 'components.yml#/components/parameters/anchorNameInPath'
puthuparambil.aditya001e7732021-01-13 12:06:20 +0000163 responses:
Rishi.Chail6d13f162021-01-26 05:58:39 +0000164 '200':
165 $ref: 'components.yml#/components/responses/Ok'
166 '400':
167 $ref: 'components.yml#/components/responses/BadRequest'
168 '401':
169 $ref: 'components.yml#/components/responses/Unauthorized'
170 '403':
171 $ref: 'components.yml#/components/responses/Forbidden'
172 '404':
173 $ref: 'components.yml#/components/responses/NotFound'
puthuparambil.aditya001e7732021-01-13 12:06:20 +0000174
175 delete:
Rishi.Chail6d13f162021-01-26 05:58:39 +0000176 description: Delete an anchor given an anchor name and a dataspace - DRAFT
puthuparambil.aditya001e7732021-01-13 12:06:20 +0000177 tags:
178 - cps-admin
Rishi.Chail6d13f162021-01-26 05:58:39 +0000179 summary: Delete an anchor
puthuparambil.aditya001e7732021-01-13 12:06:20 +0000180 operationId: deleteAnchor
181 parameters:
Rishi.Chail6d13f162021-01-26 05:58:39 +0000182 - $ref: 'components.yml#/components/parameters/dataspaceNameInPath'
183 - $ref: 'components.yml#/components/parameters/anchorNameInPath'
puthuparambil.aditya001e7732021-01-13 12:06:20 +0000184 responses:
Rishi.Chail6d13f162021-01-26 05:58:39 +0000185 '200':
186 $ref: 'components.yml#/components/responses/Ok'
187 '204':
188 $ref: 'components.yml#/components/responses/NoContent'
189 '400':
190 $ref: 'components.yml#/components/responses/BadRequest'
191 '401':
192 $ref: 'components.yml#/components/responses/Unauthorized'
193 '403':
194 $ref: 'components.yml#/components/responses/Forbidden'