shivasubedi | 8df61a9 | 2021-06-16 14:43:18 +0100 | [diff] [blame] | 1 | # ============LICENSE_START======================================================= |
| 2 | # Copyright (c) 2021 Bell Canada. |
JosephKeenan | 909a850 | 2022-01-28 10:02:24 +0000 | [diff] [blame] | 3 | # Modifications Copyright (C) 2021-2022 Nordix Foundation |
shivasubedi | 8df61a9 | 2021-06-16 14:43:18 +0100 | [diff] [blame] | 4 | # ================================================================================ |
| 5 | # Licensed under the Apache License, Version 2.0 (the "License"); |
| 6 | # you may not use this file except in compliance with the License. |
| 7 | # You may obtain a copy of the License at |
| 8 | # |
| 9 | # http://www.apache.org/licenses/LICENSE-2.0 |
| 10 | # |
| 11 | # Unless required by applicable law or agreed to in writing, software |
| 12 | # distributed under the License is distributed on an "AS IS" BASIS, |
| 13 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 14 | # See the License for the specific language governing permissions and |
| 15 | # limitations under the License. |
Renu Kumari | 4d52001 | 2021-08-30 11:50:43 -0400 | [diff] [blame] | 16 | # |
| 17 | # SPDX-License-Identifier: Apache-2.0 |
shivasubedi | 8df61a9 | 2021-06-16 14:43:18 +0100 | [diff] [blame] | 18 | # ============LICENSE_END========================================================= |
| 19 | |
Rishi.Chail | dacc663 | 2021-01-27 04:27:34 +0000 | [diff] [blame] | 20 | dataspaces: |
puthuparambil.aditya | 001e773 | 2021-01-13 12:06:20 +0000 | [diff] [blame] | 21 | post: |
Rishi.Chail | 6d13f16 | 2021-01-26 05:58:39 +0000 | [diff] [blame] | 22 | description: Create a new dataspace |
puthuparambil.aditya | 001e773 | 2021-01-13 12:06:20 +0000 | [diff] [blame] | 23 | tags: |
| 24 | - cps-admin |
Rishi.Chail | 6d13f16 | 2021-01-26 05:58:39 +0000 | [diff] [blame] | 25 | summary: Create a dataspace |
puthuparambil.aditya | 001e773 | 2021-01-13 12:06:20 +0000 | [diff] [blame] | 26 | operationId: createDataspace |
| 27 | parameters: |
Rishi.Chail | 6d13f16 | 2021-01-26 05:58:39 +0000 | [diff] [blame] | 28 | - $ref: 'components.yml#/components/parameters/dataspaceNameInQuery' |
puthuparambil.aditya | 001e773 | 2021-01-13 12:06:20 +0000 | [diff] [blame] | 29 | responses: |
Rishi.Chail | 6d13f16 | 2021-01-26 05:58:39 +0000 | [diff] [blame] | 30 | '201': |
| 31 | $ref: 'components.yml#/components/responses/Created' |
DylanB95EST | 1839f38 | 2022-03-08 17:26:34 +0000 | [diff] [blame] | 32 | '400': |
| 33 | $ref: 'components.yml#/components/responses/BadRequest' |
Rishi.Chail | 6d13f16 | 2021-01-26 05:58:39 +0000 | [diff] [blame] | 34 | '401': |
| 35 | $ref: 'components.yml#/components/responses/Unauthorized' |
| 36 | '403': |
| 37 | $ref: 'components.yml#/components/responses/Forbidden' |
JosephKeenan | 909a850 | 2022-01-28 10:02:24 +0000 | [diff] [blame] | 38 | '409': |
| 39 | $ref: 'components.yml#/components/responses/Conflict' |
| 40 | '500': |
| 41 | $ref: 'components.yml#/components/responses/InternalServerError' |
niamhcore | 09c6b6e | 2021-11-22 11:44:38 +0000 | [diff] [blame] | 42 | delete: |
| 43 | description: Delete a dataspace |
| 44 | tags: |
| 45 | - cps-admin |
| 46 | summary: Delete a dataspace |
| 47 | operationId: deleteDataspace |
| 48 | parameters: |
| 49 | - $ref: 'components.yml#/components/parameters/dataspaceNameInQuery' |
| 50 | responses: |
| 51 | '204': |
| 52 | $ref: 'components.yml#/components/responses/NoContent' |
| 53 | '400': |
| 54 | $ref: 'components.yml#/components/responses/BadRequest' |
| 55 | '401': |
| 56 | $ref: 'components.yml#/components/responses/Unauthorized' |
| 57 | '403': |
| 58 | $ref: 'components.yml#/components/responses/Forbidden' |
| 59 | '409': |
| 60 | $ref: 'components.yml#/components/responses/Conflict' |
JosephKeenan | 909a850 | 2022-01-28 10:02:24 +0000 | [diff] [blame] | 61 | '500': |
| 62 | $ref: 'components.yml#/components/responses/InternalServerError' |
niamhcore | 09c6b6e | 2021-11-22 11:44:38 +0000 | [diff] [blame] | 63 | |
puthuparambil.aditya | 001e773 | 2021-01-13 12:06:20 +0000 | [diff] [blame] | 64 | schemaSet: |
| 65 | post: |
Rishi.Chail | 6d13f16 | 2021-01-26 05:58:39 +0000 | [diff] [blame] | 66 | description: Create a new schema set in the given dataspace |
puthuparambil.aditya | 001e773 | 2021-01-13 12:06:20 +0000 | [diff] [blame] | 67 | tags: |
| 68 | - cps-admin |
Rishi.Chail | 6d13f16 | 2021-01-26 05:58:39 +0000 | [diff] [blame] | 69 | summary: Create a schema set |
puthuparambil.aditya | 001e773 | 2021-01-13 12:06:20 +0000 | [diff] [blame] | 70 | operationId: createSchemaSet |
| 71 | parameters: |
Rishi.Chail | 6d13f16 | 2021-01-26 05:58:39 +0000 | [diff] [blame] | 72 | - $ref: 'components.yml#/components/parameters/dataspaceNameInPath' |
| 73 | - $ref: 'components.yml#/components/parameters/schemaSetNameInQuery' |
puthuparambil.aditya | 001e773 | 2021-01-13 12:06:20 +0000 | [diff] [blame] | 74 | requestBody: |
| 75 | required: true |
| 76 | content: |
| 77 | multipart/form-data: |
| 78 | schema: |
Rishi.Chail | 6d13f16 | 2021-01-26 05:58:39 +0000 | [diff] [blame] | 79 | $ref: 'components.yml#/components/schemas/MultipartFile' |
puthuparambil.aditya | 001e773 | 2021-01-13 12:06:20 +0000 | [diff] [blame] | 80 | responses: |
Rishi.Chail | 6d13f16 | 2021-01-26 05:58:39 +0000 | [diff] [blame] | 81 | '201': |
| 82 | $ref: 'components.yml#/components/responses/Created' |
| 83 | '400': |
| 84 | $ref: 'components.yml#/components/responses/BadRequest' |
| 85 | '401': |
| 86 | $ref: 'components.yml#/components/responses/Unauthorized' |
| 87 | '403': |
| 88 | $ref: 'components.yml#/components/responses/Forbidden' |
JosephKeenan | 909a850 | 2022-01-28 10:02:24 +0000 | [diff] [blame] | 89 | '409': |
| 90 | $ref: 'components.yml#/components/responses/Conflict' |
| 91 | '500': |
| 92 | $ref: 'components.yml#/components/responses/InternalServerError' |
puthuparambil.aditya | 001e773 | 2021-01-13 12:06:20 +0000 | [diff] [blame] | 93 | |
| 94 | schemaSetBySchemaSetName: |
| 95 | get: |
Rishi.Chail | 6d13f16 | 2021-01-26 05:58:39 +0000 | [diff] [blame] | 96 | description: Read a schema set given a schema set name and a dataspace |
puthuparambil.aditya | 001e773 | 2021-01-13 12:06:20 +0000 | [diff] [blame] | 97 | tags: |
| 98 | - cps-admin |
Rishi.Chail | 6d13f16 | 2021-01-26 05:58:39 +0000 | [diff] [blame] | 99 | summary: Get a schema set |
puthuparambil.aditya | 001e773 | 2021-01-13 12:06:20 +0000 | [diff] [blame] | 100 | operationId: getSchemaSet |
| 101 | parameters: |
Rishi.Chail | 6d13f16 | 2021-01-26 05:58:39 +0000 | [diff] [blame] | 102 | - $ref: 'components.yml#/components/parameters/dataspaceNameInPath' |
| 103 | - $ref: 'components.yml#/components/parameters/schemaSetNameInPath' |
puthuparambil.aditya | 001e773 | 2021-01-13 12:06:20 +0000 | [diff] [blame] | 104 | responses: |
Rishi.Chail | 6d13f16 | 2021-01-26 05:58:39 +0000 | [diff] [blame] | 105 | '200': |
JosephKeenan | c6865f3 | 2021-06-08 13:16:37 +0100 | [diff] [blame] | 106 | description: OK |
| 107 | content: |
| 108 | application/json: |
| 109 | schema: |
| 110 | $ref: 'components.yml#/components/schemas/SchemaSetDetails' |
Rishi.Chail | 6d13f16 | 2021-01-26 05:58:39 +0000 | [diff] [blame] | 111 | '400': |
| 112 | $ref: 'components.yml#/components/responses/BadRequest' |
| 113 | '401': |
| 114 | $ref: 'components.yml#/components/responses/Unauthorized' |
| 115 | '403': |
| 116 | $ref: 'components.yml#/components/responses/Forbidden' |
JosephKeenan | 909a850 | 2022-01-28 10:02:24 +0000 | [diff] [blame] | 117 | '500': |
| 118 | $ref: 'components.yml#/components/responses/InternalServerError' |
Ruslan Kashapov | dce4e31 | 2021-01-11 15:34:10 +0200 | [diff] [blame] | 119 | delete: |
Rishi.Chail | 6d13f16 | 2021-01-26 05:58:39 +0000 | [diff] [blame] | 120 | description: Delete a schema set given a schema set name and a dataspace |
Ruslan Kashapov | dce4e31 | 2021-01-11 15:34:10 +0200 | [diff] [blame] | 121 | tags: |
| 122 | - cps-admin |
Rishi.Chail | 6d13f16 | 2021-01-26 05:58:39 +0000 | [diff] [blame] | 123 | summary: Delete a schema set |
Ruslan Kashapov | dce4e31 | 2021-01-11 15:34:10 +0200 | [diff] [blame] | 124 | operationId: deleteSchemaSet |
| 125 | parameters: |
Rishi.Chail | 6d13f16 | 2021-01-26 05:58:39 +0000 | [diff] [blame] | 126 | - $ref: 'components.yml#/components/parameters/dataspaceNameInPath' |
| 127 | - $ref: 'components.yml#/components/parameters/schemaSetNameInPath' |
Ruslan Kashapov | dce4e31 | 2021-01-11 15:34:10 +0200 | [diff] [blame] | 128 | responses: |
Rishi.Chail | 6d13f16 | 2021-01-26 05:58:39 +0000 | [diff] [blame] | 129 | '204': |
| 130 | $ref: 'components.yml#/components/responses/NoContent' |
| 131 | '400': |
| 132 | $ref: 'components.yml#/components/responses/BadRequest' |
| 133 | '401': |
| 134 | $ref: 'components.yml#/components/responses/Unauthorized' |
| 135 | '403': |
| 136 | $ref: 'components.yml#/components/responses/Forbidden' |
| 137 | '409': |
| 138 | $ref: 'components.yml#/components/responses/Conflict' |
JosephKeenan | 909a850 | 2022-01-28 10:02:24 +0000 | [diff] [blame] | 139 | '500': |
| 140 | $ref: 'components.yml#/components/responses/InternalServerError' |
puthuparambil.aditya | 001e773 | 2021-01-13 12:06:20 +0000 | [diff] [blame] | 141 | |
| 142 | anchorsByDataspace: |
| 143 | get: |
Rishi.Chail | 6d13f16 | 2021-01-26 05:58:39 +0000 | [diff] [blame] | 144 | description: Read all anchors, given a dataspace |
puthuparambil.aditya | 001e773 | 2021-01-13 12:06:20 +0000 | [diff] [blame] | 145 | tags: |
| 146 | - cps-admin |
Rishi.Chail | 6d13f16 | 2021-01-26 05:58:39 +0000 | [diff] [blame] | 147 | summary: Get anchors |
puthuparambil.aditya | 001e773 | 2021-01-13 12:06:20 +0000 | [diff] [blame] | 148 | operationId: getAnchors |
| 149 | parameters: |
Rishi.Chail | 6d13f16 | 2021-01-26 05:58:39 +0000 | [diff] [blame] | 150 | - $ref: 'components.yml#/components/parameters/dataspaceNameInPath' |
puthuparambil.aditya | 001e773 | 2021-01-13 12:06:20 +0000 | [diff] [blame] | 151 | responses: |
Rishi.Chail | 6d13f16 | 2021-01-26 05:58:39 +0000 | [diff] [blame] | 152 | '200': |
JosephKeenan | c6865f3 | 2021-06-08 13:16:37 +0100 | [diff] [blame] | 153 | description: OK |
| 154 | content: |
| 155 | application/json: |
| 156 | schema: |
| 157 | type: array |
| 158 | items: |
| 159 | $ref: 'components.yml#/components/schemas/AnchorDetails' |
Rishi.Chail | 6d13f16 | 2021-01-26 05:58:39 +0000 | [diff] [blame] | 160 | '400': |
| 161 | $ref: 'components.yml#/components/responses/BadRequest' |
| 162 | '401': |
| 163 | $ref: 'components.yml#/components/responses/Unauthorized' |
| 164 | '403': |
| 165 | $ref: 'components.yml#/components/responses/Forbidden' |
JosephKeenan | 909a850 | 2022-01-28 10:02:24 +0000 | [diff] [blame] | 166 | '500': |
| 167 | $ref: 'components.yml#/components/responses/InternalServerError' |
puthuparambil.aditya | 001e773 | 2021-01-13 12:06:20 +0000 | [diff] [blame] | 168 | post: |
Rishi.Chail | 6d13f16 | 2021-01-26 05:58:39 +0000 | [diff] [blame] | 169 | description: Create a new anchor in the given dataspace |
puthuparambil.aditya | 001e773 | 2021-01-13 12:06:20 +0000 | [diff] [blame] | 170 | tags: |
| 171 | - cps-admin |
Rishi.Chail | 6d13f16 | 2021-01-26 05:58:39 +0000 | [diff] [blame] | 172 | summary: Create an anchor |
puthuparambil.aditya | 001e773 | 2021-01-13 12:06:20 +0000 | [diff] [blame] | 173 | operationId: createAnchor |
| 174 | parameters: |
Rishi.Chail | 6d13f16 | 2021-01-26 05:58:39 +0000 | [diff] [blame] | 175 | - $ref: 'components.yml#/components/parameters/dataspaceNameInPath' |
| 176 | - $ref: 'components.yml#/components/parameters/schemaSetNameInQuery' |
| 177 | - $ref: 'components.yml#/components/parameters/anchorNameInQuery' |
puthuparambil.aditya | 001e773 | 2021-01-13 12:06:20 +0000 | [diff] [blame] | 178 | responses: |
Rishi.Chail | 6d13f16 | 2021-01-26 05:58:39 +0000 | [diff] [blame] | 179 | '201': |
| 180 | $ref: 'components.yml#/components/responses/Created' |
| 181 | '400': |
| 182 | $ref: 'components.yml#/components/responses/BadRequest' |
| 183 | '401': |
| 184 | $ref: 'components.yml#/components/responses/Unauthorized' |
| 185 | '403': |
| 186 | $ref: 'components.yml#/components/responses/Forbidden' |
JosephKeenan | 909a850 | 2022-01-28 10:02:24 +0000 | [diff] [blame] | 187 | '409': |
| 188 | $ref: 'components.yml#/components/responses/Conflict' |
| 189 | '500': |
| 190 | $ref: 'components.yml#/components/responses/InternalServerError' |
puthuparambil.aditya | 001e773 | 2021-01-13 12:06:20 +0000 | [diff] [blame] | 191 | |
| 192 | anchorByDataspaceAndAnchorName: |
| 193 | get: |
Rishi.Chail | 6d13f16 | 2021-01-26 05:58:39 +0000 | [diff] [blame] | 194 | description: Read an anchor given an anchor name and a dataspace |
puthuparambil.aditya | 001e773 | 2021-01-13 12:06:20 +0000 | [diff] [blame] | 195 | tags: |
| 196 | - cps-admin |
Rishi.Chail | 6d13f16 | 2021-01-26 05:58:39 +0000 | [diff] [blame] | 197 | summary: Get an anchor |
puthuparambil.aditya | 001e773 | 2021-01-13 12:06:20 +0000 | [diff] [blame] | 198 | operationId: getAnchor |
| 199 | parameters: |
Rishi.Chail | 6d13f16 | 2021-01-26 05:58:39 +0000 | [diff] [blame] | 200 | - $ref: 'components.yml#/components/parameters/dataspaceNameInPath' |
| 201 | - $ref: 'components.yml#/components/parameters/anchorNameInPath' |
puthuparambil.aditya | 001e773 | 2021-01-13 12:06:20 +0000 | [diff] [blame] | 202 | responses: |
Rishi.Chail | 6d13f16 | 2021-01-26 05:58:39 +0000 | [diff] [blame] | 203 | '200': |
JosephKeenan | c6865f3 | 2021-06-08 13:16:37 +0100 | [diff] [blame] | 204 | description: OK |
| 205 | content: |
| 206 | application/json: |
| 207 | schema: |
| 208 | $ref: 'components.yml#/components/schemas/AnchorDetails' |
Rishi.Chail | 6d13f16 | 2021-01-26 05:58:39 +0000 | [diff] [blame] | 209 | '400': |
| 210 | $ref: 'components.yml#/components/responses/BadRequest' |
| 211 | '401': |
| 212 | $ref: 'components.yml#/components/responses/Unauthorized' |
| 213 | '403': |
| 214 | $ref: 'components.yml#/components/responses/Forbidden' |
JosephKeenan | 909a850 | 2022-01-28 10:02:24 +0000 | [diff] [blame] | 215 | '500': |
| 216 | $ref: 'components.yml#/components/responses/InternalServerError' |
puthuparambil.aditya | 001e773 | 2021-01-13 12:06:20 +0000 | [diff] [blame] | 217 | delete: |
Ruslan Kashapov | b20858b | 2021-04-05 14:46:03 +0300 | [diff] [blame] | 218 | description: Delete an anchor given an anchor name and a dataspace |
puthuparambil.aditya | 001e773 | 2021-01-13 12:06:20 +0000 | [diff] [blame] | 219 | tags: |
| 220 | - cps-admin |
Rishi.Chail | 6d13f16 | 2021-01-26 05:58:39 +0000 | [diff] [blame] | 221 | summary: Delete an anchor |
puthuparambil.aditya | 001e773 | 2021-01-13 12:06:20 +0000 | [diff] [blame] | 222 | operationId: deleteAnchor |
| 223 | parameters: |
Rishi.Chail | 6d13f16 | 2021-01-26 05:58:39 +0000 | [diff] [blame] | 224 | - $ref: 'components.yml#/components/parameters/dataspaceNameInPath' |
| 225 | - $ref: 'components.yml#/components/parameters/anchorNameInPath' |
puthuparambil.aditya | 001e773 | 2021-01-13 12:06:20 +0000 | [diff] [blame] | 226 | responses: |
Rishi.Chail | 6d13f16 | 2021-01-26 05:58:39 +0000 | [diff] [blame] | 227 | '204': |
| 228 | $ref: 'components.yml#/components/responses/NoContent' |
| 229 | '400': |
| 230 | $ref: 'components.yml#/components/responses/BadRequest' |
| 231 | '401': |
| 232 | $ref: 'components.yml#/components/responses/Unauthorized' |
| 233 | '403': |
JosephKeenan | 909a850 | 2022-01-28 10:02:24 +0000 | [diff] [blame] | 234 | $ref: 'components.yml#/components/responses/Forbidden' |
| 235 | '500': |
| 236 | $ref: 'components.yml#/components/responses/InternalServerError' |